{"repo":"iliekturtles/uom","free":true,"listed":false,"github":"https://github.com/iliekturtles/uom","clone":"git clone https://github.com/iliekturtles/uom.git","description":"Units of measurement -- type-safe zero-cost dimensional analysis","language":"Rust","stars":1253,"topics":["rust","si","dimensional-analysis"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"uom === Units of measurement is a crate that does automatic type-safe zero-cost [dimensional analysis][analysis]. You can create your own systems or use the pre-built [International System of Units][si] (SI) which is based on the [International System of Quantities][isq] (ISQ) and includes numerous [quantities][quantity] (length, mass, time, ...) with conversion factors for even more numerous [measurement units][measurement] (meter, kilometer, foot, mile, ...). No more crashing your [climate orbiter][orbiter]! [analysis]: https://en.wikipedia.org/wiki/Dimensional analysis [si]: https://jcgm.bipm.org/vim/en/1.16.html [isq]: https://jcgm.bipm.org/vim/en/1.6.html [quantity]: https://jcgm.bipm.org/vim/en/1.1.html [measurement]: https://jcgm.bipm.org/vim/en/1.9.html [orbiter]: https://en.wikipedia.org/wiki/Mars Climate Orbiter Usage uom requires rustc 1.68.0 or later. Add this to your Cargo.toml : and this to your crate root: The simple example below shows how to use quantities and units as well as how uom stops invalid operations: See the examples directory for more advanced usage: si.rs -- Shows how to use the pre-built SI system. base.rs -- Shows how to create a set of Quantity type aliases for a different set of base units. See the Design section for implications of choosing different base units. mks.rs -- Shows how to create a custom system of quantities. unit.rs -- Shows how to add new units to existing quantities in the pre-build SI system. Features uom has multiple Cargo f","default_branch":null,"files":null,"tree":[],"storefront":"/r/iliekturtles","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iliekturtles/uom/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}