Cargo: move profile definitions to workspace root
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
62
Cargo.toml
62
Cargo.toml
@@ -16,36 +16,6 @@ edition = "2018"
|
||||
publish = false
|
||||
#default-run = "crates/advotracker_client"
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
lto = true
|
||||
codegen-units=1
|
||||
opt-level="s"
|
||||
# optimize to max speed
|
||||
#opt-level = "3"
|
||||
# optimize to smallest size
|
||||
#opt-level = "z"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
debug = true
|
||||
lto = false
|
||||
codegen-units = 5
|
||||
panic = 'unwind'
|
||||
incremental = true
|
||||
overflow-checks = true
|
||||
|
||||
[profile.test]
|
||||
opt-level = 0
|
||||
debug = 2
|
||||
rpath = false
|
||||
lto = false
|
||||
debug-assertions = true
|
||||
codegen-units = 16
|
||||
panic = 'unwind'
|
||||
incremental = true
|
||||
overflow-checks = true
|
||||
|
||||
[dependencies]
|
||||
advotrackerdb = { version = "0.1.0-alpha1", path = "crates/advotrackerdb" }
|
||||
advotrackerd = { version = "0.1.0-alpha1", path = "crates/advotrackerd", default-features = false }
|
||||
@@ -59,6 +29,38 @@ sqlite = []
|
||||
#sqlite = ["advotrackerdb_sqlite"]
|
||||
#postgresql = ["advotrackerdb_pstgresql"]
|
||||
|
||||
[profile.dev]
|
||||
#opt-level = 0
|
||||
opt-level = 1
|
||||
incremental = true
|
||||
debug = true
|
||||
lto = false
|
||||
codegen-units = 5
|
||||
panic = 'unwind'
|
||||
overflow-checks = true
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
panic = "abort"
|
||||
lto = true
|
||||
codegen-units=1
|
||||
opt-level="s"
|
||||
# optimize to max speed
|
||||
#opt-level = "3"
|
||||
# optimize to smallest size
|
||||
#opt-level = "z"
|
||||
|
||||
[profile.test]
|
||||
opt-level = 0
|
||||
debug = 2
|
||||
rpath = false
|
||||
lto = false
|
||||
debug-assertions = true
|
||||
codegen-units = 16
|
||||
panic = 'unwind'
|
||||
incremental = true
|
||||
overflow-checks = true
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/advotrackerd",
|
||||
|
||||
Reference in New Issue
Block a user