Cargo Features

[dependencies]
substrate-stellar-sdk = { version = "0.3.0", default-features = false, features = ["std", "all-types", "offchain"] }
default = offchain, std

These default features are set whenever substrate-stellar-sdk is added without default-features = false somewhere in the dependency tree.

std default

Enables std of sp-std ^8.0.0

Substrate

and std of hex, num-rational, scale-info, serde, serde_json, sp-io ^23.0.0, and sp-runtime ^24.0.0

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

all-types

Affects impls::error, impls::generalized_transaction_set, impls::transaction_set, impls::transaction_set_type, types::Value, types::ScpBallot, types::ScpStatementType, types::ScpNomination, types::ScpStatementPrepare, types::ScpStatementConfirm, types::ScpStatementExternalize, types::ScpStatement, types::ScpEnvelope, types::ScpQuorumSet, types::ContractCostType, types::ScEnvMetaKind, types::ScMetaV0, types::ScMetaKind, types::ScSpecType, types::ScSpecTypeOption

offchain default = serde, serde_json, sp-io, sp-runtime

Affects substrate-stellar-sdk::horizon

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_json offchain std
serde offchain std
sp-runtime offchain std

Enables sp-runtime ^24.0.0

sp-io offchain std

Enables sp-io ^23.0.0