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

rust: add tonic-reflection dependency #4871

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

wchargin
Copy link
Contributor

@wchargin wchargin commented Apr 14, 2021

Summary:
The tonic-reflection crate implements the gRPC reflection protocol,
and will enable us to significantly simplify grpc_cli usage.

Reflection was released in Tonic v0.4.1, so this patch also upgrades the
rest of our Tonic stack to the latest versions.

Test Plan:
It builds: bazel build //tensorboard/data/server/cargo:tonic_reflection.

wchargin-branch: rust-dep-tonic-reflection

Summary:
The [`tonic-reflection`] crate implements the gRPC reflection protocol,
and will enable us to significantly simplify `grpc_cli` usage.

Reflection was released in Tonic v0.4.1, so this patch also upgrades the
rest of our Tonic stack to the latest versions.

Test Plan:
It builds: `bazel build //tensorboard/data/server/cargo:tonic_reflection`.

wchargin-branch: rust-dep-tonic-reflection
wchargin-source: 2a449d629fc231d697c82171c413000f1f09e645
@wchargin wchargin added type:build/install dependencies Pull requests that update a dependency file core:rustboard //tensorboard/data/server/... labels Apr 14, 2021
@google-cla google-cla bot added the cla: yes label Apr 14, 2021
@wchargin
Copy link
Contributor Author

(Sorry, this was meant to precede #4870, and does precede it in topological order.)

…ript]

wchargin-branch: rust-dep-tonic-reflection
wchargin-source: 1ce18e320ee4fb02d22b5e73656dd0bc7d08109d
@wchargin wchargin requested a review from nfelt April 15, 2021 00:23

[package.metadata.raze.crates.tonic-reflection.'0.1.0'.buildrs_additional_environment_variables]
PROTOC = "$(execpath @com_google_protobuf//:protoc)"
# we don't have easy access to a rustfmt binary, so make it a no-op
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth dropping a link to bazelbuild/rules_rust#87 in case this someday is easier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. For additional reference, bazelbuild/rules_rust#479 is also worth
knowing about, but not directly relevant to this comment.

wchargin-branch: rust-dep-tonic-reflection
wchargin-source: ae8bd60c1c2bbc0b8e3c03081f8e9387bf391651
@wchargin wchargin merged commit ec3d6cb into master Apr 16, 2021
@wchargin wchargin deleted the wchargin-rust-dep-tonic-reflection branch April 16, 2021 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes core:rustboard //tensorboard/data/server/... dependencies Pull requests that update a dependency file type:build/install
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants