Crates.io | joto_constants |
lib.rs | joto_constants |
version | 0.1.1 |
source | src |
created_at | 2024-11-01 20:21:35.613494 |
updated_at | 2024-11-01 20:28:32.258996 |
description | Constants for interoperation between US Customary and SI units. |
homepage | |
repository | https://github.com/xorgy/joto |
max_upload_size | |
id | 1432281 |
size | 20,084 |
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.
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.
Licensed under
at your option.
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.