Skip to content

Commit 644384f

Browse files
bors[bot]cuviper
andauthored
Merge #405
405: Release 0.4.0 r=cuviper a=cuviper Co-authored-by: Josh Stone <cuviper@gmail.com>
2 parents ba3544b + fa3fc97 commit 644384f

File tree

8 files changed

+21
-12
lines changed

8 files changed

+21
-12
lines changed

.github/workflows/ci.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
matrix:
1515
rust: [
1616
1.31.0, # 2018!
17-
1.32.0, # rand
18-
1.36.0, # alloc
17+
1.36.0, # alloc, rand
1918
stable,
2019
beta,
2120
nightly

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ categories = [ "algorithms", "data-structures", "science", "no-std" ]
88
license = "MIT OR Apache-2.0"
99
repository = "https://github.com/rust-num/num"
1010
name = "num"
11-
version = "0.3.1"
11+
version = "0.4.0"
1212
readme = "README.md"
1313
exclude = ["/bors.toml", "/ci/*", "/.github/*"]
1414
edition = "2018"
@@ -23,11 +23,11 @@ travis-ci = { repository = "rust-num/num" }
2323

2424
[dependencies.num-bigint]
2525
optional = true # needs std until Rust 1.36
26-
version = "0.3.1"
26+
version = "0.4.0"
2727
default-features = false
2828

2929
[dependencies.num-complex]
30-
version = "0.3.1"
30+
version = "0.4.0"
3131
default-features = false
3232

3333
[dependencies.num-integer]
@@ -41,7 +41,7 @@ default-features = false
4141
features = ["i128"]
4242

4343
[dependencies.num-rational]
44-
version = "0.3.1"
44+
version = "0.4.0"
4545
default-features = false
4646

4747
[dependencies.num-traits]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Add this to your `Cargo.toml`:
3232

3333
```toml
3434
[dependencies]
35-
num = "0.3"
35+
num = "0.4"
3636
```
3737

3838
## Features
@@ -42,7 +42,7 @@ the default `std` feature. Use this in `Cargo.toml`:
4242

4343
```toml
4444
[dependencies.num]
45-
version = "0.3"
45+
version = "0.4"
4646
default-features = false
4747
```
4848

RELEASES.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Release 0.4.0 (2021-03-05)
2+
3+
- Updated `num-bigint`, `num-complex`, and `num-rational` to 0.4.0.
4+
- Updated to `rand` 0.8 in `num-bigint` and `num-complex`.
5+
- `Rational` is deprecated in favor of explicit `Rational32` or `Rational64`.
6+
- As with prior release bumps, all items exported from `num-integer`,
7+
`num-iter`, and `num-traits` are still semver-compatible with those exported
8+
by earlier version of `num`.
9+
110
# Release 0.3.1 (2020-11-03)
211

312
- Updated all sub-crates to their latest versions.

bors.toml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
status = [
22
"Test (1.31.0)",
3-
"Test (1.32.0)",
43
"Test (1.36.0)",
54
"Test (stable)",
65
"Test (beta)",

ci/rustup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
set -ex
66

77
ci=$(dirname $0)
8-
for version in 1.31.0 1.32.0 1.36.0 stable beta nightly; do
8+
for version in 1.31.0 1.36.0 stable beta nightly; do
99
rustup run "$version" "$ci/test_full.sh"
1010
done

ci/test_full.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929

3030
STD_FEATURES=(libm serde)
3131
NO_STD_FEATURES=(libm)
32-
check_version 1.32 && STD_FEATURES+=(rand)
32+
check_version 1.36 && STD_FEATURES+=(rand)
3333
check_version 1.36 && ALLOC_FEATURES=(libm serde rand)
3434
echo "Testing supported features: ${STD_FEATURES[*]}"
3535
echo " no_std supported features: ${NO_STD_FEATURES[*]}"

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
//!
5757
//! The `num` crate is tested for rustc 1.31 and greater.
5858
59-
#![doc(html_root_url = "https://docs.rs/num/0.3")]
59+
#![doc(html_root_url = "https://docs.rs/num/0.4")]
6060
#![no_std]
6161

6262
#[cfg(any(feature = "alloc", feature = "std"))]
@@ -66,7 +66,9 @@ pub use num_complex::Complex;
6666

6767
#[cfg(any(feature = "alloc", feature = "std"))]
6868
pub use num_rational::BigRational;
69+
#[allow(deprecated)]
6970
pub use num_rational::Rational;
71+
pub use num_rational::{Rational32, Rational64};
7072

7173
pub use num_integer::Integer;
7274

0 commit comments

Comments
 (0)