From 64408142f5d92395e7f05e92a6eeb1e08521a093 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Thu, 18 Jun 2020 18:43:04 +0900 Subject: [PATCH] Use all-stable feature in CI instead of --all-features --- Cargo.toml | 3 +++ Makefile | 2 +- ci/travis/guide.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7fa6398f..35fa56cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,9 @@ trybuild = "1.0.23" [features] default = ["macros"] macros = ["ctor", "indoc", "inventory", "paste", "pyo3cls", "unindent"] +# For CI +all-stable = ["default", "num-bigint", "num-complex"] +# Optimizes PyObject to Vec conversion and so on. nightly = [] # this is no longer needed internally, but setuptools-rust assumes this feature diff --git a/Makefile b/Makefile index 897208f9..4a41a384 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ fmt: clippy: @touch src/lib.rs # Touching file to ensure that cargo clippy will re-check the project - cargo clippy --all-features --all-targets -- \ + cargo clippy --features=all-stable --all-targets -- \ $(addprefix -D ,${CLIPPY_LINTS_TO_DENY}) for example in examples/*; do (cd $$example/; cargo clippy) || exit 1; done diff --git a/ci/travis/guide.sh b/ci/travis/guide.sh index 898f0889..7a963074 100755 --- a/ci/travis/guide.sh +++ b/ci/travis/guide.sh @@ -21,7 +21,7 @@ mdbook build -d ../target/guide guide # Build the doc # This builds the book in target/doc -cargo doc --all-features --no-deps +cargo doc --features=all-stable --no-deps echo "" > target/doc/index.html # Get the lastest tag across all branches