Cargo Features
[dependencies]
lambdaworks-math = { version = "0.13.0", default-features = false, features = ["std", "alloc", "parallel", "lambdaworks-serde-binary", "lambdaworks-serde-string", "winter_compatibility", "instruments", "proptest", "cuda"] }
- default = parallel, std
-
These default features are set whenever
lambdaworks-mathis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc
-
Enables std of optional serde and optional serde_json
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
traits::IsPrimeField.to_hex… - alloc lambdaworks-serde-binary? lambdaworks-serde-string? std
-
Affects
cfft::cfft,cfft::icfft,polynomial::evaluate_cfft,polynomial::interpolate_cfft,twiddles::get_twiddles,bls12_381::pairing,traits::Compress.compress_g1_point,traits::Compress.compress_g2_point,cpu::ops,cpu::roots_of_unity,fft::polynomial,traits::IsSubFieldOf.to_subfield_vec,helpers::resize_to_next_power_of_two,lambdaworks-math::polynomial,msm::pippenger,traits::ByteConversion.to_bytes_be,traits::ByteConversion.to_bytes_le,traits::AsBytes… - parallel default
-
Enables rayon
Affects
pippenger::parallel_msm_with… - lambdaworks-serde-binary = alloc
-
Enables serde
- lambdaworks-serde-string = alloc
-
Enables serde and serde_json
- winter_compatibility = miden-core, winter-math
-
Affects
fields::winterfell… - instruments
- proptest
-
Enables proptest
- cuda
-
gpu
Enables cudarc ^0.9.7 and lambdaworks-gpu
Affects
gpu::cuda,gpu::cuda…
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.