Skip to content

Commit

Permalink
Use well-known types from tendermint-proto instead of defining and …
Browse files Browse the repository at this point in the history
…bundling our own (#226)

Use the `google.protobuf.{Duration, Timestamp}` Protobuf messages exposed by `tendermint-proto` instead of defining and bundling our own.

* Use well-known types from `tendermint-proto`

* Add changelog entry
  • Loading branch information
romac authored Sep 4, 2024
1 parent c6be212 commit 57d7398
Show file tree
Hide file tree
Showing 31 changed files with 108 additions and 11,073 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Use well-know types from `tendermint-proto` instead of bundling them

Use the `google.protobuf.{Duration, Timestamp}` Protobuf messages
exposed by `tendermint-proto` instead of defining and bundling our own.
([\#226](https://github.com/cosmos/ibc-proto-rs/pull/226))
12 changes: 2 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ flex-error = { version = "0.4", default-features = false }
ics23 = { version = "0.12.0", default-features = false }
informalsystems-pbjson = { version = "0.7.0", optional = true, default-features = false }

## Optional: enabled by the `parity-scale-codec` feature
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["full"], optional = true }
scale-info = { version = "2.1.2", default-features = false, features = ["derive"], optional = true }

## Optional: enabled by the `borsh` feature
## For borsh encode or decode, needs to track `anchor-lang` and `near-sdk-rs` borsh version
borsh = { version = "1", default-features = false, features = ["derive"], optional = true }

[dependencies.tendermint-proto]
version = "0.39"
default-features = false
Expand All @@ -61,6 +53,6 @@ serde = ["dep:serde", "ics23/serde", "informalsystems-pbjson"]
client = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"]
json-schema = ["std", "serde", "dep:schemars"]
server = ["std", "dep:tonic", "tonic/codegen", "tonic/transport", "tonic/prost"]
parity-scale-codec = ["dep:parity-scale-codec", "dep:scale-info"]
borsh = ["dep:borsh"]
parity-scale-codec = ["tendermint-proto/parity-scale-codec"]
borsh = ["tendermint-proto/borsh"]
proto-descriptor = []
322 changes: 0 additions & 322 deletions src/google.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#![allow(rustdoc::bare_urls)]
#![forbid(unsafe_code)]

pub mod google;

pub use tendermint_proto::Error;
pub use tendermint_proto::Protobuf;

Expand Down
Loading

0 comments on commit 57d7398

Please sign in to comment.