Skip to content

Commit

Permalink
imp: re-export Timestamp & Duration from `ibc_proto::google::prot…
Browse files Browse the repository at this point in the history
…obuf` (#1054)

* imp: re-export all the proto type under ibc_proto::google::protobuf

* fix: re-export a few necessary types

---------

Signed-off-by: Farhad Shabani <[email protected]>
  • Loading branch information
Farhad-Shabani authored Jan 24, 2024
1 parent a9538e8 commit 3afd06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ibc-primitives] Re-exports additional google proto types, like `Timestamp`
and `Duration` for added convenience when developing IBC light clients or
applications. ([\#1054](https://github.com/cosmos/ibc-rs/pull/1054))
3 changes: 1 addition & 2 deletions ibc-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ pub use types::*;
#[cfg(feature = "serde")]
pub mod serializers;

/// Re-export of common proto types from the `ibc-proto` crate.
pub mod proto {
pub use ibc_proto::google::protobuf::Any;
pub use ibc_proto::google::protobuf::{Any, Duration, Timestamp};
pub use ibc_proto::Protobuf;
}

0 comments on commit 3afd06b

Please sign in to comment.