Cargo Features

[dependencies]
xpx-chain-crypto = { version = "1.0.8", default-features = false, features = ["std", "alloc", "nightly", "u64_backend", "u32_backend", "avx2_backend", "serde"] }
default = std, u64_backend

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

std default

Enables std of curve25519-dalek ^3.1.0, rand, and sha3 ^0.9

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

Affects ed25519::verify_batch

alloc

Enables alloc of curve25519-dalek ^3.1.0

Affects ed25519::verify_batch

nightly

Enables nightly of curve25519-dalek ^3.1.0 and rand

rand:

some additions requiring nightly Rust

u64_backend default

Enables u64_backend of curve25519-dalek ^3.1.0

u32_backend

Enables u32_backend of curve25519-dalek ^3.1.0

avx2_backend

Enables avx2_backend of curve25519-dalek ^3.1.0

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.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

rand nightly? std