Cargo Features

[dependencies]
amplify_num = { version = "0.5.3", default-features = false, features = ["std", "alloc", "all", "serde", "hex", "rand", "getrandom"] }
default = hex

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

std all? serde?
alloc
all = hex, serde, std
serde all? = hex, serde_crate, std
hex default all? serde?

Affects amplify_num::hex

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.

serde_crate serde?

Enables serde

This strange naming is a workaround for not being able to define required features for a dependency See https://github.com/rust-lang/api-guidelines/issues/180 for the explanation and references.

rand wasm32 implicit feature

Enables rand

rand:

Random number generators and other randomness functionality

getrandom wasm32 implicit feature

Enables getrandom

getrandom:

A small cross-platform library for retrieving random data from system source