Use all-stable feature in CI instead of --all-features

This commit is contained in:
kngwyu 2020-06-18 18:43:04 +09:00
parent 654ab4c819
commit 64408142f5
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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 "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > target/doc/index.html
# Get the lastest tag across all branches