Major rewrite, automatic path, smaller binary
This commit is contained in:
parent
af221bedf7
commit
1e3bd82ae7
4 changed files with 414 additions and 586 deletions
27
Cargo.toml
27
Cargo.toml
|
|
@ -1,24 +1,27 @@
|
|||
[package]
|
||||
name = "quickstart"
|
||||
version = "0.1.0"
|
||||
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", "fs", "net", "signal", "macros"], default-features = false }
|
||||
clap = { version = "4", features = ["derive", "cargo", "std"] }
|
||||
anyhow = "1.0"
|
||||
log = "0.4"
|
||||
env_logger = { version = "0.11", 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 }
|
||||
dirs = "5.0"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
opt-level = "z"
|
||||
panic = "abort"
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue