Cargo Features
ProductOSUtilities has no features set by default.
[dependencies]
product-os-utilities = { version = "0.0.19", features = ["all", "logging", "networking", "json", "text", "data", "xml", "yaml", "content", "logging_std", "networking_std", "networking_advanced", "files", "serde_xml"] }
- default all?
-
These default features are set whenever
product-os-utilities
is added without
somewhere in the dependency tree.default-features = false Enables product-os-security, std of no-std-compat
- all = content, data, default, files, json, logging, networking, text, xml, yaml
- logging all? = tracing
-
Enables alloc of tracing-subscriber
- networking all? = product-os-net
- json all? data? = regex
-
Enables alloc of chrono, serde_json, and serde_with
serde_json:
Provide integration for heap-allocated collections without depending on the rest of the Rust standard library. NOTE: Disabling both
std
andalloc
features is not supported yet. - text all? data?
- data all? = base64, chrono, json, text, tracing, xml, yaml
-
Requires std
Affects
data::DataDescribed
,data::DataTransformMethod
,data::DataTransformDirection
,data::DataMappingMode
,data::Data
,data::Mapping
,data::MappingKind
… - xml all? data? = xml-rs
- yaml all? data? = serde_yaml
- content all? = content_inspector, mime-sniffer
- logging_std
-
Enables fmt of tracing-subscriber
- networking_std = dns-lookup
-
Enables std of product-os-net
- networking_advanced = pnet
- files all? = parking_lot, walkdir
-
Enables std of no-std-compat
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.
- tracing data? logging?
- tracing-subscriber logging? logging_std?
- serde_json json?
- serde_yaml yaml?
- serde_xml implicit feature
-
Enables serde_xml
XML data representation
- serde_with json?
- regex json?
- chrono data? json?
- mime-sniffer content?
- content_inspector content?
- xml-rs xml?
- walkdir files?
- parking_lot files?
- dns-lookup networking_std?
- pnet networking_advanced?
-
Enables pnet ^0.34.0
- base64 data?
-
Enables base64 ^0.21.2
- product-os-net networking? networking_std?