2024-03-10 15:29:17 -04:00
|
|
|
[package]
|
|
|
|
name = "hb"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-03-13 17:40:18 -04:00
|
|
|
anyhow = "1.0.81"
|
2024-03-10 15:29:17 -04:00
|
|
|
clap = { version = "4.4.3", features = ["derive"] }
|
2024-03-13 17:40:18 -04:00
|
|
|
glob = "0.3.1"
|
2024-03-10 15:29:17 -04:00
|
|
|
rayon = "1.7.0"
|
2024-03-11 12:59:48 -04:00
|
|
|
|
|
|
|
# lints from https://github.com/0atman/noboilerplate/blob/main/scripts/37-functional-rust.md
|
|
|
|
# these are deliberately extremely restrictive to avoid most of the easily-refactored
|
|
|
|
# footguns as much as possible. unlike the github lints, this does not forbid unsafe
|
|
|
|
# code
|
|
|
|
[lints.clippy]
|
|
|
|
enum_glob_use = "deny"
|
|
|
|
pedantic = "deny"
|
|
|
|
nursery = "deny"
|
|
|
|
unwrap_used = "deny"
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
opt-level = 'z' # size optimisation
|
|
|
|
lto = true # link time optimisation
|
|
|
|
codegen-units = 1 # fewer -> more optimisation
|
|
|
|
panic = 'abort' # abort on panic
|
2024-03-13 17:40:18 -04:00
|
|
|
strip = 'symbols' # strip symbols
|