Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade #5

Merged
merged 18 commits into from
Sep 7, 2023
Merged

Upgrade #5

merged 18 commits into from
Sep 7, 2023

Conversation

Jasperav
Copy link
Owner

@Jasperav Jasperav commented Sep 7, 2023

No description provided.

Yoshiki Takashima and others added 18 commits July 24, 2023 10:17
* Enable 1 more harness.

* Upgrade Kani version.

* Fix version
* Don't ignore errors in prost_attrs

* Update prost-derive to syn 2

* Bump msrv to 1.63

---------

Co-authored-by: Lucio Franco <[email protected]>
Signed-off-by: Alexander Seiler <[email protected]>
Co-authored-by: Lucio Franco <[email protected]>
Depend on itertools >=0.10, <0.12

Co-authored-by: Lucio Franco <[email protected]>
…s#891)

The `Message` derive macro currently generates `Debug` implementations
that contain code that violates the `non_snake_case` linter rule[^1].

This commit changes the macro expansion to add an `#[allow(...)]`
attribute for this rule.

[^1]: https://doc.rust-lang.org/stable/nightly-rustc/rustc_lint/nonstandard_style/static.NON_SNAKE_CASE.html

Co-authored-by: Lucio Franco <[email protected]>
* chore: Fix yaml indent

* chore: Replace arduino/setup-protoc with taiki-e/install-action

* chore: Remove unused git submodule

* chore: Remove outdated disabled ci job

* chore: Refactor ci job step name

* chore: Replace seanmiddleditch/gha-setup-ninja with in-tree action

* chore: Change ci name short

---------

Co-authored-by: Lucio Franco <[email protected]>
…ts (tokio-rs#851)

* feat(prost-build): do not escape brackets followed by parenthesis or bracket in comments

* feat(prost-build): do not escape already escaped brackets in doc comments

* fix(boostrap-test): only escape brackets once

---------

Co-authored-by: Lucio Franco <[email protected]>
* Make Debug impl optional on derive(Message)

* Config to optionally skip debug for messages

* Inline things again

* Put more things behind if

* Optionally skip debug in oneofs too

* Optionally skip debug for all types

* fixup! Optionally skip debug for all types

* Fix merge

* Remove superfluous push_indent

* Add some tests for the macro property

* Fix test

* Test generated protobuf

* Unconditional Debug

* Import

---------

Co-authored-by: Lucio Franco <[email protected]>
* feat: `Name` trait + `Any` encoding support

As discussed in tokio-rs#299 and tokio-rs#858, adds a `Name` trait which associates a
type name and package constants with a `Message` type.
It also provides `full_name` and `type_url` methods.

The `type_url` method is used by newly added methods on the `Any` type
which can be used for decoding/encoding messages:

- `Any::from_msg`: encodes a given `Message`, returning `Any`.
- `Any::to_msg`: decodes `Any::value` as the given `Message`, first
  validating the message type has the expected type URL.

* Add private `TypeUrl` type

Implements the basic rules for parsing type URLs as documented in:

https://github.com/protocolbuffers/protobuf/blob/a281c13/src/google/protobuf/any.proto#L129C2-L156C50

Notably this extracts the final path segment of the URL which contains
the full name of the type, and uses that for type comparisons.

* CI: bump test toolchain to 1.64

This is the MSRV of `petgraph` now:

error: package `petgraph v0.6.4` cannot be built because it requires rustc 1.64 or newer, while the currently active rustc version is 1.63.0

* Add `Name` impls for well-known protobuf types

Also adds tests for `Any::{from_msg, to_msg}`.

* Fix no_std

---------

Co-authored-by: Lucio Franco <[email protected]>
# Conflicts:
#	.github/workflows/ci.yml
#	Cargo.toml
#	prost-build/src/lib.rs
#	prost-derive/Cargo.toml
#	prost-derive/src/field/mod.rs
#	prost-derive/src/lib.rs
@Jasperav Jasperav merged commit 96622ad into master Sep 7, 2023
@Jasperav Jasperav deleted the upgrade branch September 7, 2023 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.