Cargo Features

[dependencies]
saa-common = { version = "0.24.2", default-features = false, features = ["std", "solana", "cosmwasm", "substrate", "native", "iterator", "secretwasm", "injective", "wasm", "replay", "storage"] }
default = iterator, replay, std

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

std default

Enables std of optional ink, saa-schema, optional parity-scale-codec, and optional scale-info

Affects errors::AuthError

solana

Enables borsh, solana of saa-schema

cosmwasm injective? = wasm

Enables cosmwasm-std ^1.5.8 and cw-storage-plus ^1.2.0

Affects saa-common::cosmwasm

substrate

Enables ink, parity-scale-codec and scale-info, substrate of saa-schema

Affects errors::AuthError, saa-common::substrate, saa-common::Verifiable.verify_ink

native

Enables cosmwasm-crypto

Affects saa-common::crypto, saa-common::Verifiable.verify

iterator default = storage

Enables iterator of optional cosmwasm-std ^1.5.8, optional cw-storage-plus ^1.2.0, optional secret-cosmwasm-std, and optional secret-cosmwasm-storage

cosmwasm-std:

iterator allows us to iterate over all DB items in a given range optional as some merkle stores (like tries) don't support this given Ethereum 1.0, 2.0, Substrate, and other major projects use Tries we keep this optional, to allow possible future integration (or different Cosmos Backends)

secretwasm = wasm

Enables secret-toolkit, secret-cosmwasm-std, and secret-cosmwasm-storage

Affects saa-common::cosmwasm

injective = cosmwasm
wasm cosmwasm? secretwasm?

Enables schemars, cosmwasm of saa-schema

Affects saa-common::Verifiable.verify_cosmwasm, utils::prefix_from_address, utils::pubkey_to_canonical

replay default = storage

Affects cosmwasm::ACCOUNT_NUMBER, secretwasm::ACCOUNT_NUMBER

storage iterator replay

Affects saa-common::storage