Configure Protoc to Annotate Rust Types #7

Open
opened 2025-07-15 09:33:27 +00:00 by Quaternions · 0 comments
Owner

This comment indicates it is possible to configure prost-build to output annotated types (i.e. #[derive(serde::Serialize, serde::Deserialize)]), that would be great if I can find a way to plumb the configuration option into the plugin to do that without the manual sed "codegen".

See also: https://github.com/influxdata/pbjson

[This comment](https://github.com/tokio-rs/prost/issues/75#issuecomment-365371756) indicates it is possible to configure `prost-build` to output annotated types (i.e. `#[derive(serde::Serialize, serde::Deserialize)]`), that would be great if I can find a way to plumb the configuration option into the plugin to do that without the manual sed "codegen". See also: https://github.com/influxdata/pbjson
Quaternions self-assigned this 2025-07-15 09:33:27 +00:00
Quaternions changed title from Configure Protoc to Annotate Types to Configure Protoc to Annotate Rust Types 2025-07-15 09:33:49 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: StrafesNET/protobufs#7