Cargo Features

[dependencies]
snarkvm = { version = "4.4.0", default-features = false, features = ["full", "file", "package", "async", "cuda", "history", "parameters_no_std_out", "locktick", "noconfig", "rocks", "timer", "algorithms", "circuit", "console", "curves", "fields", "ledger", "metrics", "parameters", "synthesizer", "utilities", "wasm", "serial", "dev-print", "dev_skip_checks", "save_r1cs_hashes", "test_exports", "test_targets", "test_consensus_heights", "test", "test-helpers"] }
default full? = algorithms, circuit, console, file, ledger, package, parameters, synthesizer, utilities

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

full = curves, default, fields
file default package = console, synthesizer

Enables serde_json

Affects snarkvm::file

package default = algorithms, circuit, file, ledger

Enables dotenvy, ureq, filesystem of snarkvm-console

Affects snarkvm::package

async

Enables async of snarkvm-ledger and snarkvm-synthesizer

cuda

Enables cuda of snarkvm-algorithms

history

Enables history of snarkvm-synthesizer

parameters_no_std_out

Enables no_std_out of snarkvm-parameters

locktick

Enables locktick of optional snarkvm-algorithms, optional snarkvm-ledger, optional snarkvm-parameters, and optional snarkvm-synthesizer

noconfig
rocks

Enables rocks of snarkvm-ledger and snarkvm-synthesizer

timer

Enables timer of snarkvm-ledger

algorithms default package = snarkvm-algorithms
circuit default package = snarkvm-circuit
console default file = snarkvm-console
curves full? = snarkvm-curves
fields full? = snarkvm-fields
ledger default package = snarkvm-ledger
metrics = snarkvm-metrics

Enables metrics of snarkvm-ledger

parameters default = snarkvm-parameters
synthesizer default file = snarkvm-synthesizer
utilities default = snarkvm-utilities
wasm = snarkvm-wasm
serial

Enables serial of optional snarkvm-algorithms, optional snarkvm-console, optional snarkvm-curves, optional snarkvm-fields, optional snarkvm-ledger, and snarkvm-utilities

dev-print

Enables dev-print of snarkvm-algorithms, snarkvm-circuit, snarkvm-curves, snarkvm-fields, snarkvm-parameters, snarkvm-synthesizer, and snarkvm-utilities

dev_skip_checks

Enables dev_skip_checks of snarkvm-console and snarkvm-synthesizer

save_r1cs_hashes

Enables save_r1cs_hashes of snarkvm-circuit

test_exports

Enables test_exports of snarkvm-algorithms

test_targets

Enables test_targets of snarkvm-console

test_consensus_heights

Enables test_consensus_heights of snarkvm-console

test

Enables test of snarkvm-ledger

test-helpers

Enables test-helpers of snarkvm-ledger

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.

snarkvm-metrics metrics?
snarkvm-wasm wasm?
snarkvm-curves curves? dev-print?
snarkvm-fields dev-print? fields?
snarkvm-circuit circuit dev-print? save_r1cs_hashes?
snarkvm-parameters dev-print? parameters parameters_no_std_out?
snarkvm-utilities dev-print? serial? utilities
snarkvm-algorithms algorithms cuda? dev-print? test_exports?
snarkvm-console console dev_skip_checks? package test_consensus_heights? test_targets?
snarkvm-synthesizer async? dev-print? dev_skip_checks? history? rocks? synthesizer
snarkvm-ledger async? ledger metrics? rocks? test? test-helpers? timer?