|
| 1 | +# PROST version 0.13.0 |
| 2 | + |
| 3 | +_PROST!_ is a [Protocol Buffers](https://developers.google.com/protocol-buffers/) implementation for the [Rust Language](https://www.rust-lang.org/). `prost` generates simple, idiomatic Rust code from `proto2` and `proto3` files. |
| 4 | + |
| 5 | +This major update brings new features and fixes: |
| 6 | + |
| 7 | +## Breaking changes |
| 8 | +- derive Copy trait for messages where possible (#950) |
| 9 | + |
| 10 | + `prost-build` will automatically derive `trait Copy` for some messages. If you manually implement `Copy` you should remove your implementation. |
| 11 | + |
| 12 | +- Change generated functions signatures to remove type parameters (#1045) |
| 13 | + |
| 14 | + The function signature of `trait Message` is changed to use `impl Buf` instead of a named generic type. If you implement `trait Message`, you should change the function signature. |
| 15 | + |
| 16 | +- Lightweight error value in TryFrom<i32> for enums (#1010) |
| 17 | + |
| 18 | + When a `impl TryFrom<i32>` is generated by `prost` derive macros, it will now return the error type `UnknownEnumValue` instead of `DecodeError`. The new error can be used to retreive the integer value that failed to convert. |
| 19 | + |
| 20 | +## Features |
| 21 | +- fix: Only touch include file if contents is changed (#1058) |
| 22 | + |
| 23 | + Most generated files are untouched when the contents doesn't change. Use the same mechanism for include file as well. |
| 24 | + |
| 25 | +## Dependencies |
| 26 | +- update env_logger requirement from 0.10 to 0.11 (#1074) |
| 27 | +- update criterion requirement from 0.4 to 0.5 (#1071) |
| 28 | +- Remove unused libz-sys (#1077) |
| 29 | +- build(deps): update itertools requirement from >=0.10, <=0.12 to >=0.10, <=0.13 (#1070) |
| 30 | + |
| 31 | +## Documentation |
| 32 | +- better checking of tag duplicates, avoid discarding invalid variant errs (#951) |
| 33 | +- docs: Fix broken link warnings (#1056) |
| 34 | +- Add missing LICENSE symlink (#1086) |
| 35 | + |
| 36 | +## Internal |
| 37 | +- workspace package metadata (#1036) |
| 38 | +- fix: Build error due to merge conflict (#1068) |
| 39 | +- build: Fix release scripts (#1055) |
| 40 | +- chore: Add ci to check MSRV (#1057) |
| 41 | +- ci: Add all tests pass job (#1069) |
| 42 | +- ci: Add Dependabot (#957) |
| 43 | +- ci: Ensure both README are the same and prost version is correct (#1078) |
| 44 | +- ci: Set rust version of clippy job to a fixed version (#1090) |
0 commit comments