Cargo Features

[dependencies]
dusk-plonk = { version = "0.19.0", default-features = false, features = ["std", "alloc", "debug", "rkyv-impl"] }
default = std

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

std default = alloc, rayon

Enables dusk-bls12_381, dusk-jubjub, hashbrown ^0.9, and itertools ^0.9, std of miniz_oxide, msgpacker, and rand_core

alloc std = miniz_oxide, msgpacker, sha2

Enables alloc of dusk-bls12_381

Affects circuit::Circuit.compress

debug = backtrace, dusk-cdf
rkyv-impl = bytecheck, rkyv

Enables rkyv-impl of dusk-bls12_381 and dusk-jubjub

Affects util::check_field

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

msgpacker alloc? std
miniz_oxide alloc? std
rayon std
sha2 alloc?
rkyv rkyv-impl?

Enables rkyv

Dusk related deps for WASMI serde

bytecheck rkyv-impl?

Enables bytecheck ^0.6

backtrace debug?
dusk-cdf debug?