Cargo Features

[dependencies]
i256 = { version = "0.2.2", default-features = false, features = ["stdint", "i384", "i512", "i1024", "lint", "noasm", "limb32", "std", "num-traits"] }
default = stdint

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

stdint default

enable the standard, fixed-width integer APIs for scalar operations.

Affects div::from_u128, div::scalar_u128, div::u128_scalar

i384

Enable the U384 and I384 types.

i512

Enable the U512 and I512 types.

i1024

Enable the U1024 and I1024 types.

lint

Internal only features.
Enable the lint checks.

noasm

For benchmarking our no ASM routines.

limb32

For forcing 32-bit limbs for testing.

Affects types::ULimb, types::ILimb, types::UWide, types::IWide

std

Deprecated feature; does nothing.

Features from optional dependencies

num-traits implicit feature

Enables num-traits

num-traits:

Numeric traits for generic mathematics