docs.rs failed to build dimensioned-0.1.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
dimensioned-0.8.0
Dimensioned
A library for compile-time type checking of arbitrary unit systems.
This library currently comes with just SI units, but you can easily make your own by
editing or importing unitsmaker.py
. It has no tutorial yet, but it should be easy enough
to emulate (just look at main()
). Note: it does save a file to your computer and does
zero sanity checking, so run it at your own risk.
To build,
cargo build
Here is an example of its use:
(excerpt of examples/vec.rs)
with output:
A physicist was standing at (-13, 33) m.
Then she walked to (26, -19) m, for a displacement of (39, -52) m.
The walk took her 26 s, so she must have had a velocity of (1.5, -2) ms^-1.
That's a speed of 2.5 ms^-1! Again, that's 2.5 ms^-1!
Now, she's standing next to a merry-go-round, centered at (24, -17) m.
That is 2.828427 m away from her. She decides to spin it, pushing with a force of (500, 0) mkgs^-2.
That's a torque of 1000 m^2kgs^-2.
Run the example with
cargo run --example vec