Cargo Features
[dependencies]
ruint = { version = "1.12.4", default-features = false, features = ["std", "alloc", "ssz", "nightly", "generic_const_exprs", "alloy-rlp", "ark-ff", "ark-ff-04", "bn-rs", "bytemuck", "arbitrary", "der", "diesel", "fastrlp", "fastrlp-04", "num-bigint", "num-integer", "num-traits", "parity-scale-codec", "postgres", "primitive-types", "pyo3", "quickcheck", "rand", "rlp", "proptest", "serde", "sqlx", "subtle", "valuable", "zeroize"] }
- default = std
-
The
std
feature is set by default wheneverruint
is added without
somewhere in the dependency tree.default-features = false - std default arbitrary? bn-rs? diesel? postgres? pyo3? quickcheck? sqlx? ssz? = alloc
-
Enables std of optional alloy-rlp, optional ark-ff ^0.3.0, and optional ark-ff ^0.4.0
alloy-rlp:
support
and std of optional bytes, optional fastrlp ^0.3, optional fastrlp, optional num-bigint, optional num-integer, optional num-traits, optional parity-scale-codec, optional primitive-types ^0.12, optional proptest =1.5, optional rand, optional rlp ^0.5, optional serde, optional valuable, and optional zeroize
bytes:
postgres
- alloc alloy-rlp? der? fastrlp? fastrlp-04? num-bigint? num-integer? num-traits? parity-scale-codec? proptest? rlp? serde? std
-
Enables alloc of optional proptest =1.5, optional rand, optional serde, optional valuable, and optional zeroize
rand:
Option: "alloc" enables support for Vec and Box when not using "std"
- ssz = std
-
Enables ethereum_ssz ^0.5.3
- nightly generic_const_exprs?
-
nightly-only features
- generic_const_exprs = nightly
-
Affects
ruint::nightly
… - alloy-rlp = alloc
-
support
Enables alloy-rlp
- ark-ff
-
Enables ark-ff ^0.3.0
- ark-ff-04
-
Enables ark-ff ^0.4.0
- bn-rs = std
-
Enables bn-rs
- bytemuck
-
Enables bytemuck
- arbitrary = std
-
Enables arbitrary
- der = alloc
-
TODO: also have alloc free der impls.
Enables der
- diesel = std
- fastrlp = alloc
-
Enables fastrlp ^0.3
- fastrlp-04 = alloc
-
Enables fastrlp
- num-bigint = alloc
-
Enables num-bigint
- num-integer = alloc, num-traits
-
Enables num-integer
- num-traits num-integer? = alloc
-
Enables num-traits
- parity-scale-codec = alloc
-
Enables parity-scale-codec
- postgres = std
-
Enables bytes, postgres-types, and thiserror
- primitive-types
-
Enables primitive-types ^0.12
- pyo3 = std
-
Enables pyo3 ^0.19
- quickcheck = std
-
Enables quickcheck
- rand
-
Enables rand
- rlp = alloc
-
Enables rlp ^0.5
- proptest = alloc
-
Enables proptest =1.5
- serde = alloc
-
TODO: try to avoid alloc in serde impls
Enables serde
- sqlx = std
- subtle
-
Enables subtle
- valuable
-
Enables valuable
- zeroize
-
Enables zeroize