Registry / utility / uom
library0.38.0rscratesunverified

Type-safe units of measurement with compile-time dimensional analysis.

# Cargo.toml [dependencies] uom = "0.38.0"
INSTALL
IMPORT
SIG · UOM
U
uom
utilityrustv0.38.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Length
use uom::si::f64::Length;

Creates a length of 5 meters and prints its value.

use uom::si::f64::Length; use uom::si::length::meter; let l = Length::new::<meter>(5.0); println!("Length: {} m", l.value);
Debug
Known issues
gotchaRequires enabling the appropriate SI system feature (e.g., "si") in Cargo.toml.
fix
Add `uom = { version = "0.38", features = ["si"] }` to Cargo.toml.
affects: >=0.1.0
Upgrade
Version history
0.38.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
uom — cargo add uom · libregistry