Cargo Features

[dependencies]
ff-uint = { version = "0.2.4", default-features = false, features = ["std", "borsh_support", "serde_support", "scale_support", "rand_support", "qc", "arbitrary"] }
default = borsh_support, scale_support, serde_support, std

These default features are set whenever ff-uint is added without default-features = false somewhere in the dependency tree.

std default

Enables alloc and std of serde and std of borsh ^0.9, byteorder, rand ^0.7.2, rand_core ^0.5, and seedbox

rand:

Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.

Affects ff-uint::maybestd

borsh_support default = borsh

Enables borsh_support of ff-uint_derive

Affects traits::Borsh

serde_support default = serde
scale_support default = parity-scale-codec, parity-scale-codec-derive, scale-info

Enables scale_support of ff-uint_derive

rand_support = rand, rand_core

Enables rand_support of ff-uint_derive

Affects traits::Field.random, traits::Uint.random

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

qc implicit feature

Enables quickcheck ^0.9.0

quickcheck:

Automatic property based testing with shrinking

rand rand_support? std

Enables rand ^0.7.2

rand_core rand_support? std

Enables rand_core ^0.5

borsh borsh_support std

Enables borsh ^0.9

serde serde_support std
parity-scale-codec scale_support

Enables parity-scale-codec ^2.3.1

parity-scale-codec-derive scale_support

Enables parity-scale-codec-derive ^2.3.1

scale-info scale_support

Enables scale-info ^1.0.0

arbitrary implicit feature

Enables arbitrary ^0.4

arbitrary:

The trait for generating structured data from unstructured data