Files
candy/Cargo.toml

77 lines
2.5 KiB
TOML

cargo-features = ["profile-rustflags", "trim-paths"]
[package]
name = "candy"
version = "0.1.1"
edition = "2021"
rust-version = "1.80.0"
[features]
ring = ["rustls/ring", "tokio-rustls/ring", "hyper-rustls/ring"]
aws-lc-rs = [
"rustls/aws-lc-rs",
"tokio-rustls/aws-lc-rs",
"hyper-rustls/aws-lc-rs",
]
default = ["ring"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# core
tokio = { version = "1.44.1", features = ["full"] }
tokio-util = "0.7.14"
hyper = { version = "1.6.0", features = ["full"] }
hyper-util = { version = "0.1.10", features = ["full"] }
http = "1.3.1"
http-body-util = "0.1.3"
futures-util = "0.3.31"
async-compression = { version = "0.4.22", features = [
"tokio",
"zstd",
"gzip",
"deflate",
"brotli",
] }
mimalloc = "0.1.44"
# ssl
rustls = { version = "0.23.25", default-features = false, features = [
"logging",
"std",
"tls12",
] }
tokio-rustls = { version = "0.26.2", default-features = false, features = [
"logging",
"tls12",
] }
hyper-rustls = { version = "0.27.5", default-features = false, features = [
"logging",
"tls12",
"native-tokio",
"http1",
] }
# tools
thiserror = "2.0.12"
anyhow = "1.0.97"
serde = { version = "1.0.219", features = ["derive"] }
toml = "0.8.20"
bytes = "1.10.1"
# logging
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
clap = { version = "4.5.33", features = ["derive"] }
rustls-pemfile = "2.2.0"
[profile.dev]
incremental = true # Compile your binary in smaller steps.
rustflags = ["-Zthreads=8"] # Better compile performance.
[profile.release]
codegen-units = 1 # Allows LLVM to perform better optimization.
lto = true # Enables link-time-optimizations.
opt-level = 3 # Prioritizes small binary size. Use `3` if you prefer speed.
panic = "abort" # Higher performance by disabling panic handlers.
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"]