Cargo Features
[dependencies]
snarkvm-algorithms = { version = "1.0.0", default-features = false, features = ["full", "wasm", "cuda", "profiler", "crypto_hash", "fft", "msm", "polycommit", "polycommit_wasm", "polycommit_full", "r1cs", "serial", "snark", "test", "crossbeam-channel", "lazy_static", "rust-gpu-tools"] }
- default = full
-
These default features are set whenever
snarkvm-algorithms
is added without
somewhere in the dependency tree.default-features = false Enables snarkvm-curves, snarkvm-fields, and snarkvm-utilities
- full default = crypto_hash, fft, msm, polycommit_full, r1cs, snark
- wasm = crypto_hash, fft, msm, polycommit_wasm, r1cs, snark, wasm-bindgen-futures
- cuda = snarkvm-algorithms-cuda
- profiler
- crypto_hash full polycommit? snark? wasm?
-
Affects
snarkvm-algorithms::crypto_hash
… - fft full polycommit? snark? wasm?
-
Affects
snarkvm-algorithms::fft
… - msm full polycommit? snark? wasm?
-
Affects
snarkvm-algorithms::msm
… - polycommit polycommit_full? polycommit_wasm? snark? = crypto_hash, fft, msm, rand_core
-
Affects
snarkvm-algorithms::polycommit
… - polycommit_wasm wasm? = polycommit
-
Enables wasm of snarkvm-parameters
- polycommit_full full = polycommit
-
Enables snarkvm-parameters
- r1cs full snark? wasm? = cfg-if, fxhash, indexmap
-
Affects
snarkvm-algorithms::r1cs
… - serial
-
Enables serial of snarkvm-curves, snarkvm-fields, and snarkvm-utilities
- snark full wasm? = crypto_hash, fft, msm, polycommit, r1cs
-
Affects
snarkvm-algorithms::snark
… - test
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.
- crossbeam-channel implicit feature
-
Enables crossbeam-channel
crossbeam-channel:
Multi-producer multi-consumer channels for message passing
- lazy_static implicit feature
-
Enables lazy_static
lazy_static:
A macro for declaring lazily evaluated statics in Rust
- rust-gpu-tools implicit feature
-
Enables rust-gpu-tools
rust-gpu-tools:
Rust OpenCL tools
- cfg-if r1cs?
- fxhash r1cs?
- indexmap r1cs?
- rand_core polycommit?
- snarkvm-algorithms-cuda cuda?
- wasm-bindgen-futures wasm?
- snarkvm-parameters polycommit_full? polycommit_wasm?