Cargo Features

[dependencies]
rln = { version = "0.9.0", default-features = false, features = ["stateless", "parallel", "fullmerkletree", "optimalmerkletree", "pmtree-ft", "document-features"] }
default = parallel, pmtree-ft

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

stateless

Affects ffi::new, ffi::new_with_params

parallel default = rayon

Enables parallel of ark-ec, ark-ff, ark-groth16, ark-poly, ark-serialize, ark-std, and zerokit_utils

fullmerkletree

Pre-allocated tree, fastest access

optimalmerkletree

Sparse storage, memory efficient

pmtree-ft default

Persistent storage, disk-based

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.

rayon parallel

Enables rayon

utilities

document-features implicit feature

Enables document-features

document-features:

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