mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00

After the merge of #1184, CI now takes 11m just to shallow clone crates.io git index, which means that our user using alternative git index would also be quite slow. This commit speeds it up by building all dependencies with `-O3` in dev and release build, in release build we build everything with `-O3`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
56 lines
1 KiB
TOML
56 lines
1 KiB
TOML
[workspace]
|
|
members = [
|
|
"crates/bin",
|
|
"crates/binstalk",
|
|
"crates/binstalk-manifests",
|
|
"crates/binstalk-types",
|
|
"crates/binstalk-downloader",
|
|
"crates/detect-wasi",
|
|
"crates/fs-lock",
|
|
"crates/normalize-path",
|
|
"crates/detect-targets",
|
|
"crates/leon",
|
|
"crates/leon-macros",
|
|
]
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = "symbols"
|
|
|
|
[profile.release.build-override]
|
|
inherits = "dev.build-override"
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|
|
lto = false
|
|
debug-assertions = true
|
|
overflow-checks = true
|
|
codegen-units = 1024
|
|
|
|
# Set the default for dependencies on debug.
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[profile.dev.build-override]
|
|
inherits = "dev"
|
|
debug = false
|
|
debug-assertions = false
|
|
overflow-checks = false
|
|
incremental = false
|
|
|
|
[profile.check-only]
|
|
inherits = "dev"
|
|
debug = false
|
|
debug-assertions = false
|
|
overflow-checks = false
|
|
panic = "abort"
|
|
|
|
[profile.check-only.build-override]
|
|
inherits = "check-only"
|
|
|
|
[profile.check-only.package."*"]
|
|
inherits = "check-only"
|