Cargo Features
[dependencies]
alloy-primitives = { version = "1.4.1", 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", "rayon", "rkyv", "rlp", "serde", "borsh", "allocative", "postgres", "diesel", "sqlx", "arbitrary", "hex-compat"] }
- default = map, map-foldhash, std
-
These default features are set whenever
alloy-primitivesis added withoutsomewhere in the dependency tree.default-features = false - std default arbitrary? diesel? postgres? sqlx?
-
Enables std and thread_rng of optional rand, std of ruint, optional rustc-hash, optional serde, and optional sha3 and std of optional keccak-asm and optional proptest
keccak-asm:
keccak256
and std of bytes, const-hex, optional alloy-rlp, optional foldhash, optional indexmap, and optional k256
alloy-rlp:
rlp
- nightly
-
Enables nightly of optional foldhash, 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-09 of ruint, rand of optional rustc-hash
- rayon
-
Enables rayon, rayon of optional hashbrown and optional indexmap
Affects
map::rayon… - rkyv
- 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
- borsh
- allocative
-
Enables allocative
- postgres = std
-
Enables postgres-types, postgres of ruint
Affects
alloy-primitives::postgres… - diesel = std
-
Enables diesel, diesel of ruint
Affects
alloy-primitives::diesel… - sqlx = std
-
Enables sqlx of ruint and sqlx-core
sqlx support (optional, for DB integration)
Affects
alloy-primitives::sqlx… - arbitrary = std
-
Enables arbitrary, proptest and proptest-derive ^0.6, arbitrary and proptest of ruint, arbitrary of optional indexmap
- hex-compat
-
const-hexcompatibility feature forhex. Should not be needed most of the time.