#measurement #macro #units #numbers #measure #encapsulate #operation

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

#914 in Science

Download history 6/week @ 2024-01-06 15/week @ 2024-01-13 8/week @ 2024-01-20 5/week @ 2024-01-27 5/week @ 2024-02-24 90/week @ 2024-03-02 12/week @ 2024-03-09 8/week @ 2024-03-16

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