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

Vendor and patch Prost #1200

Closed
wants to merge 3 commits into from
Closed

Conversation

wildarch
Copy link
Contributor

Vendors https://github.com/danburkert/prost into third_party and applies a patch that will help pass handles in protobuf messages. for context, see #673.

This PR also includes a script that can be used to vendor prost and apply the patch to make it easier to maintain.

This is the first of a set of PRs that together provide the same functionality as #1108, but introduced in smaller portions.

Checklist

  • Pull request affects core Oak functionality (e.g. runtime, SDK, ABI)
    • I have written tests that cover the code changes.
    • I have checked that these tests are run by
      Cloudbuild
    • I have updated documentation accordingly.
    • I have raised an issue to
      cover any TODOs and/or unfinished work.
  • Pull request includes prototype/experimental work that is under
    construction.

The patch adds functionality to prost so we can pass handles in
protobufs.
Taken from https://github.com/danburkert/prost at commit
80256277997975948d257faf3f35c2890bf12787 ("prost-build: fix compilation
error when using --no-default-features").

Full repo with prost/prost-build/third_party removed.

To reproduce this commit, run `./scripts/vendor_prost.sh -c`.

Tests are passing with `PROTOC=/usr/bin/protoc cargo test`. Note the
PROTOC environment variable must be set because the bundled protobuf has
been removed.
patch file: `third_party/prost-0001-Patch-to-generate-typesafe-Sender-and-Receiver.patch`

To reproduce this commit, run `./script/vendor_prost.sh`.
@wildarch
Copy link
Contributor Author

@daviddrysdale @tiziano88 as mentioned in #1108 (comment)

@wildarch wildarch mentioned this pull request Jun 26, 2020
6 tasks
@wildarch
Copy link
Contributor Author

Closing this in favor of #1199.

@wildarch wildarch closed this Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants