Cargo Features
[dependencies]
linera-alloy-primitives = { version = "0.7.4", default-features = false, features = ["std", "native-keccak", "asm-keccak", "postgres", "getrandom", "rand", "rlp", "serde", "ssz", "k256", "allocative", "arbitrary", "hex-compat"] }
- default = std
-
The
std
feature is set by default wheneverlinera-alloy-primitives
is added without
somewhere in the dependency tree.default-features = false - std default arbitrary? postgres? ssz?
-
Enables std of optional alloy-rlp, bytes, const-hex, optional k256, optional keccak-asm, optional proptest, optional rand, ruint, and optional serde
alloy-rlp:
rlp
- tiny-keccak native-keccak
- asm-keccak
-
Enables keccak-asm
- postgres = std
-
Enables postgres-types, postgres of ruint
Affects
linera-alloy-primitives::postgres
… - getrandom rand?
-
Enables getrandom
- rand = getrandom
- rlp
-
Enables alloy-rlp and alloy-rlp of ruint
ruint:
support
- serde
-
Enables serde and serde of bytes, const-hex, and ruint
const-hex:
Serde support. Use with
#[serde(with = "const_hex")]
. - ssz = std
-
Enables ethereum_ssz ^0.5.3, ssz of ruint
- k256
-
Enables k256
Affects
linera-alloy-primitives::Signature
… - allocative
-
Enables allocative
- arbitrary = std
-
Enables arbitrary and derive_arbitrary, proptest and proptest-derive ^0.4, arbitrary and proptest of ruint and arbitrary of optional ethereum_ssz ^0.5.3
ssz
- hex-compat
-
const-hex
compatibility feature forhex
. Should not be needed most of the time.