Cargo Features

[dependencies]
hacl = { version = "0.0.3-pre.1", default-features = false, features = ["random", "serialization", "hazmat"] }
default = random

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

random default = rand, rand_core

Affects ecdh::key_gen, ed25519::key_gen, hacl::rand_util, p256::random_nonce, p256::key_gen, signature::key_gen, x25519::key_gen

serialization = serde, serde_json
hazmat

This feature exposes raw, but safe HACL APIs for use in other libraries. Use with care.

Affects hacl::hazmat

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.

rand random
rand_core random
serde_json serialization?
serde serialization?