# Whippyunits 0.2.1 - now with stable rust!

**URL:** <https://users.rust-lang.org/t/whippyunits-0-2-1-now-with-stable-rust/140786>\
**Category:** announcements\
**Created:** [June 17, 2026, 3:14pm UTC](https://users.rust-lang.org/t/whippyunits-0-2-1-now-with-stable-rust/140786 "2026-06-17T15:14:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oblarg](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/oblarg/32/49498_2.png) [@Oblarg](https://users.rust-lang.org/u/Oblarg)\
**Post date:** [June 17, 2026, 3:14pm UTC](https://users.rust-lang.org/t/whippyunits-0-2-1-now-with-stable-rust/140786/1 "2026-06-17T15:14:44Z")

</div>

After a bit of a hiatus, I've gotten back to working on my units of measure crate, [whippyunits](https://crates.io/crates/whippyunits).

Thanks to a generously-contributed typemath polyfill, whippyunits now works on stable rust - no more nightly `const_generic_expressions`! As a side-effect, algebraic intermediates now resolve correctly in r-a:

[![](https://preview.redd.it/whippyunits-0-2-0-stable-rust-units-of-measure-for-applied-v0-d0dj6ksivu7h1.png?width=708&format=png&auto=webp&s=92bc4de77616d73ca2c83cc72dc61037f6a1aa10) ](https://preview.redd.it/whippyunits-0-2-0-stable-rust-units-of-measure-for-applied-v0-d0dj6ksivu7h1.png?width=708&format=png&auto=webp&s=92bc4de77616d73ca2c83cc72dc61037f6a1aa10)

Why use whippyunits over UOM? Well...

- Whippyunits is _scale-encoded_ - it uses a log-prime-factorized representation to bake lossless rescaling into the type representation. This makes it extremely fixed-point friendly, and generally more numerically stable than other libraries.
- Whippyunits supports _ergonomic declarators_ - you can use declarator methods, a convenient `quantity!` macro that accepts flexible algebraic unit syntax (including UCUM unit strings), and even literals (see below).
- Whippyunits is _scale-explicit_ - arithmetic operations never implicitly rescale either of their arguments. Scale mismatches are compile errors; an inference-compatible `rescale` function can be applied to an argument to specify the behavior inline:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/rust_lang/original/3X/4/5/45ea163bf9c4ebefc9277885b43321dea01bffdc.png)
- Whippyunits has extensive developer tooling for prettyprinting verbose raw `Quantity` types in human-readable form (see screenshots above).
- Whippyunits supports generic dimension traits, letting you very easily write code that is generic over scale and even over disjunctive sets of dimensions (think: signal processing that is generic over the dimensionality of the signal) while maintaining unit and scale safety when concretely invoked.

...and much, much more! For a full overview of what the library can do, see the [examples](https://github.com/WhippyUnits/whippyunits-rs/tree/main/examples) section on github.

Feedback and contributions are welcome!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/system/32/51372_2.png) [@system](https://users.rust-lang.org/u/system)\
**Post date:** [September 15, 2026, 3:15pm UTC](https://users.rust-lang.org/t/whippyunits-0-2-1-now-with-stable-rust/140786/2 "2026-09-15T15:15:44Z")

</div>

Closed on September 15, 2026, 3:15pm UTC

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.
