Cargo Features

[dependencies]
ibc-types-timestamp = { version = "0.13.0", default-features = false, features = ["std", "with_serde", "upgrade_client", "mocks", "mocks-no-std", "borsh", "parity-scale-codec", "scale-info"] }
default = std

The std feature is set by default whenever ibc-types-timestamp is added without default-features = false somewhere in the dependency tree.

std default

Enables clock and std of tendermint ^0.34.0 and std of bytes, displaydoc, num-traits, prost, serde, serde_json, and subtle-encoding

serde:

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

with_serde = serde, serde_derive, serde_json
upgrade_client

This feature guards the unfinished implementation of the UpgradeClient handler.

mocks = cfg-if, parking_lot, tendermint-testgen

This feature grants access to development-time mocking libraries, such as MockContext or MockHeader. Depends on the testgen suite for generating Tendermint light blocks.

Enables clock of tendermint ^0.34.0

mocks-no-std = cfg-if

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.

borsh implicit feature

Enables borsh ^0.10.0

borsh:

Binary Object Representation Serializer for Hashing

cfg-if mocks? mocks-no-std?
parity-scale-codec implicit feature

Enables parity-scale-codec

parity-scale-codec:

SCALE - Simple Concatenating Aggregated Little Endians

parking_lot mocks?
scale-info implicit feature

Enables scale-info

scale-info:

Info about SCALE encodable Rust types

serde std with_serde?
serde_derive with_serde?
serde_json std with_serde?
tendermint-testgen mocks?

Enables tendermint-testgen ^0.34.0