Cargo Features

arbitrary-int has no features set by default.

[dependencies]
arbitrary-int = { version = "1.2.7", features = ["std", "const_convert_and_const_trait_impl", "step_trait", "defmt", "serde", "num-traits"] }
std
const_convert_and_const_trait_impl

Supports const trait implementation through const_convert and const_trait_impl. Support for those was removed from more recent Rust nightlies, so this feature requires an older Rust compiler (2023-04-20 is broken, 2022-11-23 works. The exact day is somewhere inbetween)

step_trait

core::fmt::Step is currently unstable and is available on nightly behind a feature gate

defmt

Supports defmt

Enables defmt

serde

Supports serde

Enables serde

Features from optional dependencies

num-traits implicit feature

Enables num-traits

num-traits:

Numeric traits for generic mathematics