From e6634a553a054e054c6ec6e59cdc22962435f9c0 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 5 Mar 2021 17:33:22 -0800 Subject: [PATCH] Update num-bigint and release 0.4.0 --- Cargo.toml | 4 ++-- README.md | 4 ++-- RELEASES.md | 11 +++++++++++ src/lib.rs | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6d682c9..2c471fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ categories = ["algorithms", "data-structures", "science", "no-std"] license = "MIT OR Apache-2.0" name = "num-rational" repository = "https://github.com/rust-num/num-rational" -version = "0.3.2" +version = "0.4.0" readme = "README.md" exclude = ["/bors.toml", "/ci/*", "/.github/*"] edition = "2018" @@ -20,7 +20,7 @@ features = ["std", "num-bigint-std", "serde"] [dependencies.num-bigint] optional = true -version = "0.3.0" +version = "0.4.0" default-features = false [dependencies.num-integer] diff --git a/README.md b/README.md index cbf09fd..7fc445c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -num-rational = "0.3" +num-rational = "0.4" ``` ## Features @@ -23,7 +23,7 @@ the default `std` feature. Use this in `Cargo.toml`: ```toml [dependencies.num-rational] -version = "0.3" +version = "0.4" default-features = false ``` diff --git a/RELEASES.md b/RELEASES.md index bff9c1d..7ea045b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,14 @@ +# Release 0.4.0 (2021-03-05) + +- The optional `num-bigint` dependency is now 0.4. +- [The `Rational` alias for `Ratio` is now deprecated][92]. It is + recommended to use specific type sizes for numeric computation, like + `Rational32` and `Rational64`. + +**Contributors**: @cuviper, @vks + +[92]: https://github.com/rust-num/num-rational/pull/92 + # Release 0.3.2 (2020-11-06) - [Fix always rebuilding with --remap-path-prefix][88] diff --git a/src/lib.rs b/src/lib.rs index 09c158e..3fdcf55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ //! //! The `num-rational` crate is tested for rustc 1.31 and greater. -#![doc(html_root_url = "https://docs.rs/num-rational/0.3")] +#![doc(html_root_url = "https://docs.rs/num-rational/0.4")] #![no_std] // Ratio ops often use other "suspicious" ops #![allow(clippy::suspicious_arithmetic_impl)]