Browse Source

Added more build profiles (#290)

pull/323/head
Iban Eguia 5 years ago committed by GitHub
parent
commit
8574ea1768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      Cargo.toml

33
Cargo.toml

@ -6,23 +6,24 @@ members = [
# The release profile, used for `cargo build`.
[profile.dev]
incremental = true
opt-level = 0
debug = true
rpath = false
lto = false
debug-assertions = true
overflow-checks = true
panic = 'unwind'
# Enables thin local LTO and some optimizations.
opt-level = 1
# The release profile, used for `cargo build --release`.
[profile.release]
incremental = false
opt-level = 3
debug = false
rpath = false
# Enables "fat" LTO, for faster release builds
lto = "fat"
# Makes sure that all code is compiled together, for LTO
codegen-units = 1
# The test profile, used for `cargo test`.
[profile.test]
# Enables thin local LTO and some optimizations.
opt-level = 1
# The benchmark profile, used for `cargo bench`.
[profile.bench]
# Enables "fat" LTO, for faster benchmark builds
lto = "fat"
# Makes sure that all code is compiled together, for LTO
codegen-units = 1
lto = true
debug-assertions = false
overflow-checks = false
panic = 'unwind'
Loading…
Cancel
Save