Skip to content

Commit

Permalink
chore: Prepare 0.11 release (#692)
Browse files Browse the repository at this point in the history
_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.

Relase 0.11 brings a few breaking changes and changes to how prost
sources protoc.

- `prost-build` now requires `protoc` to be available in the path or set
  via the `PROTOC` env var.
- `prost-types` now contains new `Timestamp`/`Duration` `FromStr` implementations.
- MSRV bump to `1.56` and all crates have been moved to edition 2021

Notible changes that are not breaking:

- `prost-build` now has a `cleanup-markdown` feature for cleaining up
  code blocks from protobuf files so that they work under rustdoc tests.
- `prost-build` now generates `as_str_name` for message types.
  • Loading branch information
LucioFranco authored Jul 29, 2022
1 parent c6495d3 commit 4459a1e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "prost"
version = "0.10.1"
version = "0.11.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
Expand Down Expand Up @@ -47,7 +48,7 @@ std = []

[dependencies]
bytes = { version = "1", default-features = false }
prost-derive = { version = "0.10.0", path = "prost-derive", optional = true }
prost-derive = { version = "0.11.0", path = "prost-derive", optional = true }

[dev-dependencies]
criterion = "0.3"
Expand Down
7 changes: 4 additions & 3 deletions prost-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "prost-build"
version = "0.10.1"
version = "0.11.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
Expand All @@ -25,8 +26,8 @@ itertools = "0.10"
log = "0.4"
multimap = { version = "0.8", default-features = false }
petgraph = { version = "0.6", default-features = false }
prost = { version = "0.10.0", path = "..", default-features = false }
prost-types = { version = "0.10.0", path = "../prost-types", default-features = false }
prost = { version = "0.11.0", path = "..", default-features = false }
prost-types = { version = "0.11.0", path = "../prost-types", default-features = false }
tempfile = "3"
lazy_static = "1.4.0"
regex = { version = "1.5.5", default-features = false, features = ["std", "unicode-bool"] }
Expand Down
2 changes: 1 addition & 1 deletion prost-build/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/prost-build/0.10.1")]
#![doc(html_root_url = "https://docs.rs/prost-build/0.11.0")]
#![allow(clippy::option_as_ref_deref, clippy::format_push_string)]

//! `prost-build` compiles `.proto` files into Rust.
Expand Down
3 changes: 2 additions & 1 deletion prost-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "prost-derive"
version = "0.10.1"
version = "0.11.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com>",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
Expand Down
5 changes: 3 additions & 2 deletions prost-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "prost-types"
version = "0.10.1"
version = "0.11.0"
authors = [
"Dan Burkert <dan@danburkert.com>",
"Lucio Franco <luciofranco14@gmail.com",
"Tokio Contributors <team@tokio.rs>",
]
license = "Apache-2.0"
Expand All @@ -22,7 +23,7 @@ std = ["prost/std"]

[dependencies]
bytes = { version = "1", default-features = false }
prost = { version = "0.10.0", path = "..", default-features = false, features = ["prost-derive"] }
prost = { version = "0.11", path = "..", default-features = false, features = ["prost-derive"] }

[dev-dependencies]
proptest = "1"
2 changes: 1 addition & 1 deletion prost-types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/prost-types/0.10.1")]
#![doc(html_root_url = "https://docs.rs/prost-types/0.11.0")]

//! Protocol Buffers well-known types.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/prost/0.10.1")]
#![doc(html_root_url = "https://docs.rs/prost/0.11")]
#![cfg_attr(not(feature = "std"), no_std)]
#![doc = include_str!("../README.md")]

Expand Down

0 comments on commit 4459a1e

Please sign in to comment.