Cargo Features

[dependencies]
soroban-macros = { version = "0.1.11", default-features = false, features = ["oracle", "commitment-scheme", "storage", "mock-storage", "state-machine", "circuit-breaker", "utils"] }
default = circuit-breaker, commitment-scheme, oracle, state-machine, storage, utils

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

oracle default

Enables oracle of soroban-tools

Affects soroban-macros::oracle_subscriber, soroban-macros::oracle_broker

commitment-scheme default

Enables commitment-scheme of soroban-tools

Affects soroban-macros::commit, soroban-macros::reveal

storage default mock-storage?

Enables storage of soroban-tools

Affects soroban-macros::storage, soroban-macros::key_constraint

mock-storage = storage

Enables mock-storage of soroban-tools

state-machine default circuit-breaker

Enables state-machine of soroban-tools

Affects soroban-macros::state_machine, soroban-macros::transition_handler_derive

circuit-breaker default = state-machine

Enables circuit-breaker of soroban-tools

Affects soroban-macros::when_opened, soroban-macros::when_closed, soroban-macros::circuit_breaker_derive

utils default

Enables utils of soroban-tools

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.

soroban-tools circuit-breaker commitment-scheme mock-storage? oracle state-machine storage utils