From 16b5645bcb4ec2e6792ae4dfd031cae22b06eabd Mon Sep 17 00:00:00 2001 From: Geoffry Song Date: Wed, 20 Nov 2024 17:26:56 -0800 Subject: [PATCH] Bump versions to 0.0.17 (#178) --- CHANGELOG.md | 7 +++++++ README.md | 4 ++-- examples/Cargo.toml | 2 +- examples/examples_gen/Cargo.toml | 2 +- pb-jelly-gen/Cargo.toml | 4 ++-- pb-jelly-gen/README.md | 2 +- pb-jelly-gen/src/codegen.rs | 2 +- pb-jelly-gen/src/lib.rs | 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 f07afb1..fe76b06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Unreleased ... everything has been released! +# 0.0.17 +### Nov 20, 2024 +* Add read-only support for proto2 extension fields (#163, #170) +* Remove Python dependency by rewriting pb-jelly-gen in Rust (#164) +* Remove serde impls for Fixed/Signed types (#168) +* Various optimizations around the generated code (#173, #175) + # 0.0.16 ### Jan 18, 2024 * Replace ctype=CORD with rust.blob extension field (#160) diff --git a/README.md b/README.md index 3519a20..fa08fa2 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ There are only two crates you'll need: `pb-jelly` and `pb-jelly-gen`.
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.16" +pb-jelly = "0.0.17" ``` ##### `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.16" +pb-jelly-gen = "0.0.17" ``` 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 92ef8ea..2a93c11 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.16" +pb-jelly = "0.0.17" 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 fea046e..f527a65 100644 --- a/examples/examples_gen/Cargo.toml +++ b/examples/examples_gen/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" publish = false [dependencies] -#pb-jelly-gen = "0.0.16" # If copying this example - use this +#pb-jelly-gen = "0.0.17" # If copying this example - use this pb-jelly-gen = { path = "../../pb-jelly-gen" } [patch.crates-io] diff --git a/pb-jelly-gen/Cargo.toml b/pb-jelly-gen/Cargo.toml index 9cbf0cb..46a5c4a 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.16" +version = "0.0.17" authors = ["Rajat Goel ", "Nipunn Koorapati ", "Parker Timmerman "] edition = "2018" license = "Apache-2.0" @@ -23,7 +23,7 @@ generate = ["walkdir", "tempfile"] tempfile = { version = "3.1.0", optional = true } walkdir = { version = "2", optional = true } -pb-jelly = { version = "0.0.16" } +pb-jelly = { version = "0.0.17" } lazy_static = "1.4.0" indexmap = "2.0.2" diff --git a/pb-jelly-gen/README.md b/pb-jelly-gen/README.md index 5c74763..62401a9 100644 --- a/pb-jelly-gen/README.md +++ b/pb-jelly-gen/README.md @@ -26,7 +26,7 @@ Add this crate as a dependency in your `Cargo.toml` and then call `gen_protos`: ##### `Cargo.toml` ``` [dependencies] -pb-jelly-gen = "0.0.16" +pb-jelly-gen = "0.0.17" ``` ##### `main.rs` diff --git a/pb-jelly-gen/src/codegen.rs b/pb-jelly-gen/src/codegen.rs index d31dc29..c9567da 100644 --- a/pb-jelly-gen/src/codegen.rs +++ b/pb-jelly-gen/src/codegen.rs @@ -2567,7 +2567,7 @@ impl<'a> Context<'a> { let mut versions: IndexMap<&str, String> = IndexMap::new(); versions.insert("lazy_static", "version = \"1.4.0\"".to_string()); - versions.insert("pb-jelly", "version = \"0.0.16\"".to_string()); + versions.insert("pb-jelly", "version = \"0.0.17\"".to_string()); versions.insert("serde", "version = \"1.0\"".to_string()); versions.insert("serde_derive", "version = \"1.0\"".to_string()); versions.insert("bytes", "version = \"1.0\"".to_string()); diff --git a/pb-jelly-gen/src/lib.rs b/pb-jelly-gen/src/lib.rs index 553d5b2..65a7700 100644 --- a/pb-jelly-gen/src/lib.rs +++ b/pb-jelly-gen/src/lib.rs @@ -8,7 +8,7 @@ //! You can include `pb-jelly-gen` in your Cargo project, by including it as a `[build-dependency]` in your `Cargo.toml` //! ```toml //! [build-dependencies] -//! pb-jelly-gen = "0.0.16" +//! pb-jelly-gen = "0.0.17" //! ``` //! //! Then from a [`build.rs`](https://doc.rust-lang.org/cargo/reference/build-scripts.html) script, use either the `GenProtos` builder struct, diff --git a/pb-jelly/Cargo.toml b/pb-jelly/Cargo.toml index c489f9a..1b3fb72 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.16" +version = "0.0.17" 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 76d9427..878ac94 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.16" +pb-jelly = "0.0.17" ``` 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 2a3a7f6..c47d5a3 100644 --- a/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected +++ b/pb-test/gen/pb-jelly/proto_google/Cargo.toml.expected @@ -6,4 +6,4 @@ edition = "2018" [dependencies] lazy_static = { version = "1.4.0" } -pb-jelly = { version = "0.0.16" } +pb-jelly = { version = "0.0.17" } 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 139fe9f..aa5b21c 100644 --- a/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected +++ b/pb-test/gen/pb-jelly/proto_nopackage/Cargo.toml.expected @@ -6,4 +6,4 @@ edition = "2018" [dependencies] lazy_static = { version = "1.4.0" } -pb-jelly = { version = "0.0.16" } +pb-jelly = { version = "0.0.17" } 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 aa30533..5a25df8 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.16" } +pb-jelly = { version = "0.0.17" } proto_google = { path = "../proto_google" } diff --git a/pb-test/pb_test_gen/Cargo.toml b/pb-test/pb_test_gen/Cargo.toml index 3ac00fe..e8e53c0 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.16" # If copying this example - use this +#pb-jelly-gen = "0.0.17" # If copying this example - use this pb-jelly-gen = { path = "../../pb-jelly-gen" } # only used when benchmarking PROST!