diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37de97cd05..3605c90840 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,8 +14,7 @@ jobs: matrix: rust: [ 1.31.0, # 2018! - 1.32.0, # rand - 1.36.0, # alloc + 1.36.0, # alloc, rand stable, beta, nightly diff --git a/Cargo.toml b/Cargo.toml index c0105c704a..9eb3218e95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = [ "algorithms", "data-structures", "science", "no-std" ] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-num/num" name = "num" -version = "0.3.1" +version = "0.4.0" readme = "README.md" exclude = ["/bors.toml", "/ci/*", "/.github/*"] edition = "2018" @@ -23,11 +23,11 @@ travis-ci = { repository = "rust-num/num" } [dependencies.num-bigint] optional = true # needs std until Rust 1.36 -version = "0.3.1" +version = "0.4.0" default-features = false [dependencies.num-complex] -version = "0.3.1" +version = "0.4.0" default-features = false [dependencies.num-integer] @@ -41,7 +41,7 @@ default-features = false features = ["i128"] [dependencies.num-rational] -version = "0.3.1" +version = "0.4.0" default-features = false [dependencies.num-traits] diff --git a/README.md b/README.md index 0ba79e01ab..0753d24f7f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -num = "0.3" +num = "0.4" ``` ## Features @@ -42,7 +42,7 @@ the default `std` feature. Use this in `Cargo.toml`: ```toml [dependencies.num] -version = "0.3" +version = "0.4" default-features = false ``` diff --git a/RELEASES.md b/RELEASES.md index 96dec1bee5..d7f953cb0b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,11 @@ +# Release 0.4.0 (2021-03-05) + +- Updated `num-bigint`, `num-complex`, and `num-rational` to 0.4.0. + - Updated to `rand` 0.8 in `num-bigint` and `num-complex`. +- As with prior release bumps, all items exported from `num-integer`, + `num-iter`, and `num-traits` are still semver-compatible with those exported + by earlier version of `num`. + # Release 0.3.1 (2020-11-03) - Updated all sub-crates to their latest versions. diff --git a/bors.toml b/bors.toml index 9675ca950c..82e9ad2cea 100644 --- a/bors.toml +++ b/bors.toml @@ -1,6 +1,5 @@ status = [ "Test (1.31.0)", - "Test (1.32.0)", "Test (1.36.0)", "Test (stable)", "Test (beta)", diff --git a/ci/rustup.sh b/ci/rustup.sh index 5884579dac..e59257bceb 100755 --- a/ci/rustup.sh +++ b/ci/rustup.sh @@ -5,6 +5,6 @@ set -ex ci=$(dirname $0) -for version in 1.31.0 1.32.0 1.36.0 stable beta nightly; do +for version in 1.31.0 1.36.0 stable beta nightly; do rustup run "$version" "$ci/test_full.sh" done diff --git a/ci/test_full.sh b/ci/test_full.sh index d6ba0f9428..5b5bef3f11 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -29,7 +29,7 @@ fi STD_FEATURES=(libm serde) NO_STD_FEATURES=(libm) -check_version 1.32 && STD_FEATURES+=(rand) +check_version 1.36 && STD_FEATURES+=(rand) check_version 1.36 && ALLOC_FEATURES=(libm serde rand) echo "Testing supported features: ${STD_FEATURES[*]}" echo " no_std supported features: ${NO_STD_FEATURES[*]}" diff --git a/src/lib.rs b/src/lib.rs index 27dd1968c4..f5c6535dea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ //! //! The `num` crate is tested for rustc 1.31 and greater. -#![doc(html_root_url = "https://docs.rs/num/0.3")] +#![doc(html_root_url = "https://docs.rs/num/0.4")] #![no_std] #[cfg(any(feature = "alloc", feature = "std"))] @@ -66,7 +66,9 @@ pub use num_complex::Complex; #[cfg(any(feature = "alloc", feature = "std"))] pub use num_rational::BigRational; +#[allow(deprecated)] pub use num_rational::Rational; +pub use num_rational::{Rational32, Rational64}; pub use num_integer::Integer;