Skip to content

Commit 9fcf2ac

Browse files
authored
Merge pull request #102 from kristopherbullinger/update-readme
update README: add type serde derive type annotations in prost_build
2 parents c69de35 + 1c7bb38 commit 9fcf2ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fn main() {
4444
}
4545

4646
prost_build::Config::new()
47+
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]") // enable support for JSON encoding
4748
.service_generator(twirp_build::service_generator())
4849
.compile_protos(&proto_source_files, &["./"])
4950
.expect("error compiling protos");

0 commit comments

Comments
 (0)
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