#protobuf #json #serde-json

pbjson-types

Protobuf well known types with serde serialization support

14 releases (7 breaking)

0.8.0 Jul 15, 2025
0.7.0 Jul 9, 2024
0.6.0 Sep 18, 2023
0.5.1 Oct 26, 2022
0.2.1 Nov 10, 2021

#483 in Encoding

Download history 286836/week @ 2025-07-26 271202/week @ 2025-08-02 270819/week @ 2025-08-09 245845/week @ 2025-08-16 231869/week @ 2025-08-23 229400/week @ 2025-08-30 244965/week @ 2025-09-06 238107/week @ 2025-09-13 227232/week @ 2025-09-20 221436/week @ 2025-09-27 261303/week @ 2025-10-04 243136/week @ 2025-10-11 287836/week @ 2025-10-18 355681/week @ 2025-10-25 370175/week @ 2025-11-01 264240/week @ 2025-11-08

1,329,124 downloads per month
Used in 173 crates (69 directly)

MIT license

65KB
1.5K SLoC

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


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

Dependencies

~1.7–4MB
~73K SLoC