Enable only the features you want to test.
Section: Feature troubleshooting snippets
Build with selected features
bash
bash
cargo build --features json,deriveExplanation
Helpful for reproducing a problem that appears only under certain feature combinations.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Feature troubleshooting snippets
Build without default features
Check whether defaults are causing the issue.
Build with all features
Catch hidden compilation issues across optional code paths.
Inspect activated features
Show features involved in dependency resolution.
Find duplicate crate versions
List repeated dependencies that may bloat builds.