Skip to content

Commit

Permalink
chore: enable std feature when mocks is enabled
Browse files Browse the repository at this point in the history
`mocks` feature results in use of `Timestamp::now` which is only
defined when `std` feature is enabled.  Make `std` implied by `mocks`.
  • Loading branch information
mina86 committed Oct 18, 2023
1 parent 476937b commit a08f777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ibc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ default = ["std"]
std = [
"ibc-proto/std",
"ics23/std",
"serde/std",
"serde/std",
"tracing/std",
"prost/std",
"bytes/std",
Expand All @@ -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.
Expand Down

0 comments on commit a08f777

Please sign in to comment.