Simmer
A Rust library crate that expresses some standard units of temperature. It's compatible with embedded systems, happily converts between units, and unwraps internal values when you're ready to leave.
Features
Temperature, a simple wrapper for a float that stores some temperature- A
CheckedTemperaturetype, which only allows 'correct' temperatures Display,Debug, and theufmtcounterpartsf32andf64support- Embedded-aware and tested
Usage
There's not much detail to this crate. You can get started with the code below!
use Temperature;
Checked
There's also a CheckedTemperature type to store and use temperatures safely. Here's a quick example of that:
Contributions
If you feel that something is out of place (or you have a new feature), please feel free to submit a pull request! Particularly for bugs, you don't need to waste any time.
On the other hand, please create an issue before adding any new features. Thanks for your help in making this crate better! 🤩