num
A collection of numeric types and traits for Rust, including bigint, complex, rational, range iterators, generic integers, and more!
0.4.3
261M downloads/mo
#401 most downloaded on crates.io
rust-num/num
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 2.3 years
Some releases are documented
notes for 9 of 23 stable releases
35 versions withdrawn
withdrawn after publishing
12 years old
58 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
58 releases · Nov 2014 to Jan 2025Releases
latest 58-
0.4.308 May 2024Release notes
Open source →- Upgrade to 2021 edition, MSRV 1.60.
- Updated all sub-crates to their latest versions.
-
0.4.212 Apr 2024 -
0.4.111 Jul 2023 -
0.4.006 Mar 2021Release notes
Open source →- Updated
num-bigint,num-complex, andnum-rationalto 0.4.0.- Updated to
rand0.8 innum-bigintandnum-complex. Rationalis deprecated in favor of explicitRational32orRational64.
- Updated to
- As with prior release bumps, all items exported from
num-integer,num-iter, andnum-traitsare still semver-compatible with those exported by earlier version ofnum.
- Updated
-
0.3.103 Nov 2020Release notes
Open source →- Updated all sub-crates to their latest versions.
- Clarify the license specification as "MIT OR Apache-2.0".
-
0.3.013 Jun 2020Release notes
Open source →All items exported from
num-integer,num-iter, andnum-traitsare still semver-compatible with those exported bynum0.1 and 0.2. If you have these as public dependencies in your own crates, it is not a breaking change to move tonum0.3. However, this is not true ofnum-bigint,num-complex, ornum-rational, as those exported items are distinct in this release.Enhancements
- Updates to
num-integer,num-iter, andnum-traitsare still compatible withnum0.1 and 0.2. - The "alloc" feature enables
bigintwithoutstdon Rust 1.36+. - The "libm" feature enables
Floatwithoutstdintraitsandcomplex. - Please see the release notes of the individual sub-crates for details.
Breaking Changes
numnow requires rustc 1.31 or greater.- The "i128" opt-in feature was removed, now always available.
randsupport has been updated to 0.7, requiring Rust 1.32.
Contributors: @cuviper
- Updates to
-
0.2.110 Jan 2020Release notes
Open source →- Updated all sub-crates to their latest versions.
Contributors: @cuviper, @ignatenkobrain, @jimbo1qaz
-
0.2.030 Jun 2018Release notes
Open source →All items exported from
num-integer,num-iter, andnum-traitsare still semver-compatible with those exported bynum0.1. If you have these as public dependencies in your own crates, it is not a breaking change to move tonum0.2. However, this is not true ofnum-bigint,num-complex, ornum-rational, as those exported items are distinct in this release.A few common changes are listed below, but most of the development happens in the individual sub-crates. Please consult their release notes for more details about recent changes:
num-bigint,num-complex,num-integer,num-iter,num-rational, andnum-traits.Enhancements
- Updates to
num-integer,num-iter, andnum-traitsare still compatible withnum0.1. - 128-bit integers are supported with Rust 1.26 and later.
BigInt,BigUint,Complex, andRatioall implementSumandProduct.
Breaking Changes
numnow requires rustc 1.15 or greater.num-bigint,num-complex, andnum-rationalhave all been updated to 0.2.- It's no longer possible to toggle individual
num-*sub-crates using cargo features. If you need that control, please use those crates directly. - There is now a
stdfeature, enabled by default, along with the implication that building without this feature makes this a#![no_std]crate.num::bigintis not available withoutstd, and the other sub-crates may have limited functionality. - The
serdedependency has been updated to 1.0, still disabled by default. Therustc-serializecrate is no longer supported bynum. - The
randdependency has been updated to 0.5, now disabled by default. This requires rustc 1.22 or greater forrand's own requirement.
Contributors: @CAD97, @cuviper, and the many sub-crate contributors!
Release notes
Open source →All items exported from
num-integer,num-iter, andnum-traitsare still semver-compatible with those exported bynum0.1. If you have these as public dependencies in your own crates, it is not a breaking change to move tonum0.2. However, this is not true ofnum-bigint,num-complex, ornum-rational, as those exported items are distinct in this release.A few common changes are listed below, but most of the development happens in the individual sub-crates. Please consult their release notes for more details about recent changes:
num-bigint,num-complex,num-integer,num-iter,num-rational, andnum-traits.Enhancements
- Updates to
num-integer,num-iter, andnum-traitsare still compatible withnum0.1. - 128-bit integers are supported with Rust 1.26 and later.
BigInt,BigUint,Complex, andRatioall implementSumandProduct.
Breaking Changes
numnow requires rustc 1.15 or greater.num-bigint,num-complex, andnum-rationalhave all been updated to 0.2.- It's no longer possible to toggle individual
num-*sub-crates using cargo features. If you need that control, please use those crates directly. - There is now a
stdfeature, enabled by default, along with the implication that building without this feature makes this a#![no_std]crate.num::bigintis not available withoutstd, and the other sub-crates may have limited functionality. - The
serdedependency has been updated to 1.0, still disabled by default. Therustc-serializecrate is no longer supported bynum. - The
randdependency has been updated to 0.5, now disabled by default. This requires rustc 1.22 or greater forrand's own requirement.
Contributors: @CAD97, @cuviper, and the many sub-crate contributors!
- Updates to
-
0.1.4325 Jan 2025Nothing published for this version
-
0.1.4209 Feb 2018Release notes
Open source →- All of the num sub-crates now have their own source repositories.
- Updated num sub-crates to their latest versions.
Contributors: @cuviper
-
0.1.4101 Dec 2017Nothing published for this version
-
0.1.4015 Jul 2017Nothing published for this version
-
0.1.3909 Jun 2017Nothing published for this version
-
0.1.3809 Jun 2017 withdrawnNothing published for this version
-
0.1.3726 Feb 2017Nothing published for this version
-
0.1.3630 Sep 2016Nothing published for this version
-
0.1.3518 Aug 2016Nothing published for this version
-
0.1.3413 Jul 2016Nothing published for this version
-
0.1.3312 Jul 2016 withdrawnNothing published for this version
-
0.1.3214 Apr 2016Nothing published for this version
-
0.1.3117 Feb 2016Nothing published for this version
-
0.1.3008 Jan 2016Nothing published for this version
-
0.1.2917 Dec 2015Nothing published for this version
-
0.1.2822 Nov 2015Nothing published for this version
-
0.1.2719 Aug 2015Nothing published for this version
-
0.1.2610 Aug 2015 withdrawnNothing published for this version
-
0.1.2502 Jun 2015 withdrawnNothing published for this version
-
0.1.2424 Apr 2015 withdrawnNothing published for this version
-
0.1.2322 Apr 2015 withdrawnNothing published for this version
-
0.1.2205 Apr 2015 withdrawnNothing published for this version
-
0.1.2103 Apr 2015 withdrawnNothing published for this version
-
0.1.2002 Apr 2015 withdrawnNothing published for this version
-
0.1.1926 Mar 2015 withdrawnNothing published for this version
-
0.1.1826 Mar 2015 withdrawnNothing published for this version
-
0.1.1723 Mar 2015 withdrawnNothing published for this version
-
0.1.1619 Mar 2015 withdrawnNothing published for this version
-
0.1.1504 Mar 2015 withdrawnNothing published for this version
-
0.1.1420 Feb 2015 withdrawnNothing published for this version
-
0.1.1319 Feb 2015 withdrawnNothing published for this version
-
0.1.1203 Feb 2015 withdrawnNothing published for this version
-
0.1.1102 Feb 2015 withdrawnNothing published for this version
-
0.1.1023 Jan 2015 withdrawnNothing published for this version
-
0.1.921 Jan 2015 withdrawnNothing published for this version
-
0.1.809 Jan 2015 withdrawnNothing published for this version
-
0.1.709 Jan 2015 withdrawnNothing published for this version
-
0.1.607 Jan 2015 withdrawnNothing published for this version
-
0.1.504 Jan 2015 withdrawnNothing published for this version
-
0.1.403 Jan 2015 withdrawnNothing published for this version
-
0.1.323 Dec 2014 withdrawnNothing published for this version
-
0.1.222 Dec 2014 withdrawnNothing published for this version
-
0.1.119 Dec 2014 withdrawnNothing published for this version
-
0.1.016 Dec 2014 withdrawnNothing published for this version
-
0.0.613 Dec 2014 withdrawnNothing published for this version
-
0.0.528 Nov 2014 withdrawnNothing published for this version
-
0.0.421 Nov 2014 withdrawnNothing published for this version
-
0.0.319 Nov 2014 withdrawnNothing published for this version
-
0.0.219 Nov 2014 withdrawnNothing published for this version
-
0.0.111 Nov 2014 withdrawnNothing published for this version