Cargo Features

dusk-core has no features set by default.

[dependencies]
dusk-core = { version = "1.1.0", features = ["parallel", "abi", "abi-debug", "abi-dlmalloc", "zk", "plonk", "groth16", "std", "serde"] }
parallel

Enables parallel of bls12_381-bls

abi abi-debug? abi-dlmalloc?

These are the features available for when one wishes to build contracts and interact with the ABI

Enables abi of piecrust-uplink ^0.17.3

abi-debug = abi

Enables debug of piecrust-uplink ^0.17.3

abi-dlmalloc = abi

Enables dlmalloc of piecrust-uplink ^0.17.3

zk = groth16, plonk

Enables all zero-knowledge proof system libraries supported

plonk zk? = dusk-plonk

Enables plonk of phoenix-circuits

Affects dusk-core::plonk

groth16 zk? = ark-bn254, ark-groth16, ark-relations, ark-serialize

Affects dusk-core::groth16

std

Enables std feature for dusk-plonk

Enables std of dusk-plonk

plonk dependencies

serde = hex

Enables serde of bls12_381-bls, phoenix-core, and piecrust-uplink ^0.17.3 and serde

serde support dependencies

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.

dusk-plonk plonk? std?
ark-groth16 groth16?

Enables ark-groth16 ^0.4

groth dependencies

ark-bn254 groth16?

Enables ark-bn254 ^0.4

ark-relations groth16?

Enables ark-relations ^0.4

ark-serialize groth16?

Enables ark-serialize ^0.4.2

hex serde?