| Crates.io | imbibe-protos |
| lib.rs | imbibe-protos |
| version | 0.0.1 |
| created_at | 2025-06-18 09:43:18.290126+00 |
| updated_at | 2025-06-18 09:43:18.290126+00 |
| description | dictates the code generation of rust structs from the given protobuf messages |
| homepage | |
| repository | https://github.com/labcycle/imbibe |
| max_upload_size | |
| id | 1716798 |
| size | 57,084 |
This crate dictates the code generation of rust structs from the given protobuf messages.
Ensure that buf-cli is installed and buf is in PATH.
Currenly, the selection of comos messages is controlled by the feature flags:
cosmos: Generates rust structs from cosmos-sdk/proto.
ethsecp256k1: Generates rust structs to support signer extraction when cosmos transaction signed by ethermint's ethsecp256k1 keys.
custom: Generates rust structs from protobuf messages present in directory specified by environment variable PROTO_SRC_DIR. The directory must contain a valid buf.yaml and buf dep update should be run prior to building this crate.
All the generated rust structs of cosmos messages whose corresponding protobuf messages contain the option cosmos.msg.v1.signer, will implement the trait GetSigners. This returns an iterator over the bech32 addresses of the signers present inside the cosmos message.