[package]
edition = "2024"
rust-version = "1.89"
name = "danwi"
version = "0.4.2"
authors = ["David Park <dpjungmin@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-cost dimensional analysis library with SI units, compile-time checking, and no_std support"
readme = "README.md"
keywords = [
"units",
"si",
"dimensional-analysis",
"no-std",
"zero-cost",
]
categories = [
"no-std",
"science",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dpjungmin/danwi"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["f64"]
f32 = []
f64 = []
[lib]
name = "danwi"
path = "src/lib.rs"
[[example]]
name = "asm_check"
path = "examples/asm_check.rs"
[[example]]
name = "basics"
path = "examples/basics.rs"
[[example]]
name = "custom_units"
path = "examples/custom_units.rs"
[[example]]
name = "electrical_units"
path = "examples/electrical_units.rs"
[[example]]
name = "kinematic_units"
path = "examples/kinematic_units.rs"
[[example]]
name = "temperature"
path = "examples/temperature.rs"
[[example]]
name = "thrust"
path = "examples/thrust.rs"
[[example]]
name = "torque"
path = "examples/torque.rs"
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "custom_units"
path = "tests/custom_units.rs"
[[test]]
name = "kinds"
path = "tests/kinds.rs"
[dependencies.paste]
version = "1.0"
[dependencies.typenum]
version = "1.18"