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
'sFrom
implementation for converting intoSystemTime
has been converted to a fallibleTryFrom
implementation.prost-build
'scompile_protos
now takesimpl AsRef<Path>
to allow each parameter to use its own generic type.- Bundled
protoc
version bumped to3.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: