Rust / static analysis

SLUT

Vectors and matrices that carry physical dimensions.

experimental

Incompatible units become compile errors instead of silent arithmetic bugs.

crates.io

Rust / static analysis

let mass = (10.0)
    .scalar::<Kilogram>();
let force = Vec2::<f64, Force>
    ::new::<Newton>([1.0, 2.0]);
let acc = force.scale(mass.inv());
mass + forceRejected: incompatible dimensions