cargo

Rust Default features

A package can choose which features are normally enabled. Use --no-default-features to test a smaller configuration of the selected package; dependencies may still enable their own defaults. Example format: shell; run from a disposable copy of v15/fixtures/projects/feature-app. Expected result (not executed): Plain Why: The friendly cfg branch is disabled. Common mistake: Assuming this disables every default feature of all transitive dependencies.

Formal Syntax & Structure

rust syntaxrust
cargo run --no-default-features

Working Example

Example Snippetrust
cargo run --offline --quiet --no-default-features
Rust Reference