Cargo Features

[dependencies]
ruint = { version = "1.12.3", default-features = false, features = ["std", "alloc", "ssz", "nightly", "generic_const_exprs", "alloy-rlp", "ark-ff", "ark-ff-04", "bn-rs", "fastrlp", "num-bigint", "num-traits", "parity-scale-codec", "primitive-types", "arbitrary", "proptest", "pyo3", "quickcheck", "rand", "rlp", "serde", "valuable", "zeroize", "bytemuck", "postgres", "sqlx"] }
default = std

The std feature is set by default whenever ruint is added without default-features = false somewhere in the dependency tree.

std default arbitrary? bn-rs? postgres? proptest? 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 num-bigint, optional num-traits, optional parity-scale-codec, optional primitive-types ^0.12, optional proptest, optional rand, optional rlp ^0.5, optional serde, optional valuable, and optional zeroize

bytes:

postgres

alloc alloy-rlp? fastrlp? num-bigint? num-traits? parity-scale-codec? rlp? serde? std

Enables alloc of optional proptest, 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

fastrlp = alloc

Enables fastrlp ^0.3

num-bigint = alloc

Enables num-bigint

num-traits = alloc

Enables num-traits

parity-scale-codec = alloc

Enables parity-scale-codec

primitive-types

Enables primitive-types ^0.12

arbitrary = std

Enables arbitrary

proptest = std

TODO: change to "alloc" on the next proptest release (>1.2.0)

Enables proptest

pyo3 = std

Enables pyo3 ^0.19

quickcheck = std

Enables quickcheck

rand

Enables rand

rlp = alloc

Enables rlp ^0.5

serde = alloc

TODO: try to avoid alloc in serde impls

Enables serde

valuable

Enables valuable

zeroize

Enables zeroize

bytemuck

Enables bytemuck

postgres = std

Enables bytes, postgres-types, and thiserror ^1.0

sqlx = std

Enables sqlx-core ^0.7 and thiserror ^1.0