Cargo Features

[dependencies]
rgb-lib = { version = "0.3.0-alpha.2", default-features = false, features = ["all", "electrum", "esplora"] }
default = electrum

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

all = electrum, esplora
electrum default all? = bp-electrum, electrum-client

Enables electrum of bdk and rgb-runtime

Affects test::mock_asset_terms, test::mock_token_data, test::mock_input_unspents, test::mock_contract_details

esplora all?

Enables use-esplora-blocking of bdk, esplora_blocking of rgb-runtime

Affects test::mock_asset_terms, test::mock_token_data, test::mock_input_unspents, test::mock_contract_details

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.

electrum-client electrum
bp-electrum electrum