Cargo Features
[dependencies]
ockam_transport_core = { version = "0.99.0", default-features = false, features = ["std", "no_std", "alloc"] }
- default = std
-
The
std
feature is set by default wheneverockam_transport_core
is added without
somewhere in the dependency tree.default-features = false - std default = url
-
Feature (enabled by default): "std" enables functionality expected to be available on a standard platform.
Enables std of minicbor, ockam_core, and serde
- no_std
-
Feature: "no_std" enables functionality required for platforms without the standard library.
Enables no_std of ockam_core
- alloc
-
Feature: "alloc" enables support for heap allocation on "no_std"
platforms, requires nightly.Enables alloc of minicbor and ockam_core
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.