| Crates.io | proto_convert_derive |
| lib.rs | proto_convert_derive |
| version | 0.1.15 |
| created_at | 2025-03-08 22:49:08.722689+00 |
| updated_at | 2025-03-16 08:04:57.597011+00 |
| description | Automatically derive Protobuf and Rust conversions. |
| homepage | |
| repository | https://github.com/protortyp/proto_convert_derive |
| max_upload_size | |
| id | 1584888 |
| size | 31,624 |
Automatically derive conversions between Protobuf-compiled prost types and your native Rust types.
proto_convert_derive is a procedural macro for bidirectional conversions between Protobuf-generated types (prost) and Rust structs. This reduces boilerplate and handles proto3's lack of required fields (which result in Option and lots .expect or if let Some in your code. This macro simply .expects types.
From<Proto> for Rust types and vice versa.Vec<Proto>.expect.proto via #[proto(module = "your_module")]).#[proto(ignore)]Head to the examples.