chore: Release version 0.13.0 #1093
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PROST version 0.13.0
PROST! is a Protocol Buffers implementation for the Rust Language.
prostgenerates simple, idiomatic Rust code fromproto2andproto3files.This major update brings new features and fixes:
Breaking changes
derive Copy trait for messages where possible (feat: derive Copy trait for messages where possible #950)
prost-buildwill automatically derivetrait Copyfor some messages. If you manually implementCopyyou should remove your implementation.Change generated functions signatures to remove type parameters (Change generated functions signatures to remove type parameters #1045)
The function signature of
trait Messageis changed to useimpl Bufinstead of a named generic type. If you implementtrait Message, you should change the function signature.Lightweight error value in TryFrom for enums (A more lightweight, informative error value in
TryFrom<i32>for enums #1010)When a
impl TryFrom<i32>is generated byprostderive macros, it will now return the error typeUnknownEnumValueinstead ofDecodeError. The new error can be used to retreive the integer value that failed to convert.Features
fix: Only touch include file if contents is changed (fix: Only touch include file if contents is changed #1058)
Most generated files are untouched when the contents doesn't change. Use the same mechanism for include file as well.
Dependencies
Documentation
Internal