mobilecoinofficial / full-service

A MobileCoin service for wallet implementations.
Other
46 stars 21 forks source link

Update Rust crate prost to 0.13 #983

Open renovate[bot] opened 6 months ago

renovate[bot] commented 6 months ago

This PR contains the following updates:

Package Type Update Change
prost dependencies minor 0.11 -> 0.13

Release Notes

tokio-rs/prost (prost) ### [`v0.13.3`](https://redirect.github.com/tokio-rs/prost/blob/HEAD/CHANGELOG.md#Prost-version-0133) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.13.2...v0.13.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. ##### Features - *(prost-types)* Add `normalized` functions ([#​1158](https://redirect.github.com/tokio-rs/prost/issues/1158)) ##### Bug Fixes - *(prost-build)* Remove `derived(Copy)` on boxed fields ([#​1157](https://redirect.github.com/tokio-rs/prost/issues/1157)) ##### Documentation - *(prost-types)* Add description of using Any ([#​1141](https://redirect.github.com/tokio-rs/prost/issues/1141)) - *(prost-build)* Use `cargo add` in example ([#​1149](https://redirect.github.com/tokio-rs/prost/issues/1149)) ##### Styling - Use `Path::display()` when printing a path ([#​1150](https://redirect.github.com/tokio-rs/prost/issues/1150)) - `MessageGraph::new()` can't actually fail ([#​1151](https://redirect.github.com/tokio-rs/prost/issues/1151)) - *(generated-code)* Use `Self` in `as_str_name` ([#​1154](https://redirect.github.com/tokio-rs/prost/issues/1154)) ##### Testing - Actually test `skip_debug` for `prost::Oneof` ([#​1148](https://redirect.github.com/tokio-rs/prost/issues/1148)) - *(prost-build)* Validate error texts ([#​1152](https://redirect.github.com/tokio-rs/prost/issues/1152)) - *(prost-build)* Fix error texts ([#​1156](https://redirect.github.com/tokio-rs/prost/issues/1156)) ##### Build - Increase MSRV to 1.71.1 ([#​1135](https://redirect.github.com/tokio-rs/prost/issues/1135)) - *(deps)* Update pulldown-cmark to 0.12 and pulldown-cmark-to-cmark to 16 ([#​1144](https://redirect.github.com/tokio-rs/prost/issues/1144)) - *(protobuf)* Compile and install protoc on Windows ([#​1145](https://redirect.github.com/tokio-rs/prost/issues/1145)) - *(protobuf)* Use same `protoc` from same repo as .proto-files ([#​1136](https://redirect.github.com/tokio-rs/prost/issues/1136)) - *(deps)* Update pulldown-cmark-to-cmark from 16 to 17 ([#​1155](https://redirect.github.com/tokio-rs/prost/issues/1155)) - Unify assert on fixtures ([#​1142](https://redirect.github.com/tokio-rs/prost/issues/1142)) ### [`v0.13.2`](https://redirect.github.com/tokio-rs/prost/blob/HEAD/CHANGELOG.md#Prost-version-0132) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.13.1...v0.13.2) *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. #### Features - prost-build: Add protoc executable path to Config ([#​1126](https://redirect.github.com/tokio-rs/prost/issues/1126)) - prost-build: Extract file descriptor loading from compile_protos() ([#​1067](https://redirect.github.com/tokio-rs/prost/issues/1067)) #### Bug Fixes - prost-types: Fix date-time parsing ([#​1096](https://redirect.github.com/tokio-rs/prost/issues/1096)) - prost-types: '+' is not a numeric digit ([#​1104](https://redirect.github.com/tokio-rs/prost/issues/1104)) - prost-types: Converting DateTime to Timestamp is fallible ([#​1095](https://redirect.github.com/tokio-rs/prost/issues/1095)) - prost-types: Parse timestamp with long second fraction ([#​1106](https://redirect.github.com/tokio-rs/prost/issues/1106)) - prost-types: Format negative fractional duration ([#​1110](https://redirect.github.com/tokio-rs/prost/issues/1110)) - prost-types: Allow unknown local time offset ([#​1109](https://redirect.github.com/tokio-rs/prost/issues/1109)) #### Styling - Remove use of legacy numeric constants ([#​1089](https://redirect.github.com/tokio-rs/prost/issues/1089)) - Move encoding functions into separate modules ([#​1111](https://redirect.github.com/tokio-rs/prost/issues/1111)) - Remove needless borrow ([#​1122](https://redirect.github.com/tokio-rs/prost/issues/1122)) #### Testing - Add tests for public interface of DecodeError ([#​1120](https://redirect.github.com/tokio-rs/prost/issues/1120)) - Add `parse_date` fuzzing target ([#​1127](https://redirect.github.com/tokio-rs/prost/issues/1127)) - Fix build without std ([#​1134](https://redirect.github.com/tokio-rs/prost/issues/1134)) - Change some proptest to kani proofs ([#​1133](https://redirect.github.com/tokio-rs/prost/issues/1133)) - Add `parse_duration` fuzzing target ([#​1129](https://redirect.github.com/tokio-rs/prost/issues/1129)) - fuzz: Fix building of fuzzing targets ([#​1107](https://redirect.github.com/tokio-rs/prost/issues/1107)) - fuzz: Add fuzz targets to workspace ([#​1117](https://redirect.github.com/tokio-rs/prost/issues/1117)) #### Miscellaneous Tasks - Move old protobuf benchmark into prost ([#​1100](https://redirect.github.com/tokio-rs/prost/issues/1100)) - Remove allow clippy::derive_partial_eq_without_eq ([#​1115](https://redirect.github.com/tokio-rs/prost/issues/1115)) - Run `cargo test` without `all-targets` ([#​1118](https://redirect.github.com/tokio-rs/prost/issues/1118)) - dependabot: Add github actions ([#​1121](https://redirect.github.com/tokio-rs/prost/issues/1121)) - Update to cargo clippy version 1.80 ([#​1128](https://redirect.github.com/tokio-rs/prost/issues/1128)) #### Build - Use `proc-macro` in Cargo.toml ([#​1102](https://redirect.github.com/tokio-rs/prost/issues/1102)) - Ignore missing features in `tests` crates ([#​1101](https://redirect.github.com/tokio-rs/prost/issues/1101)) - Use separated build directory for protobuf ([#​1103](https://redirect.github.com/tokio-rs/prost/issues/1103)) - protobuf: Don't install unused test proto ([#​1116](https://redirect.github.com/tokio-rs/prost/issues/1116)) - protobuf: Use crate `cmake` ([#​1137](https://redirect.github.com/tokio-rs/prost/issues/1137)) - deps: Update devcontainer to Debian Bookworm release ([#​1114](https://redirect.github.com/tokio-rs/prost/issues/1114)) - deps: Bump actions/upload-artifact from 3 to 4 ([#​1123](https://redirect.github.com/tokio-rs/prost/issues/1123)) - deps: Bump baptiste0928/cargo-install from 2 to 3 ([#​1124](https://redirect.github.com/tokio-rs/prost/issues/1124)) - deps: bump model-checking/kani-github-action from 0.32 to 1.1 ([#​1125](https://redirect.github.com/tokio-rs/prost/issues/1125)) ### [`v0.13.1`](https://redirect.github.com/tokio-rs/prost/blob/HEAD/CHANGELOG.md#Prost-version-0131) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.13.0...v0.13.1) *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. #### Bug fixes - Enum variant named Error causes ambiguous item ([#​1098](https://redirect.github.com/tokio-rs/prost/issues/1098)) ### [`v0.13.0`](https://redirect.github.com/tokio-rs/prost/blob/HEAD/CHANGELOG.md#PROST-version-0130) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.6...v0.13.0) **note**: this version was yanked in favor of 0.13.1 *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. This major update brings new features and fixes: #### Breaking changes - derive Copy trait for messages where possible ([#​950](https://redirect.github.com/tokio-rs/prost/issues/950)) `prost-build` will automatically derive `trait Copy` for some messages. If you manually implement `Copy` you should remove your implementation. - Change generated functions signatures to remove type parameters ([#​1045](https://redirect.github.com/tokio-rs/prost/issues/1045)) The function signature of `trait Message` is changed to use `impl Buf` instead of a named generic type. If you implement `trait Message`, you should change the function signature. - Lightweight error value in TryFrom for enums ([#​1010](https://redirect.github.com/tokio-rs/prost/issues/1010)) When a `impl TryFrom` is generated by `prost` derive macros, it will now return the error type `UnknownEnumValue` instead of `DecodeError`. The new error can be used to retreive the integer value that failed to convert. #### Features - fix: Only touch include file if contents is changed ([#​1058](https://redirect.github.com/tokio-rs/prost/issues/1058)) Most generated files are untouched when the contents doesn't change. Use the same mechanism for include file as well. #### Dependencies - update env_logger requirement from 0.10 to 0.11 ([#​1074](https://redirect.github.com/tokio-rs/prost/issues/1074)) - update criterion requirement from 0.4 to 0.5 ([#​1071](https://redirect.github.com/tokio-rs/prost/issues/1071)) - Remove unused libz-sys ([#​1077](https://redirect.github.com/tokio-rs/prost/issues/1077)) - build(deps): update itertools requirement from >=0.10, <=0.12 to >=0.10, <=0.13 ([#​1070](https://redirect.github.com/tokio-rs/prost/issues/1070)) #### Documentation - better checking of tag duplicates, avoid discarding invalid variant errs ([#​951](https://redirect.github.com/tokio-rs/prost/issues/951)) - docs: Fix broken link warnings ([#​1056](https://redirect.github.com/tokio-rs/prost/issues/1056)) - Add missing LICENSE symlink ([#​1086](https://redirect.github.com/tokio-rs/prost/issues/1086)) #### Internal - workspace package metadata ([#​1036](https://redirect.github.com/tokio-rs/prost/issues/1036)) - fix: Build error due to merge conflict ([#​1068](https://redirect.github.com/tokio-rs/prost/issues/1068)) - build: Fix release scripts ([#​1055](https://redirect.github.com/tokio-rs/prost/issues/1055)) - chore: Add ci to check MSRV ([#​1057](https://redirect.github.com/tokio-rs/prost/issues/1057)) - ci: Add all tests pass job ([#​1069](https://redirect.github.com/tokio-rs/prost/issues/1069)) - ci: Add Dependabot ([#​957](https://redirect.github.com/tokio-rs/prost/issues/957)) - ci: Ensure both README are the same and prost version is correct ([#​1078](https://redirect.github.com/tokio-rs/prost/issues/1078)) - ci: Set rust version of clippy job to a fixed version ([#​1090](https://redirect.github.com/tokio-rs/prost/issues/1090)) ### [`v0.12.6`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.6) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.5...v0.12.6) *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. This patch update fixes a regression: - fix(prost-build): re-export `error_message_protoc_not_found`, `protoc_from_env` & `protoc_include_from_env` ([#​1063](https://redirect.github.com/tokio-rs/prost/issues/1063)) ### [`v0.12.5`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.5) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.4...v0.12.5) *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. This patch update brings new fixes: - fix: include_file should handle proto without package ([#​1002](https://redirect.github.com/tokio-rs/prost/issues/1002)) - Place Config::format behind the format feature flag - Handle keyword `Self` after stripping enum type prefix ([#​998](https://redirect.github.com/tokio-rs/prost/issues/998)) ##### Documentation - fix(readme): fix the link and badge for CI ([#​1049](https://redirect.github.com/tokio-rs/prost/issues/1049)) ##### Internal - style(codegen): `Syntax` to a separate file ([#​1029](https://redirect.github.com/tokio-rs/prost/issues/1029)) - chore(codegen): extract c string escaping to a separate file ([#​1028](https://redirect.github.com/tokio-rs/prost/issues/1028)) - style(prost-build): `CodeGenerator::boxed` method ([#​1019](https://redirect.github.com/tokio-rs/prost/issues/1019)) - style(prost-build): Consolidate field data into struct ([#​1017](https://redirect.github.com/tokio-rs/prost/issues/1017)) - style(prost-build): `BytesType and MapType` into a `collections` module. ([#​1030](https://redirect.github.com/tokio-rs/prost/issues/1030)) - style(prost-build): Split `Config` and `Module` into a separate module and files ([#​1020](https://redirect.github.com/tokio-rs/prost/issues/1020)) - style(prost-build): prost_path helper ([#​1018](https://redirect.github.com/tokio-rs/prost/issues/1018)) - style: Fix toml indent ([#​1048](https://redirect.github.com/tokio-rs/prost/issues/1048)) - style: Fix clippy warnings and enable clippy in CI ([#​1008](https://redirect.github.com/tokio-rs/prost/issues/1008)) - build: Use git submodule to download protobuf sources ([#​1014](https://redirect.github.com/tokio-rs/prost/issues/1014)) - ci: Add TOML validation with `taplo` ([#​1034](https://redirect.github.com/tokio-rs/prost/issues/1034)) - tests: Create a separate tempdir for each test ([#​1044](https://redirect.github.com/tokio-rs/prost/issues/1044)) - tests: Remove GoogleMessage3 and GoogleMessage4 benchmarks ([#​1037](https://redirect.github.com/tokio-rs/prost/issues/1037)) - chore: Update internal crates to Rust edition 2021 ([#​1039](https://redirect.github.com/tokio-rs/prost/issues/1039)) - chore: Update crate descriptions ([#​1038](https://redirect.github.com/tokio-rs/prost/issues/1038)) - chore: Fix clippy checks in CI ([#​1032](https://redirect.github.com/tokio-rs/prost/issues/1032)) - chore: Add Casper Meijn as author ([#​1025](https://redirect.github.com/tokio-rs/prost/issues/1025)) ### [`v0.12.4`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.4) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.3...v0.12.4) *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. This patch update brings new features and fixes: - Bump MSRV to 1.70 (minimum supported Rust version) - Rename cargo feature `prost-derive` to `derive` ([#​992](https://redirect.github.com/tokio-rs/prost/issues/992)) - Add [@​generated](https://redirect.github.com/generated) comment on top of generated files ([#​935](https://redirect.github.com/tokio-rs/prost/issues/935)) - Optimize implementation of prost::Name when generated by prost-build ([#​956](https://redirect.github.com/tokio-rs/prost/issues/956)) ##### Dependencies - build(deps): Allow itertools 0.12 ([#​948](https://redirect.github.com/tokio-rs/prost/issues/948)) - build(deps): Allow heck 0.5 ([#​1012](https://redirect.github.com/tokio-rs/prost/issues/1012)) - build(deps): Allow multimap 0.10 ([#​1013](https://redirect.github.com/tokio-rs/prost/issues/1013)) ##### Documentation - Improve protoc not found error message ([#​937](https://redirect.github.com/tokio-rs/prost/issues/937)) - build: Add development container config ([#​949](https://redirect.github.com/tokio-rs/prost/issues/949)) - docs: Fixed README typos ([#​952](https://redirect.github.com/tokio-rs/prost/issues/952) / [#​967](https://redirect.github.com/tokio-rs/prost/issues/967) / [#​970](https://redirect.github.com/tokio-rs/prost/issues/970)) ##### Internal - chore: Fix minimal versions ([#​920](https://redirect.github.com/tokio-rs/prost/issues/920)) - fix: fq_message_name should begin with one dot ([#​981](https://redirect.github.com/tokio-rs/prost/issues/981)) - improve encode_varint performance by bounding its loop ([#​940](https://redirect.github.com/tokio-rs/prost/issues/940)) - style: Remove duplicate function call ([#​989](https://redirect.github.com/tokio-rs/prost/issues/989)) - test: Improve test decode_varint_slow ([#​977](https://redirect.github.com/tokio-rs/prost/issues/977)) - chore: Add dep: prefix to feature dependencies ([#​919](https://redirect.github.com/tokio-rs/prost/issues/919)) - Minor clippy lint fixes. ([#​1006](https://redirect.github.com/tokio-rs/prost/issues/1006)) - chore: Use taiki-e/install-action to setup cargo-machete ([#​909](https://redirect.github.com/tokio-rs/prost/issues/909)) - chore: Remove which dependency. ([#​962](https://redirect.github.com/tokio-rs/prost/issues/962)) - chore: Update to actions/checkout@v4 ([#​910](https://redirect.github.com/tokio-rs/prost/issues/910)) ### [`v0.12.3`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.3) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.2...v0.12.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. This patch updates brings a few new fixes: - [Fix code generation for Name trait (](https://redirect.github.com/tokio-rs/prost/commit/acc1df83f73cda03c10722fbb739c7920b6b9048)[https://github.com/tokio-rs/prost/pull/944](https://redirect.github.com/tokio-rs/prost/pull/944)[)](https://redirect.github.com/tokio-rs/prost/commit/acc1df83f73cda03c10722fbb739c7920b6b9048) ### [`v0.12.2`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.2) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.1...v0.12.2) *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. This patch updates brings a few new features and fixes: - feat: Generate implementation for Name trait ([https://github.com/tokio-rs/prost/pull/931](https://redirect.github.com/tokio-rs/prost/pull/931)) - fix: generate Name::full_name properly ([https://github.com/tokio-rs/prost/pull/923](https://redirect.github.com/tokio-rs/prost/pull/923)) ### [`v0.12.1`](https://redirect.github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.12.0...v0.12.1) ### [`v0.12.0`](https://redirect.github.com/tokio-rs/prost/releases/tag/v0.12.0) [Compare Source](https://redirect.github.com/tokio-rs/prost/compare/v0.11.9...v0.12.0) *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. This patch updates brings a few new features and fixes: - Bump `syn` to version 2 - Bump MSRV to 1.64 - Added `TryFrom` for enums - Optional debug implementations - Initial generic `Any` and `Name` impl/traits.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] commented 6 months ago

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path full-service/Cargo.toml --workspace
    Updating crates.io index
error: failed to get `ledger-mob-apdu` as a dependency of package `ledger-mob v0.16.0 (/tmp/renovate/repos/github/mobilecoinofficial/full-service/ledger-mob/lib)`
    ... which satisfies path dependency `ledger-mob` (locked to 0.16.0) of package `mc-full-service v2.10.4 (/tmp/renovate/repos/github/mobilecoinofficial/full-service/full-service)`

Caused by:
  failed to load source for dependency `ledger-mob-apdu`

Caused by:
  Unable to update /tmp/renovate/repos/github/mobilecoinofficial/full-service/ledger-mob/apdu

Caused by:
  failed to parse manifest at `/tmp/renovate/repos/github/mobilecoinofficial/full-service/ledger-mob/apdu/Cargo.toml`

Caused by:
  the cargo feature `per-package-target` requires a nightly version of Cargo, but this is the `stable` channel
  See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
  See https://doc.rust-lang.org/cargo/reference/unstable.html#per-package-target for more information about using this feature.
codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.13%. Comparing base (ab2af32) to head (b683d37). Report is 212 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #983 +/- ## ========================================== + Coverage 60.12% 69.13% +9.01% ========================================== Files 88 125 +37 Lines 12356 16687 +4331 Branches 2010 2798 +788 ========================================== + Hits 7429 11537 +4108 - Misses 3238 5150 +1912 + Partials 1689 0 -1689 ``` | [Flag](https://app.codecov.io/gh/mobilecoinofficial/full-service/pull/983/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mobilecoinofficial) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/mobilecoinofficial/full-service/pull/983/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mobilecoinofficial) | `69.13% <ø> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mobilecoinofficial#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.