Cargo Features

[dependencies]
snarkvm = { version = "1.0.0", default-features = false, features = ["full", "cli", "aleo-cli", "async", "cuda", "history", "parameters_no_std_out", "noconfig", "rocks", "timer", "algorithms", "circuit", "console", "curves", "fields", "ledger", "metrics", "parameters", "synthesizer", "utilities", "wasm", "test", "test-helpers"] }
default = circuit, cli, console, ledger, parameters, synthesizer, utilities

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

full = algorithms, circuit, console, curves, fields, ledger, parameters, synthesizer, utilities
cli default = anyhow, clap, colored, dotenvy, rand, self_update, serde_json, thiserror, ureq

Affects snarkvm::cli

Required by the binary

aleo-cli

Enables aleo-cli of snarkvm-synthesizer

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

noconfig
rocks

Enables rocks of snarkvm-ledger and snarkvm-synthesizer

timer

Enables timer of snarkvm-ledger

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

Enables metrics of snarkvm-ledger

parameters default full? = snarkvm-parameters
synthesizer default full? = snarkvm-synthesizer
utilities default full? = snarkvm-utilities
wasm = snarkvm-wasm
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.

anyhow cli
clap cli
colored cli
dotenvy cli
rand cli
self_update cli

Enables self_update ^0.38

serde_json cli
snarkvm-circuit circuit
snarkvm-console console
snarkvm-curves curves?
snarkvm-fields fields?
snarkvm-metrics metrics?
snarkvm-utilities utilities
snarkvm-wasm wasm?
thiserror cli

Enables thiserror ^1.0

ureq cli
snarkvm-algorithms algorithms? cuda?
snarkvm-parameters parameters parameters_no_std_out?
snarkvm-synthesizer aleo-cli? async? history? rocks? synthesizer
snarkvm-ledger async? ledger metrics? rocks? test? test-helpers? timer?