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 wheneveri256
is added without
somewhere in the dependency tree.default-features = false - 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
andI384
types. - i512
-
Enable the
U512
andI512
types. - i1024
-
Enable the
U1024
andI1024
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