3.8 KiB
3.8 KiB
Release 0.4.2 (2024-02-06)
Release 0.4.1 (2023-10-07)
- Make
Floatwork withno_std-- thanks @vkahl! - Emit full paths for
OptionandResult. - Add derive macro for
num_traits::SignedandUnsigned-- thanks @tdelabro!
Release 0.4.0 (2023-06-29)
- Update to syn-2 -- 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
NumOpswork withno_std-- thanks @jedrzejboczar!
Release 0.3.2 (2020-08-24)
- Add
#[inline]to all derived functions -- thanks @Amanieu!
Release 0.3.1 (2020-07-28)
- Add
num_traitsproc_macro helper for explicit import - thanks @jean-airoldie! - Provide nicer parse errors and suggest "full-syntax"
Release 0.3.0 (2019-09-27)
- Updated the
proc-macro2,quote, andsyndependencies to 1.0, which raises the minimum supported rustc to 1.31.
Release 0.2.5 (2019-04-23)
Release 0.2.4 (2019-01-25)
Release 0.2.3 (2018-10-03)
- Added newtype deriving for
FromPrimitive,ToPrimitive,NumOps<Self, Self>,NumCast,Zero,One,Num, andFloat. Thanks @asayers!
Release 0.2.2 (2018-05-22)
Release 0.2.1 (2018-05-09)
- Updated dependencies -- thanks @spearman!
Release 0.2.0 (2018-02-21)
- Discriminant matching is now simplified, casting values directly by name, rather than trying to compute offsets from known values manually.
- breaking change: Derivations now import the traits from
num-traitsinstead of the fullnumcrate. These are still compatible, but users need to have an explicitnum-traits = "0.2"dependency in theirCargo.toml.
Release 0.1.44 (2018-01-26)
- The derived code now explicitly allows
unused_qualifications, 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, 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 at rust-num/num-derive.
- The derivation macros have been updated to using
syn0.12. Support for complex expressions in enum values can be enabled with thefull-syntaxfeature.
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!