Skip to content

Commit

Permalink
Use all-stable feature in CI instead of --all-features
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Jun 18, 2020
1 parent 654ab4c commit 6440814
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ci/travis/guide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6440814

Please sign in to comment.