diff --git a/CHANGELOG.md b/CHANGELOG.md index 7db2a96..fdc3fa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,21 @@ # Unreleased ... everything has been released! +# 0.0.15 +### Dec 14, 2023 +* Improve handling of recursive types (#157) + * In particular, recursive types now implement `Eq`/`Hash`/etc. if possible. +* Reduce the amount of generated code (#158) + # 0.0.14 -## Oct 27, 2023 +### 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 +### Oct 12, 2023 * Add `rustdoc::` prefix to `#[allow(broken_intra_doc_links)]` (#148) # 0.0.12 diff --git a/README.md b/README.md index a8e9f94..edbd33e 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.14" +pb-jelly = "0.0.15" ``` ##### `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.14" +pb-jelly-gen = "0.0.15" ``` 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 3f5b342..46e9c30 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.14" +pb-jelly = "0.0.15" 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 7d4f589..a7db02a 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.14" # If copying this example - use this +#pb-jelly-gen = "0.0.15" # 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 0956e3e..52b6580 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.14" +version = "0.0.15" 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 484990f..d33fa23 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.14" +pb-jelly-gen = "0.0.15" ``` ##### `build.rs` diff --git a/pb-jelly-gen/codegen/codegen.py b/pb-jelly-gen/codegen/codegen.py index 562d57d..3e4d13d 100755 --- a/pb-jelly-gen/codegen/codegen.py +++ b/pb-jelly-gen/codegen/codegen.py @@ -1992,7 +1992,7 @@ def get_cargo_toml_file( versions = { "lazy_static": ' version = "1.4.0" ', - "pb-jelly": ' version = "0.0.14" ', + "pb-jelly": ' version = "0.0.15" ', "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 01894a5..811f130 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.14" +version = "0.0.15" description = "Generate rust bindings from protobuf specs" keywords = ["rust", "proto", "dropbox"] license = { text = "Apache License 2.0" } diff --git a/pb-jelly/Cargo.toml b/pb-jelly/Cargo.toml index 8b8b7c1..807fa7d 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.14" +version = "0.0.15" 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 42c824a..b017349 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.14" +pb-jelly = "0.0.15" ``` 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 ea6c165..53b583c 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.14" } +pb-jelly = { version = "0.0.15" } 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 43524fe..176660e 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.14" } +pb-jelly = { version = "0.0.15" } 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 b6c29f5..7e44646 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.14" } +pb-jelly = { version = "0.0.15" } proto_google = {path = "../proto_google"} diff --git a/pb-test/pb_test_gen/Cargo.toml b/pb-test/pb_test_gen/Cargo.toml index 6bc2900..a1829c9 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.14" # If copying this example - use this +#pb-jelly-gen = "0.0.15" # If copying this example - use this pb-jelly-gen = { path = "../../pb-jelly-gen" } # only used when benchmarking PROST!