cpc 4.2.0

evaluates math expressions, with support for units and conversion between units
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "cpc"
version = "4.2.0"
authors = ["Kasper Henningsen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "evaluates math expressions, with support for units and conversion between units"
homepage = "https://github.com/probablykasper/cpc#readme"
documentation = "https://docs.rs/cpc"
readme = "README.md"
keywords = [
    "math",
    "expression",
    "evaluate",
    "units",
    "convert",
]
categories = [
    "mathematics",
    "science",
    "parsing",
    "text-processing",
    "value-formatting",
]
license = "MIT"
repository = "https://github.com/probablykasper/cpc"

[lib]
name = "cpc"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "cpc"
path = "src/main.rs"

[dependencies.fastnum]
version = "0.7"
features = ["serde"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.unicode-segmentation]
version = "1.13"

[dependencies.web-time]
version = "1.1.0"

[dev-dependencies.regex]
version = "1.11"

[dev-dependencies.serial_test]
version = "3.5.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "json",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.sys-locale]
version = "0.3.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1.7"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[lints.clippy]
comparison_chain = "allow"
get_first = "allow"
if_same_then_else = "allow"
match_like_matches_macro = "allow"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1