Cargo Features

[dependencies]
ockam_credential = { version = "0.2.0", default-features = false, features = ["no_std", "std", "alloc", "heapless"] }
default = std

The std feature is set by default whenever ockam_credential is added without default-features = false somewhere in the dependency tree.

no_std

Enables no_std of ockam_core ^0.3.0

ockam_core:

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

std default = alloc, bbs, ff, pairing-plus

Enables std of digest ^0.8, ockam_core ^0.3.0, and sha2 ^0.8

ockam_core:

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

alloc std

Enables alloc of ockam_core ^0.3.0 and serde

ockam_core:

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

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.

bbs std
digest std

Enables digest ^0.8

ff std

Enables ff-zeroize

heapless implicit feature

Enables heapless ^0.6

heapless:

static friendly data structures that don't require dynamic memory allocation

pairing-plus std
sha2 std

Enables sha2 ^0.8