mirror of
https://github.com/DefectingCat/phthonus
synced 2025-07-15 08:31:33 +00:00
update build profile
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
cargo-features = ["profile-rustflags", "trim-paths"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "phthonus"
|
name = "phthonus"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
@ -29,9 +31,15 @@ rand = "0.9.0"
|
|||||||
validator = { version = "0.20.0", features = ["derive"] }
|
validator = { version = "0.20.0", features = ["derive"] }
|
||||||
jsonwebtoken = "9.3.1"
|
jsonwebtoken = "9.3.1"
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
incremental = true # Compile your binary in smaller steps.
|
||||||
|
rustflags = ["-Zthreads=8"] # Better compile performance.
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
codegen-units = 1 # Allows LLVM to perform better optimization.
|
||||||
panic = "abort" # Strip expensive panic clean-up logic
|
lto = true # Enables link-time-optimizations.
|
||||||
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
|
opt-level = 3 # Prioritizes small binary size. Use `3` if you prefer speed.
|
||||||
# opt-level = "s" # Optimize for binary size
|
panic = "abort" # Higher performance by disabling panic handlers.
|
||||||
strip = true # Remove debug symbols
|
strip = true # Ensures debug symbols are removed.
|
||||||
|
trim-paths = "all" # Removes potentially privileged information from your binaries.
|
||||||
|
rustflags = ["-Cdebuginfo=0", "-C", "target-cpu=native", "-Z", "threads=8"]
|
||||||
|
Reference in New Issue
Block a user