Cargo Features
[dependencies]
codespan-reporting = { version = "0.12.0", default-features = false, features = ["std", "termcolor", "serialization", "ascii-only"] }
- default = std, termcolor
-
These default features are set whenever
codespan-reporting
is added without
somewhere in the dependency tree.default-features = false - std default termcolor
-
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - termcolor default = std
-
Enables termcolor
Affects
config::Config.styles
,config::Styles
… - serialization = serde
- ascii-only
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.