Cargo Features

[dependencies]
akd_client = { version = "0.8.9", default-features = false, features = ["nostd", "sha512", "sha256", "sha512_256", "sha3_256", "sha3_512", "blake3", "wasm", "protobuf_serialization", "wee_alloc"] }
nostd

Disable all STD for the crate

Enables nostd of akd_core ^0.8.9

Required dependencies

sha512

Supported hash functions

Enables sha512 of akd_core ^0.8.9

sha256

Enables sha256 of akd_core ^0.8.9

sha512_256

Enables sha512_256 of akd_core ^0.8.9

sha3_256

Enables sha3_256 of akd_core ^0.8.9

sha3_512

Enables sha3_512 of akd_core ^0.8.9

blake3 default

Enables blake3 of akd_core ^0.8.9

wasm = protobuf, wasm-bindgen

Enable web assembly compilation of the AKD client crate

Enables protobuf of akd_core ^0.8.9

Affects akd_client::wasm

protobuf_serialization = protobuf

Enables protobuf of akd_core ^0.8.9

default = blake3

Default feature mix (blake3)

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.

protobuf protobuf_serialization? wasm?

Enables protobuf

Optional dependencies

wasm-bindgen wasm?
wee_alloc implicit feature

Enables wee_alloc

wee_alloc is a tiny allocator for wasm that is only ~1K in code size compared to the default allocator's ~10K. It is slower than the default allocator, however.

Unfortunately, wee_alloc requires nightly Rust when targeting wasm for now.