mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-30 00:55:00 +02:00
other: add no-opt and flamegraph build profiles for convenience (#1014)
This commit is contained in:
parent
9fd8ce3151
commit
e7b682a550
21
Cargo.toml
21
Cargo.toml
@ -43,15 +43,22 @@ doc = true
|
|||||||
[profile.dev.package."*"]
|
[profile.dev.package."*"]
|
||||||
opt-level = 3 # Compile dependencies with optimizations on.
|
opt-level = 3 # Compile dependencies with optimizations on.
|
||||||
|
|
||||||
|
[profile.no-opt]
|
||||||
|
inherits = "dev"
|
||||||
|
opt-level = 0
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
# debug = true # Might be nice to have a custom profile for flamegraphs.
|
|
||||||
# strip = false
|
|
||||||
debug = 0
|
debug = 0
|
||||||
strip = "symbols"
|
strip = "symbols"
|
||||||
lto = true
|
lto = true
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[profile.flamegraph]
|
||||||
|
inherits = "release"
|
||||||
|
debug = true
|
||||||
|
strip = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
battery = ["starship-battery"]
|
battery = ["starship-battery"]
|
||||||
gpu = ["nvidia"]
|
gpu = ["nvidia"]
|
||||||
@ -110,11 +117,6 @@ smol = "1.2.5"
|
|||||||
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory", "net"] }
|
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory", "net"] }
|
||||||
mach2 = "0.4.1"
|
mach2 = "0.4.1"
|
||||||
|
|
||||||
[dev-dependencies.cargo-husky]
|
|
||||||
version = "1"
|
|
||||||
default-features = false
|
|
||||||
features = ["user-hooks"]
|
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.dependencies]
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory"] }
|
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory"] }
|
||||||
windows = { version = "0.44.0", features = ["Win32_System_Threading", "Win32_Foundation"] }
|
windows = { version = "0.44.0", features = ["Win32_System_Threading", "Win32_Foundation"] }
|
||||||
@ -130,6 +132,11 @@ filedescriptor = "0.8.2"
|
|||||||
assert_cmd = "2.0.4"
|
assert_cmd = "2.0.4"
|
||||||
predicates = "2.1.1"
|
predicates = "2.1.1"
|
||||||
|
|
||||||
|
[dev-dependencies.cargo-husky]
|
||||||
|
version = "1"
|
||||||
|
default-features = false
|
||||||
|
features = ["user-hooks"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
clap = { version = "3.2.2", features = ["default", "cargo", "wrap_help"] }
|
clap = { version = "3.2.2", features = ["default", "cargo", "wrap_help"] }
|
||||||
clap_complete = "3.2.4"
|
clap_complete = "3.2.4"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user