Add a dependency with all default features disabled

cargo add

  • Add dependencies to a Rust project's `Cargo.toml` file.
    More information: <https://doc.rust-lang.org/cargo/commands/cargo-add.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cargo add {{dependency}} --no-default-features

click the source code to copy install cargo add on any operating system with command-not-found.com