#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

#160 in Value formatting

Download history 5/week @ 2024-02-25 8/week @ 2024-03-10 58/week @ 2024-03-31

66 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.7–1.2MB
~26K SLoC