Skip to content

BentEngbers/unit-calc

Repository files navigation

Unit-calc

format & analyse passing 100% code coverage

Perform calculations with numbers, while unit-calc takes care of the units. With full type-safety.

Example:

/// 50 mg/l * 100 ml = 5 mg
const MassPerVolume(50, MassUnit.milliGram, VolumeUnit.liter) *
            const Volume(100, VolumeUnit.milliLiters) == const Mass.milliGrams(5) // true

Development

Dependencies

There are a few dependencies that this project uses. Recommended installation is through Cargo.

  • just, to run certain commands
  • grcov, to aggregates code coverage information.
  • watchexec, to run commands when file changes.

Available commands

view the justfile for a list of available commands.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published