#measurement #units #measure #macro #operations #numbers #encapsulate

bin+lib rs-measures

A library of Rust macros to encapsulate numbers in measures, provided with units of measurement, allowing any meaningful operation, but statically forbidding meaningless operations with them

5 releases (breaking)

0.4.0 Jan 30, 2024
0.3.0 Jan 22, 2024
0.2.0 Jan 16, 2024
0.1.0 Jan 14, 2024
0.0.0 Jan 8, 2024

#853 in Math

Download history 17/week @ 2024-07-24 6/week @ 2024-07-31 1/week @ 2024-09-18 3/week @ 2024-09-25 4/week @ 2024-10-02

53 downloads per month
Used in units-relation

MIT/Apache

140KB
3K SLoC

rs-measures

Crates.io

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Dependencies

~310KB