From a08f7771ab4af9b2c72f392f55a4223164eca3cb Mon Sep 17 00:00:00 2001 From: Michal Nazarewicz Date: Wed, 18 Oct 2023 18:23:45 +0200 Subject: [PATCH] chore: enable `std` feature when `mocks` is enabled `mocks` feature results in use of `Timestamp::now` which is only defined when `std` feature is enabled. Make `std` implied by `mocks`. --- crates/ibc/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ibc/Cargo.toml b/crates/ibc/Cargo.toml index afbba55618..70d00840c8 100644 --- a/crates/ibc/Cargo.toml +++ b/crates/ibc/Cargo.toml @@ -21,7 +21,7 @@ default = ["std"] std = [ "ibc-proto/std", "ics23/std", - "serde/std", + "serde/std", "tracing/std", "prost/std", "bytes/std", @@ -46,7 +46,7 @@ schema = ["dep:schemars", "serde", "std"] # This feature grants access to development-time mocking libraries, such as `MockContext` or `MockHeader`. # Depends on the `testgen` suite for generating Tendermint light blocks. -mocks = ["tendermint-testgen", "tendermint/clock", "parking_lot", "typed-builder"] +mocks = ["tendermint-testgen", "tendermint/clock", "parking_lot", "typed-builder", "std"] [dependencies] # Proto definitions for all IBC-related interfaces, e.g., connections or channels.