27 lines
680 B
TOML
27 lines
680 B
TOML
[package]
|
|
name = "template"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[lints.clippy]
|
|
enum_glob_use = "deny"
|
|
nursery = { level = "deny", priority = -1 }
|
|
pedantic = { level = "deny", priority = -1 }
|
|
unwrap_used = "deny"
|
|
|
|
[profile.dev]
|
|
panic = "abort"
|
|
|
|
[profile.release]
|
|
opt-level = "z" # Optimize for size.
|
|
lto = true # Enable Link Time Optimization
|
|
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
|
|
panic = "abort" # Abort on panic
|
|
strip = true # Automatically strip symbols from the binary.
|