Cargo Features
[dependencies]
ockam_transport_tcp = { version = "0.133.0", default-features = false, features = ["no_std", "std", "alloc", "aws-lc", "ring", "privileged_portals", "aya-log-common"] }
- default = privileged_portals, ring, std
-
These default features are set whenever
ockam_transport_tcp
is added without
somewhere in the dependency tree.default-features = false - no_std
-
Enables no_std of ockam_macros and ockam_transport_core
ockam_macros:
Feature: "no_std" enables functionality required for platforms without the standard library, requires nightly.
- std default = opentelemetry
-
Enables std of optional binary-layout, minicbor, ockam_macros, and ockam_transport_core
binary-layout:
TODO Once we're rust 1.60+ only, we should write "dep:thiserror" instead of "thiserror"
- alloc
- aws-lc
-
Enables aws-lc-rs of tokio-rustls
tokio-rustls:
Alias because Cargo features commonly use
-
- ring default
-
Enables ring of tokio-rustls
- privileged_portals default = aya, aya-log, binary-layout, caps, nix, ockam_ebpf
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.
- ockam_ebpf privileged_portals
- opentelemetry std
-
Enables opentelemetry ^0.26.0
- aya-log-common linux implicit feature
-
Enables aya-log-common
aya-log-common:
A logging library for eBPF programs
- aya linux privileged_portals
-
Enables aya =0.13.0
- aya-log linux privileged_portals
- binary-layout linux mac privileged_portals
- caps linux privileged_portals
- nix linux mac privileged_portals