cargo: add smol profile

like half the size of normal release profile
This commit is contained in:
xfnw 2024-03-09 14:20:22 -05:00
parent 23eb92dae3
commit 3fdd64772a
2 changed files with 10 additions and 10 deletions

7
Cargo.lock generated
View File

@ -145,12 +145,6 @@ version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "log"
version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
[[package]]
name = "memchr"
version = "2.7.1"
@ -247,7 +241,6 @@ version = "0.22.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e87c9956bd9807afa1f77e0f7594af32566e830e088a5576d27c5b6f30f49d41"
dependencies = [
"log",
"ring",
"rustls-pki-types",
"rustls-webpki",

View File

@ -8,7 +8,14 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.5.2", default-features = false, features = ["derive", "std", "env", "help", "usage"] }
clap = { version = "4.5.2", default-features = false, features = ["derive", "std", "help", "usage"] }
rustls-pemfile = "2.1.1"
tokio = { version = "1.36.0", features = ["rt-multi-thread", "tokio-macros", "macros", "net", "io-util", "io-std"] }
tokio-rustls = "0.25.0"
tokio = { version = "1.36.0", features = ["rt-multi-thread", "macros", "net", "io-util", "io-std"]}
tokio-rustls = { version = "0.25.0", default-features = false, features = ["ring", "tls12"] }
[profile.smol]
inherits = "release"
opt-level = "z"
panic = "abort"
strip = true
lto = true