[package]
edition = "2024"
rust-version = "1.88"
name = "numbers-le"
version = "0.2.2"
authors = ["Nolin D Naidoo"]
build = false
exclude = [
"AGENTS.md",
"CLAUDE.md",
"rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extract every hardcoded number in a codebase, so a person can check them"
homepage = "https://letools.dev/tools/numbers-le"
readme = "README.md"
keywords = [
"magic-numbers",
"literals",
"hardcoded",
"numbers",
"lint",
]
categories = [
"command-line-utilities",
"development-tools",
"value-formatting",
"text-processing",
"parsing",
]
license = "MIT"
repository = "https://github.com/nolindnaidoo/numbers-le"
[[bin]]
name = "numbers-le"
path = "src/main.rs"
[[test]]
name = "budget"
path = "tests/budget.rs"
[[test]]
name = "contracts"
path = "tests/contracts.rs"
[[test]]
name = "coverage_matrix"
path = "tests/coverage_matrix.rs"
[[test]]
name = "hazards"
path = "tests/hazards.rs"
[[test]]
name = "platform"
path = "tests/platform.rs"
[[test]]
name = "scenarios"
path = "tests/scenarios.rs"
[dependencies.csv]
version = "1"
[dependencies.ignore]
version = "0.4"
[dependencies.jsonc-parser]
version = "0.33"
[dependencies.regex]
version = "1"
[dependencies.rust-ini]
version = "0.21"
[dependencies.saphyr]
version = "0.0.11"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["raw_value"]
[dependencies.toml]
version = "1"
features = ["preserve_order"]
[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false
[lints.clippy]
cast_precision_loss = "allow"
float_cmp = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true