Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize cargo profiles #401

Merged
merged 8 commits into from Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/generate_calamari_weights_files.yml
Expand Up @@ -84,7 +84,7 @@ jobs:
CARGO_TERM_COLOR: always
run: |
source ${HOME}/.cargo/env
CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --verbose --features=runtime-benchmarks
Dengjianping marked this conversation as resolved.
Show resolved Hide resolved
cargo build --release --verbose --features=runtime-benchmarks
-
name: stop sccache server
run: sccache --stop-server || true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_manta_weights_files.yml
Expand Up @@ -84,7 +84,7 @@ jobs:
CARGO_TERM_COLOR: always
run: |
source ${HOME}/.cargo/env
CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --verbose --features=runtime-benchmarks
cargo build --release --verbose --features=runtime-benchmarks
-
name: stop sccache server
run: sccache --stop-server || true
Expand Down
8 changes: 7 additions & 1 deletion Cargo.toml
Expand Up @@ -9,4 +9,10 @@ members = [
]

[profile.release]
panic = "unwind"
codegen-units = 1
lto = true
opt-level = 3
panic = "unwind"

[profile.test]
debug = true
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -73,4 +73,4 @@ now you can watch the ci build your awesome feature and publish your draft relea

## Minimum supported rust compiler

This project's MSRV is `rustc 1.56`
This project's MSRV is `rustc 1.57`