From 31cb9eb574ee07d1b34fea1a32e6259cfe1db442 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Fri, 3 May 2019 16:31:14 +0200 Subject: [PATCH] Remove `rand` from default features --- .travis.yml | 7 ++++--- Cargo.toml | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a793d5..dfac6df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,10 @@ matrix: - rust: nightly script: - - cargo build --no-default-features --features "$CARGO_FEATURES" - - cargo test --no-default-features --features "$CARGO_FEATURES" + - cargo build --features "$CARGO_FEATURES" + - cargo test --features "$CARGO_FEATURES" - | if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then - cargo bench --features "$CARGO_FEATURES" + # The benchmark always needs the 'rand' feature + cargo bench --features "$CARGO_FEATURES rand" fi diff --git a/Cargo.toml b/Cargo.toml index 32df254..cb9662d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ keywords = ["gamedev", "math", "matrix", "vector", "quaternion"] name = "cgmath" [features] -default = ["rand"] unstable = [] swizzle = []