Cargo Features

Sylvia has no features set by default.

[dependencies]
sylvia = { version = "1.3.1", features = ["mt", "stargate", "iterator", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0"] }
mt

Enables anyhow and cw-multi-test, mt of sylvia-derive

Affects sylvia::multitest

stargate

Enables stargate of cosmwasm-std and cw-multi-test

cosmwasm-std:

stargate enables stargate-dependent messages and queries, like raw protobuf messages as well as ibc-related functionality

iterator

Enables iterator of cosmwasm-std

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)

cosmwasm_1_1 cosmwasm_1_2?

Enables cosmwasm_1_1 of cosmwasm-std and cw-multi-test

cosmwasm-std:

This feature makes BankQuery::Supply available for the contract to call, but requires the host blockchain to run CosmWasm 1.1.0 or higher.

cosmwasm_1_2 cosmwasm_1_3? = cosmwasm_1_1

Enables cosmwasm_1_2 of cosmwasm-std, cw-multi-test, and sylvia-derive

cosmwasm-std:

This feature makes GovMsg::VoteWeighted available for the contract to call, but requires the host blockchain to run CosmWasm 1.2.0 or higher.

cosmwasm_1_3 cosmwasm_1_4? = cosmwasm_1_2

Enables cosmwasm_1_3 of cosmwasm-std and cw-multi-test

cosmwasm-std:

This feature makes BankQuery::DenomMetadata available for the contract to call, but requires the host blockchain to run CosmWasm 1.3.0 or higher.

cosmwasm_1_4 cosmwasm_2_0? = cosmwasm_1_3

Enables cosmwasm_1_4 of cosmwasm-std and cw-multi-test

cosmwasm-std:

Together with the iterator feature this enables additional imports for more efficient iteration over DB keys or values. It also makes DistributionQuery::{DelegationRewards, DelegationTotalRewards, DelegatorValidators} available for the contract to call. It requires the host blockchain to run CosmWasm 1.4.0 or higher.

cosmwasm_2_0 = cosmwasm_1_4

Enables cosmwasm_2_0 of cosmwasm-std and cw-multi-test

cosmwasm-std:

This enables functionality that is only available on 2.0 chains. It adds CosmosMsg::Any, replacing CosmosMsg::Stargate. It also adds QueryRequest::Grpc.