-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The original text suggested using `--all-targets` for building. This replaces that with `--all-features` as the suggestion for both building and testing. Removing `--all-targets`, especially for tests, is good because doc tests don't get built/run with that parameter. Adds a clean/build everything script to make it easier to run most of what CI does. Adds this to the README as well.
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# update the index | ||
cargo update | ||
|
||
# default build | ||
cargo clean | ||
cargo test --workspace | ||
|
||
# all features | ||
cargo clean | ||
cargo test --workspace --all-features | ||
|
||
# make sure formatting is good | ||
cargo fmt -- --check | ||
|
||
# make sure we deal with lints | ||
cargo clippy --workspace --all-features --tests -- -Dwarnings | ||
|
||
# general **all** rustdoc | ||
cargo doc --document-private-items --all-features |