| Crates.io | protokit_build |
| lib.rs | protokit_build |
| version | 0.2.0 |
| created_at | 2023-08-09 14:48:41.890952+00 |
| updated_at | 2024-03-15 22:01:37.67476+00 |
| description | Usable protocol buffers |
| homepage | |
| repository | https://github.com/semtexzv/protokit |
| max_upload_size | |
| id | 940113 |
| size | 47,598 |
Implementation of protocol buffers for rust.
Started with my need for proper textformat support.
any_value {
[type.googleapis.com/com.example.SomeType] {
field1: "hello"
}
}
After I investigated other crates, I found out that they had other issues ( required boxing in rust-protobuf, messy codegen in prost).
#[derive(Default, Debug, Clone, BinProto)]
pub struct FieldPath {
#[field(1, varint, packed)]
pub fields: Vec<u32>,
}
#[derive(Default, Debug, Clone, BinProto)]
pub struct FieldMask {
#[field(1, nested, repeated)]
pub paths: Vec<FieldPath>,
}