Cargo Features
[dependencies]
alloy-primitives = { version = "0.8.12", default-features = false, features = ["std", "nightly", "asm-keccak", "native-keccak", "sha3-keccak", "tiny-keccak", "map", "map-hashbrown", "map-indexmap", "map-foldhash", "map-fxhash", "getrandom", "k256", "rand", "rlp", "serde", "allocative", "postgres", "arbitrary", "hex-compat"] }
- default = map, map-foldhash, std
-
These default features are set whenever
alloy-primitives
is added without
somewhere in the dependency tree.default-features = false - std default arbitrary? postgres?
-
Enables std of bytes, const-hex, optional alloy-rlp, optional foldhash, optional indexmap, and optional k256
alloy-rlp:
rlp
and std of ruint, optional keccak-asm, optional proptest, optional rand, optional rustc-hash, optional serde, and optional sha3
keccak-asm:
keccak256
- nightly
-
Enables nightly of optional hashbrown, const-hex, ruint, and optional rustc-hash
hashbrown:
map
- asm-keccak
-
Enables keccak-asm
- native-keccak
- sha3-keccak
-
Enables sha3
- tiny-keccak
- map default map-foldhash map-fxhash? map-hashbrown? map-indexmap?
-
Enables hashbrown
Affects
alloy-primitives::map
… - map-hashbrown = map
- map-indexmap = map
-
Enables indexmap
- map-foldhash default = map
-
Enables foldhash
- map-fxhash = map
-
Enables rustc-hash
- getrandom rand?
-
Enables getrandom
- k256
-
Enables k256
- rand = getrandom
-
Enables rand, rand of ruint and optional rustc-hash
- rlp
-
Enables alloy-rlp and alloy-rlp of ruint
ruint:
support
- serde
-
Enables serde, serde of bytes, const-hex, ruint, optional hashbrown, optional indexmap, and optional rand
- allocative
-
Enables allocative
- postgres = std
-
Enables postgres-types, postgres of ruint
Affects
alloy-primitives::postgres
… - arbitrary = std
-
Enables arbitrary and derive_arbitrary, proptest and proptest-derive, arbitrary and proptest of ruint, arbitrary of optional indexmap
- hex-compat
-
const-hex
compatibility feature forhex
. Should not be needed most of the time.