Cargo Features

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

alloy-rlp:

support

and std of optional bytes, optional fastrlp, optional num-bigint, optional num-traits, optional parity-scale-codec, optional primitive-types, optional proptest, optional rand, optional rlp, optional serde, optional valuable, and optional zeroize

bytes:

postgres

alloc alloy-rlp? fastrlp? num-bigint? 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

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

bn-rs = std

Enables bn-rs

fastrlp = alloc

Enables fastrlp

num-bigint = alloc

Enables num-bigint

parity-scale-codec = alloc

Enables parity-scale-codec

primitive-types

Enables primitive-types

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

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

sqlx = std

Enables sqlx-core and thiserror

Features from optional dependencies

num-traits implicit feature

Enables num-traits

num-traits:

Numeric traits for generic mathematics