#protobuf #json #serde

pbjson-types

Protobuf well known types with serde serialization support

7 releases

Uses new Rust 2021

0.3.1 May 9, 2022
0.3.0 Apr 1, 2022
0.2.3 Mar 8, 2022
0.2.2 Jan 13, 2022
0.1.0 Sep 28, 2021

#168 in Encoding

Download history 785/week @ 2022-01-25 516/week @ 2022-02-01 962/week @ 2022-02-08 1367/week @ 2022-02-15 2153/week @ 2022-02-22 1744/week @ 2022-03-01 1750/week @ 2022-03-08 1626/week @ 2022-03-15 1379/week @ 2022-03-22 1803/week @ 2022-03-29 1153/week @ 2022-04-05 1699/week @ 2022-04-12 1919/week @ 2022-04-19 2962/week @ 2022-04-26 1931/week @ 2022-05-03 1624/week @ 2022-05-10

8,680 downloads per month
Used in 2 crates (via ydb-grpc)

MIT license

38KB
1K SLoC

Pbjson

Pbjson is a set of crates to automatically generate serde Serialize and Deserialize implementations for auto-generated prost types.

See pbjson-build for usage instructions


lib.rs:

pbjson-types provides the google.protobuf types, commonly known as well-known-types, with serde::Serialize and serde::Deserialize implementations that are compliant with the protobuf JSON mapping

Note: Coverage of all types is currently incomplete, some may have non-compliant implementations

Dependencies

~1.8–5.5MB
~106K SLoC