Cargo Features

[dependencies]
strict_encoding = { version = "2.8.1", default-features = false, features = ["all", "derive", "float", "half", "serde", "getrandom", "rand"] }
default = derive

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

all = derive, float, serde
derive default all?
float all?

Enables apfloat of amplify

half

TODO: Remove this with major version update

serde all? = serde_crate

Enables serde of amplify

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

getrandom wasm32 implicit feature

Enables getrandom

getrandom:

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

rand wasm32 implicit feature

Enables rand

rand:

Random number generators and other randomness functionality