Cargo Features

[dependencies]
halo2curves = { version = "0.9.0", default-features = false, features = ["std", "asm", "bits", "bn256-table", "derive_serde", "print-trace"] }
default = bits

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

std asm? = rayon

Enables std of halo2derive, parallel of plonky2_maybe_rayon

Affects msm::msm_parallel, serde::SerdeObject.to_raw_bytes, serde::SerdeObject.read_raw_unchecked, serde::SerdeObject.read_raw, serde::SerdeObject.write_raw

asm = std

Enables asm of halo2derive

bits default

Enables bits of ff

bn256-table
derive_serde = hex, serde_arrays

Enables derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

print-trace dev

Enables print-trace of ark-std ^0.3

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.

hex derive_serde?
rayon std?
serde derive_serde?
serde_arrays derive_serde?