Cargo Features

[dependencies]
ark-bn254 = { version = "0.5.0", default-features = false, features = ["std", "r1cs", "curve", "scalar_field"] }
default = curve

The curve feature is set by default whenever ark-bn254 is added without default-features = false somewhere in the dependency tree.

std

Enables std of ark-ec, ark-ff, optional ark-r1cs-std, and ark-std

r1cs = ark-r1cs-std

Affects ark-bn254::constraints

curve default = scalar_field

Affects fields::fq, fields::fq2, fields::fq6, fields::fq12

scalar_field curve

Affects fields::fr

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-r1cs-std r1cs?