Cargo Features

[dependencies]
rgb-core = { version = "0.12.0-beta.4", default-features = false, features = ["all", "bitcoin", "liquid", "prime", "serde", "rand"] }
default = bitcoin

The bitcoin feature is set by default whenever rgb-core is added without default-features = false somewhere in the dependency tree.

all = bitcoin, liquid, prime, serde
bitcoin default all? = bp-core

Affects seals::BITCOIN_OPRET, seals::BITCOIN_TAPRET, seals::bitcoin

liquid all?

Affects seals::LIQUID_OPRET, seals::LIQUID_TAPRET, seals::bitcoin

prime all?

Affects seals::PRIME_SEALS

serde all?

Enables serde, serde of amplify and commit_verify, serde of single_use_seals and ultrasonic

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.

bp-core bitcoin
rand wasm32 implicit feature

Enables rand

rand:

Random number generators and other randomness functionality