27 lines
No EOL
1.1 KiB
TOML
27 lines
No EOL
1.1 KiB
TOML
[package]
|
|
name = "quickstart"
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
hyper = { version = "1", features = ["http1", "server"], default-features = false }
|
|
hyper-util = { version = "0.1", features = ["tokio"], default-features = false }
|
|
tokio = { version = "1", features = ["rt", "rt-multi-thread", "fs", "net", "signal", "macros"], default-features = false }
|
|
mime_guess = { version = "2.0", default-features = false }
|
|
percent-encoding = "2.3"
|
|
http-body-util = { version = "0.1", default-features = false }
|
|
|
|
[profile.release]
|
|
opt-level = "z" # Optimize aggressively for size
|
|
lto = true # Link-time optimization
|
|
codegen-units = 1 # Maximum optimization opportunities
|
|
panic = "abort" # Smaller panic handling
|
|
strip = true # Strip symbols (Rust 1.59+)
|
|
overflow-checks = false # Disable overflow checks for size
|
|
debug = false # No debug info
|
|
debug-assertions = false # No debug assertions
|
|
incremental = false # Disable incremental compilation
|
|
rpath = false # Don't use rpath
|
|
|
|
[profile.release.package."*"]
|
|
opt-level = "z" # Apply size optimization to all dependencies |