[package] name = "cpc" version = "3.0.0" description = "evaluates math expressions, with support for units and conversion between units" authors = ["Kasper Henningsen"] edition = "2024" readme = "README.md" license = "MIT" homepage = "https://github.com/probablykasper/cpc#readme" repository = "https://github.com/probablykasper/cpc" documentation = "https://docs.rs/cpc" keywords = ["math", "expression", "evaluate", "units", "convert"] autobins = false categories = [ "mathematics", "science", "parsing", "text-processing", "value-formatting", ] [[bin]] name = "cpc_cli" path = "src/main.rs" [lib] crate-type = ["cdylib", "rlib"] [dependencies] fastnum = "0.2" unicode-segmentation = "1.12" web-time = "1.1.0" once_cell = "1.20" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] ureq = { version = "2.12", features = ["json"] } [target.'cfg(target_arch = "wasm32")'.dependencies] console_error_panic_hook = "0.1.7" wasm-bindgen = "0.2" js-sys = "0.3" [dev-dependencies] regex = "1.11" [lints.clippy] comparison_chain = "allow" if_same_then_else = "allow" match_like_matches_macro = "allow" get_first = "allow"