#si-units #constants #integer #interoperation #customary #joto

joto_constants

Constants for interoperation between US Customary and SI units

1 unstable release

0.1.1 Nov 1, 2024
0.1.0 Nov 1, 2024

#12 in #si-units

ISC OR Apache-2.0 OR MIT

9KB
63 lines

Joto Constants

Real interoperability since 1959!

dependency status ISC/MIT/Apache 2.0 Build status Crates.io Docs

This package contains constants for interoperation with Joto workspace packages, it should be expected not to change at all once it is released.

In this package, IOTA is defined as one ninth of a nanometer. This allows common fractions of an inch (ten-thousandths, desktop publishing points, and sixty-fourths) and nanometers to be represented as integers. Using this base unit, combinations of lengths in either US customary units or SI units can be added, subtracted, and multiplied without loss of precision.

Minimum Supported Rust Version (MSRV)

This version of joto_constants has been verified to compile with Rust 1.64 and later.

Future versions might increase the Rust version requirement. It will not be treated as a breaking change, and as such can even happen with small patch releases.

License

Licensed under

at your option.

Contribution

Contributions are welcome by pull request. Please feel free to add your name to the AUTHORS file in any substantive pull request.

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

No runtime deps