Cargo: move profile definitions to workspace root

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2021-03-10 09:57:59 +01:00
parent f6ac43816f
commit 78851ebbcf
3 changed files with 33 additions and 48 deletions

View File

@@ -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",