Cargo Features

[dependencies]
bulletproofs = { version = "5.0.0", default-features = false, features = ["std", "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 and std_rng of rand

Affects bulletproofs::r1cs

yoloproofs

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

nightly docs?

Enables nightly of clear_on_drop and subtle

subtle:

DEPRECATED: As of 2.4.1, this feature does nothing.

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.

rand std
thiserror std

Enables thiserror ^1