Cargo Features

[dependencies]
halo2-base = { version = "0.4.1", default-features = false, features = ["asm", "halo2-axiom", "display", "profile", "test-utils", "plotters", "jemallocator", "mimalloc"] }
default = display, halo2-axiom, test-utils

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

asm

Enables asm of optional halo2-axiom

Use Axiom's custom halo2 monorepo for faster proving when feature = "halo2-axiom" is on

halo2-axiom default = halo2_proofs_axiom

Affects halo2-base::SKIP_FIRST_PASS, halo2::Halo2AssignedCell, utils::BigPrimeField

display default
profile

Enables profile of optional halo2-axiom

test-utils default = ark-std

Enables rand

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-std test-utils

Enables ark-std ^0.3.0

halo2_proofs_axiom halo2-axiom

Enables halo2-axiom

plotters implicit feature

Enables plotters

plotting circuit layout

jemallocator not msvc implicit feature

Enables jemallocator

jemallocator:

A Rust allocator backed by jemalloc

mimalloc not msvc implicit feature

Enables mimalloc

mimalloc:

Performance and security oriented drop-in allocator