Skip to content

Commit bd2ea1c

Browse files
committed
Use az exported from Rug
Since Rug 1.27.0, `az` is reexported. This means we no longer need to track it as a separate dependency.
1 parent 5bcd31f commit bd2ea1c

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

crates/libm-test/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ unstable-float = ["libm/unstable-float", "rug?/nightly-float"]
1212

1313
# Generate tests which are random inputs and the outputs are calculated with
1414
# musl libc.
15-
build-mpfr = ["dep:az", "dep:rug", "dep:gmp-mpfr-sys"]
15+
build-mpfr = ["dep:rug", "dep:gmp-mpfr-sys"]
1616

1717
# Build our own musl for testing and benchmarks
1818
build-musl = ["dep:musl-math-sys"]
@@ -28,7 +28,6 @@ short-benchmarks = []
2828

2929
[dependencies]
3030
anyhow = "1.0.95"
31-
az = { version = "1.2.1", optional = true }
3231
gmp-mpfr-sys = { version = "1.6.4", optional = true, default-features = false, features = ["mpfr"] }
3332
iai-callgrind = { version = "0.14.0", optional = true }
3433
indicatif = { version = "0.17.9", default-features = false }

crates/libm-test/src/mpfloat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
use std::cmp::Ordering;
77
use std::ffi::{c_int, c_long};
88

9-
use az::Az;
109
use gmp_mpfr_sys::mpfr::rnd_t;
1110
use rug::Assign;
1211
pub use rug::Float as MpFloat;
12+
use rug::az::{self, Az};
1313
use rug::float::Round;
1414
use rug::float::Round::Nearest;
1515
use rug::ops::{PowAssignRound, RemAssignRound};

crates/util/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ publish = false
77
[features]
88
default = ["build-musl", "build-mpfr", "unstable-float"]
99
build-musl = ["libm-test/build-musl", "dep:musl-math-sys"]
10-
build-mpfr = ["libm-test/build-mpfr", "dep:az", "dep:rug"]
10+
build-mpfr = ["libm-test/build-mpfr", "dep:rug"]
1111
unstable-float = ["libm/unstable-float", "libm-test/unstable-float", "rug?/nightly-float"]
1212

1313
[dependencies]
14-
az = { version = "1.2.1", optional = true }
1514
libm = { path = "../..", default-features = false }
1615
libm-macros = { path = "../libm-macros" }
1716
libm-test = { path = "../libm-test", default-features = false }

crates/util/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ use std::env;
88
use std::num::ParseIntError;
99
use std::str::FromStr;
1010

11-
#[cfg(feature = "build-mpfr")]
12-
use az::Az;
1311
use libm::support::{hf32, hf64};
1412
#[cfg(feature = "build-mpfr")]
1513
use libm_test::mpfloat::MpOp;
1614
use libm_test::{MathOp, TupleCall};
15+
#[cfg(feature = "build-mpfr")]
16+
use rug::az::{self, Az};
1717

1818
const USAGE: &str = "\
1919
usage:

0 commit comments

Comments
 (0)