Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides writing and reviewing idiomatic Rust using Apollo GraphQL's best practices handbook: ownership, errors, performance, testing, docs.
78% 96%+17 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 18 of 23 without it.
3 of 3 safety checks passed
Not used yet
Be sure to have cargo clippy installed with your rust compiler, run cargo clippy -V in your terminal for a rust project and you should get something like this clippy 0.1.86 (05f9846f89 2025-03-31). If terminal fails to show a clippy version, please run the following code rustup update && rustup component add clippy.
Clippy documentation can be found here.
Rust compiler is a powerful tool that catches many mistakes. However, some more in-depth analysis require extra tools, that is where cargo clippy comes into play. Clippy checks for:
cargo clippyAdd the following to your daily workflow:
$ cargo clippy --all-targets --all-features --locked -- -D warnings
--all-targets: checks library, tests, benches and examples.--all-features: checks code with all features enabled; it does not auto-solve conflicting features.--locked: Requires Cargo.lock to be up-to-date, can be solved with $ cargo update.-D warnings: treats warnings as errorsPotential additional elements to add:
-- -W clippy::pedantic: lints which are rather strict or have occasional false positives.-- -W clippy::nursery: Optionally can be added to check for new lints that are still under development.Example at ApolloGraphQL
In the
Routerproject there is axtaskconfigured for linting that can be executed withcargo xtask lint.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.