Skip to content

Commit 3543eb8

Browse files
authored
chore: Release version 0.14.0 (#1276)
1 parent 1e93f56 commit 3543eb8

File tree

11 files changed

+69
-17
lines changed

11 files changed

+69
-17
lines changed

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
# Prost version 0.14.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+
## Breaking changes
6+
- prost: Relax Message Debug trait bound (#1147)
7+
8+
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`
9+
10+
- prost: Remove prost-derive feature (#1247)
11+
12+
BREAKING CHANGE: Feature flag `prost-derive` is renamed to `derive`. Please rename any usage of `prost-derive` feature in your `Cargo.toml`.
13+
14+
- prost-build: Emit `rerun` commands (#1140)
15+
16+
BREAKING CHANGE: Previously `cargo` assumed it had to rerun `build.rs` if any files in the project changed. `prost-build` will now emit `rerun` commands, which means only the explicitly marked files cause a rerun. If your `build.rs` is dependent on any other file paths than those given to `prost-build`, then your `build.rs` needs to emit `rerun` commands as well.
17+
18+
- prost-build: Prevent repeated fields to be boxed (#1237)
19+
20+
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.
21+
22+
- prost-build: Make `type_name_domain` cumulative (#1228)
23+
24+
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.
25+
26+
- prost-build: Derive Eq and Hash trait for messages where possible (#1175)
27+
28+
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.
29+
30+
## Features
31+
32+
- prost-types: Implement conversion `Duration` to/from `chrono::TimeDelta` (#1236)
33+
- prost-build: Prepare for 2024 keyword `gen` (#1257)
34+
35+
## Dependencies
36+
37+
- *(deps)* Update pulldown-cmark to 0.13 (#1259)
38+
- *(deps)* update criterion requirement from 0.5 to 0.6 (#1280)
39+
40+
## Documentation
41+
42+
- Update dead link LICENSE in `prost-types/README.md` (#1262)
43+
44+
## Styling
45+
- Use DoubleEndedIterator::next_back (#1255)
46+
- Fix typo (#1260)
47+
48+
## Testing
49+
50+
- Run tests using edition 2024 (#1254)
51+
- Run clippy with edition 2024 enabled (#1256)
52+
153
# Prost version 0.13.5
254

355
_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.13.5"
22+
version = "0.14.0"
2323
authors = [
2424
"Dan Burkert <[email protected]>",
2525
"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.13"
33+
prost = "0.14"
3434
# Only necessary if using Protobuf well-known types:
35-
prost-types = "0.13"
35+
prost-types = "0.14"
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.13.5", default-features = false, features = ["derive"] }
383+
prost = { version = "0.14.0", default-features = false, features = ["derive"] }
384384
# Only necessary if using Protobuf well-known types:
385-
prost-types = { version = "0.13.5", default-features = false }
385+
prost-types = { version = "0.14.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
@@ -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.13.5", path = "../prost", default-features = false }
24-
prost-types = { version = "0.13.5", path = "../prost-types", 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 }
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.13.5")]
1+
#![doc(html_root_url = "https://docs.rs/prost-build/0.14.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.13.5")]
1+
#![doc(html_root_url = "https://docs.rs/prost-derive/0.14.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
@@ -18,7 +18,7 @@ std = ["prost/std"]
1818
arbitrary = ["dep:arbitrary"]
1919

2020
[dependencies]
21-
prost = { version = "0.13.5", path = "../prost", default-features = false, features = ["derive"] }
21+
prost = { version = "0.14.0", 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.13.5")]
1+
#![doc(html_root_url = "https://docs.rs/prost-types/0.14.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
@@ -23,7 +23,7 @@ std = []
2323

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

2828
[dev-dependencies]
2929
criterion = { version = "0.6", 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.13"
33+
prost = "0.14"
3434
# Only necessary if using Protobuf well-known types:
35-
prost-types = "0.13"
35+
prost-types = "0.14"
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.13.5", default-features = false, features = ["derive"] }
383+
prost = { version = "0.14.0", default-features = false, features = ["derive"] }
384384
# Only necessary if using Protobuf well-known types:
385-
prost-types = { version = "0.13.5", default-features = false }
385+
prost-types = { version = "0.14.0", default-features = false }
386386
```
387387

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

prost/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/0.13.5")]
1+
#![doc(html_root_url = "https://docs.rs/prost/0.14.0")]
22
#![cfg_attr(not(feature = "std"), no_std)]
33
#![doc = include_str!("../README.md")]
44

0 commit comments

Comments
 (0)