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

View File

@@ -8,10 +8,6 @@ license = "(0BSD OR MIT)"
edition = "2018"
default-run = "advotracker"
[target.x86_64-pc-windows-gnu]
linker = "/usr/bin/x86_64-w64-mingw32-gcc"
ar = "/usr/x86_64-w64-mingw32i/bin/ar"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["winuser"] }
#diesel = { version = "1.4", features = [ "postgres", "sqlite" ] }
@@ -41,7 +37,7 @@ tracing = { version = "~0.1" }
tracing-subscriber = { version = "~0.2.0", features = ["tracing-log"] }
viperus = { git = "https://github.com/maurocordioli/viperus", features = ["cache", "fmt-clap", "fmt-env", "global", "watch"] }
[dev-dependencies]
#[dev-dependencies]
[features]
default = []
@@ -54,13 +50,6 @@ identifier = "nwx.advotracker"
short_description = "Online legal advice helper."
description = "Supports lawyers to capture relevant data encountered during an online legal advice.\n"
[profile.dev]
opt-level = 1
incremental = true
[profile.release]
incremental = true
#[[bin]]
#//name = "policycheck"
#path = "src/bin/policycheck.rs"

View File

@@ -12,12 +12,6 @@ categories = ["command-line-interface"]
#build = "build.rs"
default-run = "new-role"
[profile.release]
panic = "abort"
[profile.dev]
rpath = true
[lib]
name = "advotrackerdb"
path = "src/lib.rs"