[package]
edition = "2024"
rust-version = "1.88.0"
name = "pdg-rs"
version = "0.1.3"
authors = ["Nathaniel Dene Hoffman <nhoffman@wm.edu>"]
build = false
exclude = ["data/*.sqlite"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Programmatic access to the Particle Data Group's database with Rust"
homepage = "https://github.com/denehoffman/pdg-rs"
readme = "README.md"
keywords = [
"particle",
"physics",
"pdg",
]
categories = [
"command-line-utilities",
"science",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/denehoffman/pdg-rs"
[package.metadata.docs.rs]
rustdoc-args = [
"--html-in-header",
"./docs-header.html",
]
[features]
default = ["ratio"]
num = ["dep:num"]
ratio = ["num"]
[lib]
name = "pdg_rs"
path = "src/lib.rs"
[[bin]]
name = "pdg"
path = "src/main.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[dependencies.clap]
version = "4.6.1"
features = ["derive"]
[dependencies.comfy-table]
version = "7.2.2"
features = ["custom_styling"]
[dependencies.directories]
version = "6.0.0"
[dependencies.num]
version = "0.4.3"
optional = true
[dependencies.owo-colors]
version = "4.3.0"
[dependencies.rusqlite]
version = "0.39.0"
features = ["bundled"]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.sha2]
version = "0.10.9"
[dependencies.tempfile]
version = "3.23.0"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.ureq]
version = "2.12.1"
[dev-dependencies.assert_cmd]
version = "2.2.2"
[dev-dependencies.predicates]
version = "3.1.4"
[lints.clippy]
format_push_string = "allow"
multiple_crate_versions = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = "none"