Cargo Features

[dependencies]
ockam_vault = { version = "0.106.0", default-features = false, features = ["OCKAM_XX_25519_AES256_GCM_SHA256", "OCKAM_XX_25519_ChaChaPolyBLAKE2s", "std", "no_std", "alloc", "storage", "thiserror"] }
default = std, storage

These default features are set whenever ockam_vault is added without default-features = false somewhere in the dependency tree.

disable_default_noise_protocol OCKAM_XX_25519_AES256_GCM_SHA256
OCKAM_XX_25519_AES128_GCM_SHA256 OCKAM_XX_25519_ChaChaPolyBLAKE2s
std default = alloc, storage

Feature (enabled by default): "std" enables functionality expected to be available on a standard platform.

Enables alloc and std of aes-gcm, std and std_rng of rand, std of tracing and std of ed25519-dalek, ockam_macros, ockam_node, and p256

p256:

ECDSA providers:

no_std = rand_pcg

Feature: "no_std" enables functionality required for platforms without the standard library, requires nightly.

Enables serde, heapless and stream of aes-gcm, no_std of ockam_node

alloc std

Feature: "alloc" enables support for heap allocation (implied by feature = "std")

Enables alloc, ecdsa and pem of p256, alloc of x25519-dalek, alloc of aes-gcm, ed25519-dalek, and ockam_node

storage default std = sqlx

Enables storage of ockam_node

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_node alloc? no_std? std storage
rand_pcg no_std?
sqlx storage
thiserror implicit feature

Enables thiserror

thiserror:

derive(Error)