num-derive
Numeric syntax extensions
0.5.1
218M downloads/mo
#468 most downloaded on crates.io
rust-num/num-derive
What this package is like to depend on
Last release 1 months ago
21 Jul 2026
Release timing varies
gaps range from 4 weeks to 2.7 years
Most releases are documented
notes for 18 of 24 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
24 releases · first in 2016
2 releases in the last 12 months
see the full history below
Release timeline
24 releases · Sep 2016 to Jul 2026Releases
latest 24-
0.5.121 Jul 2026 -
0.5.021 Jul 2026 -
0.4.206 Feb 2024 -
0.4.107 Oct 2023Release notes
Open source →- Make
Floatwork withno_std-- thanks @vkahl! - Emit full paths for
OptionandResult. - Add derive macro for
num_traits::SignedandUnsigned-- thanks @tdelabro!
- Make
-
0.4.030 Jun 2023Release notes
Open source →- Update to syn-2 -- thanks @maurer!
- This raises the minimum supported rustc to 1.56.
- The "full-syntax" feature has also been removed.
- Update to syn-2 -- thanks @maurer!
-
0.3.329 Oct 2020 -
0.3.224 Aug 2020 -
0.3.129 Jul 2020Release notes
Open source →- Add
num_traitsproc_macro helper for explicit import - thanks @jean-airoldie! - Provide nicer parse errors and suggest "full-syntax"
- Add
-
0.3.027 Sep 2019Release notes
Open source →- Updated the
proc-macro2,quote, andsyndependencies to 1.0, which raises the minimum supported rustc to 1.31.
- Updated the
-
0.2.523 Apr 2019 -
0.2.426 Jan 2019 -
0.2.303 Oct 2018Release notes
Open source →- Added newtype deriving for
FromPrimitive,ToPrimitive,NumOps<Self, Self>,NumCast,Zero,One,Num, andFloat. Thanks @asayers!
- Added newtype deriving for
-
0.2.222 May 2018 -
0.2.109 May 2018 -
0.2.021 Feb 2018Release notes
Open source →- 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.
-
0.1.4426 Jan 2018Release notes
Open source →- The derived code now explicitly allows
unused_qualifications, so users that globally deny that lint don't encounter an error.
- The derived code now explicitly allows
-
0.1.4323 Jan 2018Release notes
Open source →- The derived code now explicitly allows
trivial_numeric_casts, so users that globally deny that lint don't encounter an error.
- The derived code now explicitly allows
-
0.1.4223 Jan 2018Release notes
Open source →- 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!
-
0.1.4115 Jul 2017Nothing published for this version
-
0.1.4026 Feb 2017Nothing published for this version
-
0.1.3912 Jan 2017Nothing published for this version
-
0.1.3828 Nov 2016Nothing published for this version
-
0.1.3715 Oct 2016Nothing published for this version
-
0.1.3630 Sep 2016Nothing published for this version