From 5898903ba43a64e6e21e2f57e94c125f8263d3fe Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 21 Nov 2022 11:25:44 +0100 Subject: [PATCH 1/2] chore(docs): Recommend --all-targets Document using --all-targets instead of the --tests --bins etc. This is more comprehensive and shorter than trying to list all the targets by hand. Closes #514 --- DEVELOPERS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 6b69022345..f9a9d21687 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -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 --akk-targets && cargo test --workspace --all-features --all-targets ``` ## Dependencies From b8ec5bf1d7abd7223c76b0d9e201e79e21e64b0b Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 21 Nov 2022 12:02:09 +0100 Subject: [PATCH 2/2] typo --- DEVELOPERS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index f9a9d21687..f70b34ba54 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -89,7 +89,7 @@ Setting up a [git hook][git-hook] to run these commands can save you many headac ```shell #!/bin/sh -cargo clippy --workspace --all-features --akk-targets && cargo test --workspace --all-features --all-targets +cargo clippy --workspace --all-features --all-targets && cargo test --workspace --all-features --all-targets ``` ## Dependencies