Skip to content

Commit a4764ef

Browse files
authored
Merge pull request #1380 from rust-ndarray/approx-0.5
Update to Approx 0.5
2 parents 510d65b + ea62b5d commit a4764ef

File tree

7 files changed

+8
-20
lines changed

7 files changed

+8
-20
lines changed

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ num-complex = { version = "0.4", default-features = false }
3434
# Use via the `rayon` crate feature!
3535
rayon_ = { version = "1.0.3", optional = true, package = "rayon" }
3636

37-
approx = { version = "0.4", optional = true , default-features = false }
38-
approx-0_5 = { package = "approx", version = "0.5", optional = true , default-features = false }
37+
approx = { version = "0.5", optional = true , default-features = false }
3938

4039
# Use via the `blas` crate feature!
4140
cblas-sys = { version = "0.1.4", optional = true, default-features = false }
@@ -49,7 +48,7 @@ rawpointer = { version = "0.2" }
4948
[dev-dependencies]
5049
defmac = "0.2"
5150
quickcheck = { version = "1.0", default-features = false }
52-
approx = "0.4"
51+
approx = "0.5"
5352
itertools = { version = "0.10.0", default-features = false, features = ["use_std"] }
5453

5554
[features]
@@ -66,7 +65,7 @@ serde-1 = ["serde"]
6665
test = []
6766

6867
# This feature is used for docs
69-
docs = ["approx", "approx-0_5", "serde", "rayon"]
68+
docs = ["approx", "serde", "rayon"]
7069

7170
std = ["num-traits/std", "matrixmultiply/std"]
7271
rayon = ["rayon_", "std"]

README.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ your `Cargo.toml`.
8585

8686
- ``approx``
8787

88-
- Implementations of traits from version 0.4 of the [`approx`] crate.
89-
90-
- ``approx-0_5``
91-
9288
- Implementations of traits from version 0.5 of the [`approx`] crate.
9389

9490
- ``blas``

src/array_approx.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,3 @@ macro_rules! impl_approx_traits {
193193

194194
#[cfg(feature = "approx")]
195195
impl_approx_traits!(approx, "**Requires crate feature `\"approx\"`.**");
196-
197-
#[cfg(feature = "approx-0_5")]
198-
impl_approx_traits!(approx_0_5, "**Requires crate feature `\"approx-0_5\"`.**");

src/doc/crate_feature_flags.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
//! - Implies std
2020
//!
2121
//! ## `approx`
22-
//! - Enables implementations of traits from version 0.4 of the [`approx`] crate.
23-
//!
24-
//! ## `approx-0_5`
25-
//! - Enables implementations of traits from version 0.5 of the [`approx`] crate.
22+
//! - Enables implementations of traits of the [`approx`] crate.
2623
//!
2724
//! ## `blas`
2825
//! - Enable transparent BLAS support for matrix multiplication.

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@
8181
//! - `std`: Rust standard library-using functionality (enabled by default)
8282
//! - `serde`: serialization support for serde 1.x
8383
//! - `rayon`: Parallel iterators, parallelized methods, the [`parallel`] module and [`par_azip!`].
84-
//! - `approx` Implementations of traits from version 0.4 of the [`approx`] crate.
85-
//! - `approx-0_5`: Implementations of traits from version 0.5 of the [`approx`] crate.
84+
//! - `approx` Implementations of traits from the [`approx`] crate.
8685
//! - `blas`: transparent BLAS support for matrix multiplication, needs configuration.
8786
//! - `matrixmultiply-threading`: Use threading from `matrixmultiply`.
8887
//!
@@ -1600,7 +1599,7 @@ pub mod linalg;
16001599
mod impl_ops;
16011600
pub use crate::impl_ops::ScalarOperand;
16021601

1603-
#[cfg(any(feature = "approx", feature = "approx-0_5"))]
1602+
#[cfg(feature = "approx")]
16041603
mod array_approx;
16051604

16061605
// Array view methods

xtest-blas/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88
test = false
99

1010
[dev-dependencies]
11-
approx = "0.4"
11+
approx = "0.5"
1212
defmac = "0.2"
1313
num-traits = "0.2"
1414
num-complex = { version = "0.4", default-features = false }

xtest-numeric/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publish = false
66
edition = "2018"
77

88
[dependencies]
9-
approx = "0.4"
9+
approx = "0.5"
1010
ndarray = { path = "..", features = ["approx"] }
1111
ndarray-rand = { path = "../ndarray-rand" }
1212
rand_distr = "0.4"

0 commit comments

Comments
 (0)