Skip to content

Commit 23f7174

Browse files
authored
chore: Release version 0.13.0 (#1093)
1 parent 7a1424c commit 23f7174

File tree

11 files changed

+61
-17
lines changed

11 files changed

+61
-17
lines changed

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exclude = [
2323
resolver = "2"
2424

2525
[workspace.package]
26-
version = "0.12.6"
26+
version = "0.13.0"
2727
authors = [
2828
"Dan Burkert <[email protected]>",
2929
"Lucio Franco <[email protected]>",

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ First, add `prost` and its public dependencies to your `Cargo.toml`:
3030

3131
```ignore
3232
[dependencies]
33-
prost = "0.12"
33+
prost = "0.13"
3434
# Only necessary if using Protobuf well-known types:
35-
prost-types = "0.12"
35+
prost-types = "0.13"
3636
```
3737

3838
The recommended way to add `.proto` compilation to a Cargo project is to use the
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
380380

381381
```ignore
382382
[dependencies]
383-
prost = { version = "0.12.6", default-features = false, features = ["prost-derive"] }
383+
prost = { version = "0.13.0", default-features = false, features = ["prost-derive"] }
384384
# Only necessary if using Protobuf well-known types:
385-
prost-types = { version = "0.12.6", default-features = false }
385+
prost-types = { version = "0.13.0", default-features = false }
386386
```
387387

388388
Additionally, configure `prost-build` to output `BTreeMap`s instead of `HashMap`s

prost-build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ itertools = { version = ">=0.10, <=0.13", default-features = false, features = [
2121
log = "0.4.4"
2222
multimap = { version = ">=0.8, <=0.10", default-features = false }
2323
petgraph = { version = "0.6", default-features = false }
24-
prost = { version = "0.12.6", path = "../prost", default-features = false }
25-
prost-types = { version = "0.12.6", path = "../prost-types", default-features = false }
24+
prost = { version = "0.13.0", path = "../prost", default-features = false }
25+
prost-types = { version = "0.13.0", path = "../prost-types", default-features = false }
2626
tempfile = "3"
2727
once_cell = "1.17.1"
2828
regex = { version = "1.8.1", default-features = false, features = ["std", "unicode-bool"] }

prost-build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/prost-build/0.12.6")]
1+
#![doc(html_root_url = "https://docs.rs/prost-build/0.13.0")]
22
#![allow(clippy::option_as_ref_deref, clippy::format_push_string)]
33

44
//! `prost-build` compiles `.proto` files into Rust.

prost-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/prost-derive/0.12.6")]
1+
#![doc(html_root_url = "https://docs.rs/prost-derive/0.13.0")]
22
// The `quote!` macro requires deep recursion.
33
#![recursion_limit = "4096"]
44

prost-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ default = ["std"]
1717
std = ["prost/std"]
1818

1919
[dependencies]
20-
prost = { version = "0.12.6", path = "../prost", default-features = false, features = ["prost-derive"] }
20+
prost = { version = "0.13.0", path = "../prost", default-features = false, features = ["prost-derive"] }
2121

2222
[dev-dependencies]
2323
proptest = "1"

prost-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(html_root_url = "https://docs.rs/prost-types/0.12.6")]
1+
#![doc(html_root_url = "https://docs.rs/prost-types/0.13.0")]
22

33
//! Protocol Buffers well-known types.
44
//!

prost/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ std = []
2424

2525
[dependencies]
2626
bytes = { version = "1", default-features = false }
27-
prost-derive = { version = "0.12.6", path = "../prost-derive", optional = true }
27+
prost-derive = { version = "0.13.0", path = "../prost-derive", optional = true }
2828

2929
[dev-dependencies]
3030
criterion = { version = "0.5", default-features = false }

prost/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ First, add `prost` and its public dependencies to your `Cargo.toml`:
3030

3131
```ignore
3232
[dependencies]
33-
prost = "0.12"
33+
prost = "0.13"
3434
# Only necessary if using Protobuf well-known types:
35-
prost-types = "0.12"
35+
prost-types = "0.13"
3636
```
3737

3838
The recommended way to add `.proto` compilation to a Cargo project is to use the
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
380380

381381
```ignore
382382
[dependencies]
383-
prost = { version = "0.12.6", default-features = false, features = ["prost-derive"] }
383+
prost = { version = "0.13.0", default-features = false, features = ["prost-derive"] }
384384
# Only necessary if using Protobuf well-known types:
385-
prost-types = { version = "0.12.6", default-features = false }
385+
prost-types = { version = "0.13.0", default-features = false }
386386
```
387387

388388
Additionally, configure `prost-build` to output `BTreeMap`s instead of `HashMap`s

0 commit comments

Comments
 (0)