Releases: tokio-rs/prost
Releases · tokio-rs/prost
Release list
v0.2.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.2.0 includes many improvements over the previous version, including:
- The
prost-codegencrate has been removed, and its functionality has been combined intoprost-build. - A new crate,
prost-types, containing Protobuf well-known types has been added. The code generator will automatically useprost-typeswhen well-known types are encountered during.proto→.rscode generation. - Field accessors for proto2 optional fields and enum fields have been made more ergonomic.
prost-buildhas a new builder API (prost_build::Config), which can be used to specify custom code generation options. Current options include:- Using
BTreeMapinstead ofHashMapfor map fields. - Custom code generation for protobuf
servicedefinitions.
- Using
- New prost-specific error types,
prost::EncodeErrorandprost::DecodeErrorfor encoding and decoding results. - The
prost::Messagetrait has been made more flexible, and more ergonomic. - varint encoding and decoding has been optimized, see the following commit messages for results:
- Default values are now preserved during code generation (bugfix).
- New
Message::clearmethod.