Source code

Revision control

Copy as Markdown

Other Tools

# Release 0.4.0 (2023-06-29)
- [Update to syn-2][54] -- thanks @maurer!
- This raises the minimum supported rustc to 1.56.
- The "full-syntax" feature has also been removed.
# Release 0.3.3 (2020-10-29)
- [Make `NumOps` work with `no_std`][41] -- thanks @jedrzejboczar!
# Release 0.3.2 (2020-08-24)
- [Add `#[inline]` to all derived functions][40] -- thanks @Amanieu!
# Release 0.3.1 (2020-07-28)
- [Add `num_traits` proc_macro helper for explicit import][35] - thanks @jean-airoldie!
- [Provide nicer parse errors and suggest "full-syntax"][39]
# Release 0.3.0 (2019-09-27)
- [Updated the `proc-macro2`, `quote`, and `syn` dependencies to 1.0][28],
which raises the minimum supported rustc to 1.31.
# Release 0.2.5 (2019-04-23)
- [Improved the masking of lints in derived code][23].
# Release 0.2.4 (2019-01-25)
- [Adjusted dependencies to allow no-std targets][22].
# Release 0.2.3 (2018-10-03)
- [Added newtype deriving][17] for `FromPrimitive`, `ToPrimitive`,
`NumOps<Self, Self>`, `NumCast`, `Zero`, `One`, `Num`, and `Float`.
Thanks @asayers!
# Release 0.2.2 (2018-05-22)
- [Updated dependencies][14].
# Release 0.2.1 (2018-05-09)
- [Updated dependencies][12] -- thanks @spearman!
# Release 0.2.0 (2018-02-21)
- [Discriminant matching is now simplified][10], casting values directly by
name, rather than trying to compute offsets from known values manually.
- **breaking change**: [Derivations now import the traits from `num-traits`][11]
instead of the full `num` crate. These are still compatible, but users need
to have an explicit `num-traits = "0.2"` dependency in their `Cargo.toml`.
# Release 0.1.44 (2018-01-26)
- [The derived code now explicitly allows `unused_qualifications`][9], so users
that globally deny that lint don't encounter an error.
# Release 0.1.43 (2018-01-23)
- [The derived code now explicitly allows `trivial_numeric_casts`][7], so users
that globally deny that lint don't encounter an error.
# Release 0.1.42 (2018-01-22)
- [num-derive now has its own source repository][num-356] at [rust-num/num-derive][home].
- [The derivation macros have been updated][3] to using `syn` 0.12. Support for complex
expressions in enum values can be enabled with the `full-syntax` feature.
Thanks to @cuviper and @hcpl for their contributions!
# Prior releases
No prior release notes were kept. Thanks all the same to the many
contributors that have made this crate what it is!