Cargo Features

[dependencies]
ibc-proto = { version = "0.46.0", default-features = false, features = ["std", "serde", "client", "json-schema", "server", "parity-scale-codec", "borsh", "proto-descriptor"] }
default = client, std

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

std default client json-schema? server?

Enables std of base64, bytes, flex-error, ics23, informalsystems-pbjson, prost, and subtle-encoding

Affects google::protobuf.TimestampOutOfSystemRangeError

serde json-schema? = informalsystems-pbjson

Enables serde, serde of ics23

client default = std

Enables codegen, prost and transport of tonic

Affects cosmos.auth.v1beta1::msg_client, cosmos.auth.v1beta1::query_client, cosmos.bank.v1beta1::msg_client, cosmos.bank.v1beta1::query_client, cosmos.base.node.v1beta1::service_client, cosmos.base.reflection.v1beta1::reflection_service_client, cosmos.base.reflection.v2alpha1::reflection_service_client, cosmos.base.tendermint.v1beta1::service_client, cosmos.gov.v1::msg_client, cosmos.gov.v1::query_client, cosmos.gov.v1beta1::msg_client, cosmos.gov.v1beta1::query_client, cosmos.staking.v1beta1::msg_client, cosmos.staking.v1beta1::query_client, cosmos.tx.v1beta1::service_client, cosmos.upgrade.v1beta1::msg_client, cosmos.upgrade.v1beta1::query_client

json-schema = serde, std

Enables schemars

server = std

Enables codegen, prost and transport of tonic

Affects cosmos.auth.v1beta1::msg_server, cosmos.auth.v1beta1::query_server, cosmos.bank.v1beta1::msg_server, cosmos.bank.v1beta1::query_server, cosmos.base.node.v1beta1::service_server, cosmos.base.reflection.v1beta1::reflection_service_server, cosmos.base.reflection.v2alpha1::reflection_service_server, cosmos.base.tendermint.v1beta1::service_server, cosmos.gov.v1::msg_server, cosmos.gov.v1::query_server, cosmos.gov.v1beta1::msg_server, cosmos.gov.v1beta1::query_server, cosmos.staking.v1beta1::msg_server, cosmos.staking.v1beta1::query_server, cosmos.tx.v1beta1::service_server, cosmos.upgrade.v1beta1::msg_server, cosmos.upgrade.v1beta1::query_server

parity-scale-codec

Enables parity-scale-codec and scale-info

parity-scale-codec:

Optional: enabled by the parity-scale-codec feature

borsh

Enables borsh

Optional: enabled by the borsh feature For borsh encode or decode, needs to track anchor-lang and near-sdk-rs borsh version

proto-descriptor

Affects ibc-proto::FILE_DESCRIPTOR_SET

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.

informalsystems-pbjson serde? std