Cargo Features

[dependencies]
bulletproofs = { version = "4.0.0", default-features = false, features = ["std", "avx2_backend", "yoloproofs", "nightly", "docs"] }
default = std

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

std default = rand, thiserror

Enables std of curve25519-dalek-ng, std and std_rng of rand

Affects bulletproofs::r1cs

avx2_backend

Enables avx2_backend of curve25519-dalek-ng

curve25519-dalek-ng:

DEPRECATED: this is now an alias for simd_backend and may be removed in some future release.

yoloproofs

Affects errors::R1CSError, util::VecPoly3, util::Poly6, bulletproofs::r1cs

nightly docs?

Enables nightly of clear_on_drop, alloc and nightly of curve25519-dalek-ng, nightly of subtle-ng

docs = nightly

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](https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html).

rand std
thiserror std