Cargo Features
[dependencies]
trivial_colours = { version = "0.3.0", default-features = false, features = ["use_winapi"] }
- default = use_winapi
-
The
use_winapi
feature is set by default whenevertrivial_colours
is added without
somewhere in the dependency tree.default-features = false - use_winapi default = kernel32-sys, lazy_static, winapi
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.
- kernel32-sys win use_winapi
- lazy_static win use_winapi
-
Enables lazy_static ^0.2
- winapi win use_winapi
-
Enables winapi ^0.2