Skip to content

Releases: tokio-rs/prost

v0.10.3

05 May 15:55
48160ef
Compare
Choose a tag to compare

PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.

This release reverts #605 and contains some typo fixes.

(this release is actually the v0.10.2 release but prost-build had to be yanked because of a local publish issue)

v0.10.2

05 May 14:22
4a41329
Compare
Choose a tag to compare

PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.

This release reverts #605 and contains some typo fixes.

(this release was yanked due to missing third-party source, v0.10.3 is now the active release for this)

v0.10.1

13 Apr 15:00
8209f8a
Compare
Choose a tag to compare

PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.

This minor release brings no new code changes but symlinks license files in all the crates.

v0.10.0

31 Mar 17:34
8422b80
Compare
Choose a tag to compare

PROST! is a Protocol Buffers implementation for the Rust Language. prost generates simple, idiomatic Rust code from proto2 and proto3 files.

Release 0.10 brings a few new ....

  • protoc is no longer bundled but is now compiled from bundled source
  • Minor performance improvements
  • Methods exposed to allow third party protobuf generation libraries

v0.9.0

13 Oct 21:17
Compare
Choose a tag to compare

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

08 Jul 14:37
Compare
Choose a tag to compare

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's From implementation for converting into SystemTime has been converted to a fallible TryFrom implementation.
  • prost-build's compile_protos now takes impl AsRef<Path> to allow each parameter to use its own generic type.
  • Bundled protoc version bumped to 3.15.8

As well as many new (non-breaking) changes:

  • @pluth enabled zero-copy support for Bytes based 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

27 Dec 23:27
Compare
Choose a tag to compare

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 bytes public dependency version is now 1.0.
  • The bundled protoc version is now 3.14.0.

As well as many new (non-breaking) features and improvements:

  • @hockeybuggy added support for deprecated field annotations.
  • @garbageslam and @dflemstr added no_std support.
  • @joseph-wakeling-frequenz fixed a bug in Timestamp <-> SystemTime conversions.
  • @rolftimmermans added support for generating Rust bytes::Bytes fields from protobuf bytes fields. When deserializing from a Bytes instance, this enables zero-copy deserialization for bytes fields!
  • @olix0r bumped the bytes dependency to 0.6, which included most of the heavy lifting for the subsequent move to bytes 1.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

16 Jan 17:49
Compare
Choose a tag to compare

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

13 Jan 01:15
Compare
Choose a tag to compare

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 bytes public dependency version is now 0.5.
  • The prost-types Timestamp and Duration types now impl TryFrom for their
    std::time equivalents. The old inherent try_from methods 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 new no-recursion-limit Cargo 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 use prost code generation are no
    longer required to declare a bytes dependency.
  • @ErichDonGubler and @hobofan bumped the syn, quote, and proc-macro2 to stable
    versions.
  • @Timmmm improved prost-build so that it no longer writes .rs files when they
    are unchanged, which improves working with tools like cargo watch in
    codebases with prost code generation.
  • @Hirevo replaced usage of failure with anyhow.
  • @danburkert bumped the packaged protoc version 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

10 Mar 20:41
Compare
Choose a tag to compare

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-derive types in prost. As a result, it should no longer be necessary for applications to depend directly on the prost-derive crate.
  • @ebkalderon, @trha, and @danburkert added support to the code generator for referencing prost generated types in external crates with a new prost_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