From 6698c7cf16c247a530f63af286f2cea9730fe7e9 Mon Sep 17 00:00:00 2001 From: Geoffry Song Date: Fri, 27 Oct 2023 18:18:44 -0700 Subject: [PATCH] Bump versions to 0.0.14 (#154) --- CHANGELOG.md | 9 ++++++++- README.md | 4 ++-- examples/Cargo.toml | 2 +- examples/examples_gen/Cargo.toml | 2 +- pb-jelly-gen/Cargo.toml | 2 +- pb-jelly-gen/README.md | 2 +- pb-jelly-gen/codegen/codegen.py | 2 +- pb-jelly-gen/codegen/pyproject.toml | 2 +- pb-jelly/Cargo.toml | 2 +- pb-jelly/README.md | 2 +- pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected | 2 +- pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected | 2 +- pb-test/gen/pb-jelly/proto_pbtest/Cargo.toml.expected | 2 +- pb-test/pb_test_gen/Cargo.toml | 2 +- 14 files changed, 22 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 759b237..7db2a96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,16 @@ # Unreleased ... everything has been released! +# 0.0.14 +## Oct 27, 2023 +* Implement box_it for oneof fields (#150) +* Use r# syntax for keywords instead of appending _ (#153) + * This is a breaking change. Fields with names like `type` used to be generated as `type_`. + Now, you should refer to them using a raw identifier: `r#type`. + # 0.0.13 ## Oct 12, 2023 -* Add `rustdoc::` prefix to `#[allow(broken_intra_doc_links)]` (#148) +* Add `rustdoc::` prefix to `#[allow(broken_intra_doc_links)]` (#148) # 0.0.12 ### May 9, 2023 diff --git a/README.md b/README.md index 9d46dab..a8e9f94 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ There are only two crates you'll need if you want to use this with you project ` Contains all of the important traits and structs that power our generated code, e.g. `Message` and `Lazy`. Include this as a `dependency`, e.g. ``` [dependencies] -pb-jelly = "0.0.13" +pb-jelly = "0.0.14" ``` ##### `pb-jelly-gen` @@ -75,7 +75,7 @@ You'll need to add a generation crate (see `examples_gen` for an example) Include `pb-jelly-gen` as a dependency of your generation crate, and `cargo run` to invoke protoc for you. ``` [dependencies] -pb-jelly-gen = "0.0.13" +pb-jelly-gen = "0.0.14" ``` Eventually, we hope to eliminate the need for a generation crate, and simply have generation occur diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 45bc5ef..3f5b342 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] bytes = "1.0" compact_str = "0.5" -pb-jelly = "0.0.13" +pb-jelly = "0.0.14" proto_box_it = { path = "gen/rust/proto/proto_box_it" } proto_custom_type = { path = "gen/rust/proto/proto_custom_type" } proto_linked_list = { path = "gen/rust/proto/proto_linked_list" } diff --git a/examples/examples_gen/Cargo.toml b/examples/examples_gen/Cargo.toml index a4dadfc..7d4f589 100644 --- a/examples/examples_gen/Cargo.toml +++ b/examples/examples_gen/Cargo.toml @@ -6,5 +6,5 @@ edition = "2018" publish = false [dependencies] -#pb-jelly-gen = "0.0.13" # If copying this example - use this +#pb-jelly-gen = "0.0.14" # If copying this example - use this pb-jelly-gen = { path = "../../pb-jelly-gen" } diff --git a/pb-jelly-gen/Cargo.toml b/pb-jelly-gen/Cargo.toml index 42d3fe0..0956e3e 100644 --- a/pb-jelly-gen/Cargo.toml +++ b/pb-jelly-gen/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pb-jelly-gen" description = "A protobuf binding generation framework for the Rust language developed at Dropbox" -version = "0.0.13" +version = "0.0.14" authors = ["Rajat Goel ", "Nipunn Koorapati ", "Parker Timmerman "] edition = "2018" license = "Apache-2.0" diff --git a/pb-jelly-gen/README.md b/pb-jelly-gen/README.md index 38c4253..484990f 100644 --- a/pb-jelly-gen/README.md +++ b/pb-jelly-gen/README.md @@ -18,7 +18,7 @@ Once you've completed the above steps, you should include this crate as a build- ##### `Cargo.toml` ``` [build-dependencies] -pb-jelly-gen = "0.0.13" +pb-jelly-gen = "0.0.14" ``` ##### `build.rs` diff --git a/pb-jelly-gen/codegen/codegen.py b/pb-jelly-gen/codegen/codegen.py index 0329edf..095b8ea 100755 --- a/pb-jelly-gen/codegen/codegen.py +++ b/pb-jelly-gen/codegen/codegen.py @@ -1888,7 +1888,7 @@ def get_cargo_toml_file( versions = { "lazy_static": ' version = "1.4.0" ', - "pb-jelly": ' version = "0.0.13" ', + "pb-jelly": ' version = "0.0.14" ', "serde": ' version = "1.0" ', "bytes": ' version = "1.0" ', "compact_str": ' version = "0.5" ', diff --git a/pb-jelly-gen/codegen/pyproject.toml b/pb-jelly-gen/codegen/pyproject.toml index 0188560..01a89a1 100644 --- a/pb-jelly-gen/codegen/pyproject.toml +++ b/pb-jelly-gen/codegen/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pb-jelly" -version = "0.0.13" +version = "0.0.14" [build-system] requires = [ diff --git a/pb-jelly/Cargo.toml b/pb-jelly/Cargo.toml index ba70a85..8b8b7c1 100644 --- a/pb-jelly/Cargo.toml +++ b/pb-jelly/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pb-jelly" description = "A protobuf runtime for the Rust language developed at Dropbox" -version = "0.0.13" +version = "0.0.14" authors = ["Rajat Goel ", "Nipunn Koorapati ", "Parker Timmerman "] edition = "2018" license = "Apache-2.0" diff --git a/pb-jelly/README.md b/pb-jelly/README.md index 1501899..42c824a 100644 --- a/pb-jelly/README.md +++ b/pb-jelly/README.md @@ -10,7 +10,7 @@ include this crate as a dependency in your `Cargo.toml`. ##### `Cargo.toml` ``` [dependencies] -pb-jelly = "0.0.13" +pb-jelly = "0.0.14" ``` Then in the general case, all you'll need to use in your code is the `Message` trait this crate defines, e.g. diff --git a/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected b/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected index 6398fd9..ea6c165 100644 --- a/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected +++ b/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected @@ -7,4 +7,4 @@ edition = "2018" [dependencies] compact_str = {features=["bytes"], version = "0.5" } lazy_static = { version = "1.4.0" } -pb-jelly = { version = "0.0.13" } +pb-jelly = { version = "0.0.14" } diff --git a/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected b/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected index eb163ab..43524fe 100644 --- a/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected +++ b/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected @@ -7,4 +7,4 @@ edition = "2018" [dependencies] compact_str = {features=["bytes"], version = "0.5" } lazy_static = { version = "1.4.0" } -pb-jelly = { version = "0.0.13" } +pb-jelly = { version = "0.0.14" } diff --git a/pb-test/gen/pb-jelly/proto_pbtest/Cargo.toml.expected b/pb-test/gen/pb-jelly/proto_pbtest/Cargo.toml.expected index 9092d68..b6c29f5 100644 --- a/pb-test/gen/pb-jelly/proto_pbtest/Cargo.toml.expected +++ b/pb-test/gen/pb-jelly/proto_pbtest/Cargo.toml.expected @@ -8,5 +8,5 @@ edition = "2018" bytes = { version = "1.0" } compact_str = {features=["bytes"], version = "0.5" } lazy_static = { version = "1.4.0" } -pb-jelly = { version = "0.0.13" } +pb-jelly = { version = "0.0.14" } proto_google = {path = "../proto_google"} diff --git a/pb-test/pb_test_gen/Cargo.toml b/pb-test/pb_test_gen/Cargo.toml index 5628f9a..6bc2900 100644 --- a/pb-test/pb_test_gen/Cargo.toml +++ b/pb-test/pb_test_gen/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" publish = false [dependencies] -#pb-jelly-gen = "0.0.13" # If copying this example - use this +#pb-jelly-gen = "0.0.14" # If copying this example - use this pb-jelly-gen = { path = "../../pb-jelly-gen" } # only used when benchmarking PROST!