From 1c7bb38ce54b7df6300790279c12c4a5500c25be Mon Sep 17 00:00:00 2001 From: kbullinger Date: Wed, 11 Sep 2024 16:25:00 -0400 Subject: [PATCH] add type serde derive type annotations in prost_build --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 38cf3a5..a274241 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ fn main() { } prost_build::Config::new() + .type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]") // enable support for JSON encoding .service_generator(twirp_build::service_generator()) .compile_protos(&proto_source_files, &["./"]) .expect("error compiling protos"); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy