Cargo Features

[dependencies]
sunscreen_bulletproofs = { version = "0.8.1", default-features = false, features = ["std", "u64_backend", "yoloproofs", "nightly", "docs"] }
default = std, u64_backend

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

std default = rand, thiserror

Enables alloc of sunscreen_curve25519, std and std_rng of rand

Affects sunscreen_bulletproofs::r1cs

u64_backend default

Enables u64_backend of sunscreen_curve25519

sunscreen_curve25519:

The u64 backend uses u64s with u128 products.

yoloproofs

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

nightly docs?

Enables nightly of clear_on_drop, alloc of sunscreen_curve25519, 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.

rand std
thiserror std