Check whether defaults are causing the issue.

Section: Feature troubleshooting snippets

Build without default features

bash
bash
cargo build --no-default-features
Explanation

Useful for debugging crates that compile only under a smaller feature set.

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 with selected features
Enable only the features you want to test.
OpenIn sheetbashsame section
Build with all features
Catch hidden compilation issues across optional code paths.
OpenIn sheetbashsame section
Inspect activated features
Show features involved in dependency resolution.
OpenIn sheetbash2 tag match
Print the dependency tree
Show the package dependency graph.
OpenIn sheetbash1 tag match
Show reverse dependencies
Find what depends on a given crate.
OpenIn sheetbash1 tag match
Find duplicate crate versions
List repeated dependencies that may bloat builds.
OpenIn sheetbash1 tag match