feat: opt binary size for `minimal` profile

This commit is contained in:
Yujia Qiao 2021-12-26 14:47:31 +08:00 committed by Yujia Qiao
parent 21e63fe10e
commit 467afe279a
1 changed files with 7 additions and 1 deletions

View File

@ -16,12 +16,18 @@ tls = ["tokio-native-tls"]
noise = ["snowstorm", "base64"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
lto = true
[profile.bench]
debug = 1
[profile.minimal]
inherits = "release"
opt-level = "s"
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[dependencies]
tokio = { version = "1", features = ["full"] }