Cargo Features

[dependencies]
rln = { version = "0.6.1", default-features = false, features = ["parallel", "wasm", "fullmerkletree", "arkzkey", "stateless", "pmtree-ft", "document-features"] }
default fullmerkletree? = parallel, pmtree-ft

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

Enables sys-default of wasmer =2.3.0

WASM

parallel default

Enables ark-groth16 =0.4.0, parallel of ark-std =0.4.0 and zerokit_utils and parallel of ark-ec =0.4.1 and ark-ff =0.4.1

ark-ec:

ZKP Generation

wasm

Enables js and std of wasmer =2.3.0

fullmerkletree = default
arkzkey = ark-zkey

Affects circuit::ARKZKEY_BYTES, circuit::ARKZKEY_BYTES_UNCOMPR, circuit::read_arkzkey_from_bytes_uncompressed, circuit::read_arkzkey_from_bytes_compressed

stateless

Affects ffi::new, ffi::new_with_params

pmtree-ft default

Note: pmtree feature is still experimental

Enables pmtree-ft of zerokit_utils

Affects rln::pm_tree_adapter

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.

ark-zkey arkzkey?
document-features implicit feature

Enables document-features =0.2.10

document-features:

Extract documentation for the feature flags from comments in Cargo.toml