Cargo Features

[dependencies]
substrate-stellar-sdk = { version = "0.2.4", 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 hex, num-rational, serde, serde_json, sp-io ^6.0.0, sp-runtime ^6.0.0, and sp-std ^4.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 types::Value, types::ScpBallot, types::ScpStatementType, types::ScpNomination, types::ScpStatementPrepare, types::ScpStatementConfirm, types::ScpStatementExternalize, types::ScpStatement, types::ScpEnvelope, types::ScpQuorumSet, types::ThresholdIndices, types::AccountFlags, types::OfferEntryFlags, types::ClaimableBalanceFlags, types::UpgradeType, types::StellarValueType

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 ^6.0.0

sp-io offchain std

Enables sp-io ^6.0.0