Skip to content

Commit 0557feb

Browse files
committed
Fix arbitrary feature
1 parent 5d514f9 commit 0557feb

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ std = [ "matrixmultiply", "alga/std", "alloc" ]
2525
# Since Cargo doesn't support multiplicitave features, use this to enable rand+std:
2626
rand_with_std = [ "rand/std", "std", "rand_distr" ]
2727
stdweb = [ "rand", "rand/stdweb" ]
28-
arbitrary = [ "quickcheck" ]
28+
arbitrary = [ "quickcheck", "rand" ]
2929
serde-serialize = [ "serde", "serde_derive", "num-complex/serde" ]
3030
abomonation-serialize = [ "abomonation" ]
3131
sparse = [ ]
32-
debug = [ "approx/num-complex", "rand/std" ]
32+
debug = [ "rand_with_std" ]
3333
alloc = [ ]
3434
io = [ "pest", "pest_derive" ]
3535
serde_derive = [] # dummy feature to avoid breakage
@@ -42,13 +42,13 @@ rand_distr = { version = "0.2", optional = true }
4242
num-traits = { version = "0.2", default-features = false }
4343
num-complex = { version = "0.2", default-features = false }
4444
num-rational = { version = "0.2", default-features = false }
45-
approx = { version = "0.3", default-features = false }
45+
approx = { version = "0.3", default-features = false, features = ["num-complex"] }
4646
alga = { version = "0.9", default-features = false }
4747
matrixmultiply = { version = "0.2", optional = true }
4848
serde = { version = "1.0", optional = true, features = ["derive"] }
4949
abomonation = { version = "0.7", optional = true }
5050
mint = { version = "0.5", optional = true }
51-
quickcheck = { version = "0.8", optional = true }
51+
quickcheck = { version = "0.9", optional = true }
5252
pest = { version = "2.0", optional = true }
5353
pest_derive = { version = "2.0", optional = true }
5454

ci/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ if [ -z "$NO_STD" ]; then
66
if [ -z "$LAPACK" ]; then
77
cargo build --verbose -p nalgebra --no-default-features --lib;
88
cargo build --verbose -p nalgebra;
9+
cargo build --verbose -p nalgebra --features "rand";
910
cargo build --verbose -p nalgebra --features "arbitrary";
1011
cargo build --verbose -p nalgebra --features "mint";
1112
cargo build --verbose -p nalgebra --features "alloc";
@@ -26,4 +27,4 @@ EOF
2627
rustup component add rust-src
2728
cargo install xargo
2829
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
29-
fi
30+
fi

ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ -z "$NO_STD" ]; then
77
cargo test --verbose --no-default-features --lib;
88
cargo test --verbose --no-default-features --features "std" --tests;
99
cargo test --verbose;
10-
cargo test --verbose "arbitrary";
10+
cargo test --verbose --features "arbitrary";
1111
cargo test --verbose --all-features;
1212
cd nalgebra-glm; cargo test --verbose;
1313
else

nalgebra-lapack/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ lapack-src = { version = "0.2", default-features = false }
3535

3636
[dev-dependencies]
3737
nalgebra = { version = "0.18", path = "..", features = [ "arbitrary" ] }
38-
quickcheck = "0.8"
38+
quickcheck = "0.9"
3939
approx = "0.3"
4040
rand = "0.7"

0 commit comments

Comments
 (0)