packages

units

0.1.0Official

Physical quantities with units: dimensions checked at compile time, SI and common units, parsing, conversion, CODATA constants

published · MIT OR Apache-2.0 · 0 dependencies

Official: use units::..; alone is enough, the first build adds it. Or:

nabi add units

Then in your code

use units::{Measure, UnitError};
deps: {
    "units": Dep::version("^0.1.0"),
},

Dependencies of 0.1.0

None. This package builds on the standard library alone.

Features

FeatureTurns on
defaultliterals ops
literalsnothing else
opsnothing else