Releases: tokio-rs/prost
v0.9.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
Release 0.9.0 brings in many helpful changes and fixes, here are a few highlights:
- Apple silicon support
- Improve encode/decode varint performance
- Support no package declaration
- Support single include files
- Fix multiple attribute support
v0.8.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
NOTE: This version contains a security fix for prost-types and is recommend that you upgrade to it from <0.7.
prost 0.8.0 includes breaking changes:
Timestamp'sFromimplementation for converting intoSystemTimehas been converted to a fallibleTryFromimplementation.prost-build'scompile_protosnow takesimpl AsRef<Path>to allow each parameter to use its own generic type.- Bundled
protocversion bumped to3.15.8
As well as many new (non-breaking) changes:
- @pluth enabled zero-copy support for
Bytesbased fields. - @sfackler for fixing message optionals and oneofs in
prost-build. - @rubdos for adding the ability to encode prost messages directly to a
Vec<u8>.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.7:
v0.7.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.7.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.46.0.
- The
bytespublic dependency version is now 1.0. - The bundled
protocversion is now 3.14.0.
As well as many new (non-breaking) features and improvements:
- @hockeybuggy added support for
deprecatedfield annotations. - @garbageslam and @dflemstr added
no_stdsupport. - @joseph-wakeling-frequenz fixed a bug in Timestamp <-> SystemTime conversions.
- @rolftimmermans added support for generating Rust
bytes::Bytesfields from protobufbytesfields. When deserializing from aBytesinstance, this enables zero-copy deserialization forbytesfields! - @olix0r bumped the
bytesdependency to 0.6, which included most of the heavy lifting for the subsequent move tobytes1.0. - @danburkert added support for the experimental proto3 optional field presence feature.
and numerous smaller fixes. Many thanks to the generous contributors who have helped out since 0.6.1:
v0.6.1
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.6.1 fixes a bug in which decoding untrusted input could overflow the stack. The bug was reported by @dbrgn in #267 (with an attached repro!), and fixed by @danburkert. The fix extended the same recursion limits introduced in #186 by @nrc (released in 0.6.0) to the logic which skips unknown fields during decoding, which became recursive when support was added for decoding groups (also released in 0.6.0). The 0.6.0 release of the prost crates has been yanked from crates.io.
Additionally, @koushiro updated the private dependencies of all prost crates to the latest versions.
Many thanks to the generous contributors who have helped out since 0.6.0:
- Dan Burkert
- Danilo Bargen
- Qinxuan Chen
v0.6.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.6.0 includes breaking changes:
- The minimum-supported Rust version (MSRV) is now 1.39.0.
- The
bytespublic dependency version is now0.5. - The prost-types
TimestampandDurationtypes now implTryFromfor their
std::timeequivalents. The old inherenttry_frommethods have been
removed. - Deeply nested messages now fail decoding with an error, instead of potentially
resulting in a stack overflow. The limit is set to a nesting depth of 100, and
the limit can be disabled using a newno-recursion-limitCargo feature.
As well as many new (non-breaking) features and improvements:
- @hanya added support for protobuf Group types.
- @danburkert improved the benchmark suite, including adding support for the
full set of upstream message encoding and decoding benchmarks. - @nrc implemented a series of micro-optimizations which result in faster
message encoding and decoding. - @dunmatt improved the method docs on generated types.
- @lukaslueg removed the dependency on
byteorder. - @parasyte added the
ServiceGenerator::finalize_package, which is useful for
advanced service generators. - @joelgallant improved the error message that occurs when attempting to compile
.proto files without a package specifier. - @LucioFranco removed the direct dependency of generated types on the
bytes
crate, which means applications which useprostcode generation are no
longer required to declare abytesdependency. - @ErichDonGubler and @hobofan bumped the
syn,quote, andproc-macro2to stable
versions. - @Timmmm improved
prost-buildso that it no longer writes .rs files when they
are unchanged, which improves working with tools likecargo watchin
codebases withprostcode generation. - @Hirevo replaced usage of
failurewithanyhow. - @danburkert bumped the packaged
protocversion to 3.11.2.
Many thanks to the generous contributors who have helped out since 0.5.0:
- Dan Burkert
- Erich Gubler
- FujiApple
- Hanya
- Jay Oster
- Joel Gallant
- koushiro
- Lucio Franco
- Luffbee
- lukaslueg
- M@ Dunlap
- Maximilian Goisser
- Mikhail Zabaluev
- Nick Cameron
- Nicolas Polomack
- Stephan Wolski
- Tim Hutt
v0.5.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.5.0 should be mostly source-compatible with version 0.4.0, with one exception: prost 0.4.0 escapes field and message names which are Rust keyword by appending a suffix underscore; prost 0.5.0 does not escape field or message names, instead using the new raw-identifier feature. In addition, the minimum rustc version has been bumped to 1.32.0.
0.5.0 ships with new features and bug fixes:
- @adeschamps fixed a bug which caused enum fields with a default value whose prefix is stripped to be incorrectly generated.
- @danburkert added an option for overriding the code-generation output directory with a new
prost_build::Config::out_dir()method. - @danburkert added a re-export of
prost-derivetypes inprost. As a result, it should no longer be necessary for applications to depend directly on theprost-derivecrate. - @ebkalderon, @trha, and @danburkert added support to the code generator for referencing
prostgenerated types in external crates with a newprost_build::Config::extern_path()method. - @jeffparsons made code generation more robust by always fully-qualifying standard library types.
- @nrc added support for generating edition-2018 compatible code.
Many thanks to the generous contributors who have helped out since 0.4.0:
- Anthony Deschamps
- Dan Burkert
- Eliza Weisman
- Eyal Kalderon
- Jeff Parsons
- Nick Cameron
- Sebastian Hahn
- Timothy Hobbs
- Trinh Hoang Anh
v0.4.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.4.0 contains new features, bug-fixes, and one breaking change since
0.3.0:
- @briansmith cleaned up the project dependencies and build scripts, resulting
in faster and more robust builds for allprostusers. - @kestred added tag inference on fields in types which derive
Message.
Tag inference reduces the number annotations necessary when manually writing
message structs. - @warrenfalk added logic to strip the enum name from enum
variants which include the enum name as a prefix. This style is common with
Protobuf (since it's heavily tied to C++ name resolution), however it's
non-idiomatic in Rust. To restore the previous behavior a new Config option is
provided:retain_enum_prefix. This is a breaking change. - @danburkert added helper methods for working with length delimiters
independently of message encoding and decoding. - And many more bug fixes.
Many thanks to the generous contributors who have helped out since 0.3.0:
- Brian Smith
- Dan Burkert
- Gergely Nagy
- Ivan Mironov
- Kevin Stenerson
- Warren Falk
- YetAnotherMinion
- hcpl
v0.3.0
PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.
prost 0.3.0 contains new features, bug-fixes, and one breaking change since 0.2.0:
- @vorner added an important new feature to
prost-buildwhich allows custom attributes to be added to generated types. This allows applications to derive traits for generated types, such as SerDe support. - @vorner changed the
Debugimplementation for enumeration fields to be more helpful. - The
prost_build::ServiceGeneratorandprost_build::ConfigAPIs have been changed to take&mut selfinstead of&selfin order to simplify writing stateful service generators.
Many thanks to the wonderful contributors who have pitched-in since 0.2.0:
- Dan Burkert
- Fabrice Desré
- Michal 'vorner' Vaner
- Oliver Gould
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.