Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Recommend --all-targets #531

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ When you push your branch to github and open up a pull request, it will automati
In order to catch linting and testing errors before pushing the code to github, be sure to run:

```shell
$ cargo clippy --workspace --all-features --examples --benches --tests --bins
$ cargo test --workspace --all-features --examples --benches --bins
$ cargo clippy --workspace --all-features --all-targets
$ cargo test --workspace --all-features --all-targets
```

Setting up a [git hook][git-hook] to run these commands can save you many headaches:

```shell
#!/bin/sh
cargo clippy --workspace --all-features --examples --benches --tests --bins && cargo test --workspace --all-features --examples --benches --bins
cargo clippy --workspace --all-features --all-targets && cargo test --workspace --all-features --all-targets
```

## <a name="dependecies"></a> Dependencies
Expand Down