#units #calculations #handy #macro #imaginable

value_unit

A crate for every unit imaginable. Also contains a handy macro

4 releases

0.1.3 Sep 3, 2023
0.1.2 Sep 1, 2023
0.1.1 Mar 30, 2023
0.1.0 Mar 30, 2023

#281 in Value formatting

23 downloads per month

Apache-2.0 OR MIT

16KB
341 lines

#Value Unit Crate This crate allows you to perform calculations with units.

##Usage To create a value_unit use the ValueUnit macro. g = ValueUnit!(9.81 m s^-2)

Then you can perform calculations


lib.rs:

Using this crate I also created a handy cli calculator that can process units and store variables
See https://github.com/FBastiaan04/unit_calc/

Dependencies

~0.6–1.1MB
~24K SLoC