Cargo Features
[dependencies]
myutil = { version = "3.0.1", default-features = false, features = ["full", "ansi", "compact", "uau", "cmd", "ssh"] }
- default = ansi
-
The
ansi
feature is set by default whenevermyutil
is added without
somewhere in the dependency tree.default-features = false - full = cmd, ssh, uau
- ansi default
- compact
- uau full? = nix, rand
-
Affects
myutil::uau
… - cmd full?
-
Affects
myutil::cmd
… - ssh full? = ssh2
-
Affects
myutil::ssh
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.