Skip to content

Commit 9965a98

Browse files
authored
chore: Release version 0.14.1 (#1299)
1 parent 0caca29 commit 9965a98

File tree

11 files changed

+69
-13
lines changed

11 files changed

+69
-13
lines changed

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
# Prost version 0.14.1
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+
## ⚠️ Revert emission of `rerun` commands
6+
7+
Version 0.14.1 reverts the emission of `rerun` commands. Other than this change, it is identical to 0.14.0.
8+
9+
In version 0.14.0, `prost-build` began emitting `rerun` commands. While intended to improve build correctness, this change caused regressions for some users—for example, those generating `protos` from an `includes` directory. These edge cases are difficult to address reliably, so the change has been rolled back in 0.14.1.
10+
11+
For more details, see [issue #1296](https://github.com/tokio-rs/prost/issues/1296).
12+
13+
## Breaking changes
14+
- prost: Relax Message Debug trait bound (#1147)
15+
16+
BREAKING CHANGE: `trait Debug` was a supertrait of `trait Message`. This is no longer required by `prost`. If your code relies on `trait Debug` being implemented for every `impl Message`, you must now explicitly state that you require both Debug and Message. For example: `where M: Debug + Message`
17+
18+
- prost: Remove prost-derive feature (#1247)
19+
20+
BREAKING CHANGE: Feature flag `prost-derive` is renamed to `derive`. Please rename any usage of `prost-derive` feature in your `Cargo.toml`.
21+
22+
- prost-build: Prevent repeated fields to be boxed (#1237)
23+
24+
BREAKING CHANGE: A repeated field that is manually marked as boxed was typed as `Vec<Box<T>>`. Those fields are now simply typed as `Vec<T>` to prevent double indirection. The `boxed` configuration is effectively ignored for repeated fields.
25+
26+
- prost-build: Make `type_name_domain` cumulative (#1228)
27+
28+
BREAKING CHANGE: The configuration for domain names of messages is now cumulative. All calls to `prost_build::Config::type_name_domain` are now concatenated. The previous behavior was that only the arguments of the last call were used. If you do multiple calls to type_name_domain, you need to remove all but the last call to maintain the same behavior.
29+
30+
- prost-build: Derive Eq and Hash trait for messages where possible (#1175)
31+
32+
BREAKING CHANGE: `prost-build` will automatically derive `trait Eq` and `trait Hash` for types where all field support those as well. If you manually `impl Eq` and/or `impl Hash` for generated types, then you need to remove the manual implementation. If you use `type_attribute` to `derive(Eq)` and/or `derive(Hash)`, then you need to remove those.
33+
34+
## Features
35+
36+
- prost-types: Implement conversion `Duration` to/from `chrono::TimeDelta` (#1236)
37+
- prost-build: Prepare for 2024 keyword `gen` (#1257)
38+
39+
## Dependencies
40+
41+
- *(deps)* Update pulldown-cmark to 0.13 (#1259)
42+
- *(deps)* update criterion requirement from 0.5 to 0.6 (#1280)
43+
44+
## Documentation
45+
46+
- Update dead link LICENSE in `prost-types/README.md` (#1262)
47+
48+
## Styling
49+
- Use DoubleEndedIterator::next_back (#1255)
50+
- Fix typo (#1260)
51+
52+
## Testing
53+
54+
- Run tests using edition 2024 (#1254)
55+
- Run clippy with edition 2024 enabled (#1256)
56+
157
# Prost version 0.14.0
258

359
_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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ members = [
1919
resolver = "2"
2020

2121
[workspace.package]
22-
version = "0.14.0"
22+
version = "0.14.1"
2323
authors = [
2424
"Dan Burkert <[email protected]>",
2525
"Lucio Franco <[email protected]>",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
380380

381381
```ignore
382382
[dependencies]
383-
prost = { version = "0.14.0", default-features = false, features = ["derive"] }
383+
prost = { version = "0.14.1", default-features = false, features = ["derive"] }
384384
# Only necessary if using Protobuf well-known types:
385-
prost-types = { version = "0.14.0", default-features = false }
385+
prost-types = { version = "0.14.1", 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
@@ -20,8 +20,8 @@ itertools = { version = ">=0.10, <=0.14", default-features = false, features = [
2020
log = "0.4.4"
2121
multimap = { version = ">=0.8, <=0.10", default-features = false }
2222
petgraph = { version = ">=0.6, <=0.7", default-features = false }
23-
prost = { version = "0.14.0", path = "../prost", default-features = false }
24-
prost-types = { version = "0.14.0", path = "../prost-types", default-features = false }
23+
prost = { version = "0.14.1", path = "../prost", default-features = false }
24+
prost-types = { version = "0.14.1", path = "../prost-types", default-features = false }
2525
tempfile = "3"
2626
once_cell = "1.17.1"
2727
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.14.0")]
1+
#![doc(html_root_url = "https://docs.rs/prost-build/0.14.1")]
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.14.0")]
1+
#![doc(html_root_url = "https://docs.rs/prost-derive/0.14.1")]
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
@@ -18,7 +18,7 @@ std = ["prost/std"]
1818
arbitrary = ["dep:arbitrary"]
1919

2020
[dependencies]
21-
prost = { version = "0.14.0", path = "../prost", default-features = false, features = ["derive"] }
21+
prost = { version = "0.14.1", path = "../prost", default-features = false, features = ["derive"] }
2222
arbitrary = { version = "1.4", features = ["derive"], optional = true }
2323
chrono = { version = "0.4.34", default-features = false, optional = true }
2424

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.14.0")]
1+
#![doc(html_root_url = "https://docs.rs/prost-types/0.14.1")]
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
@@ -23,7 +23,7 @@ std = []
2323

2424
[dependencies]
2525
bytes = { version = "1", default-features = false }
26-
prost-derive = { version = "0.14.0", path = "../prost-derive", optional = true }
26+
prost-derive = { version = "0.14.1", path = "../prost-derive", optional = true }
2727

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

prost/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ the `std` features in `prost` and `prost-types`:
380380

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

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

0 commit comments

Comments
 (0)