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 dependency stack #4316

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Conversation

wchargin
Copy link
Contributor

Summary:
This includes: tonic, a gRPC framework; tonic-build, its compiler
for protobuf bindings; tokio, an async runtime; and async-stream,
async-trait, and futures-core, helpers for streaming gRPC methods.

Test Plan:
All crates build without any manual configuration:

bazel build //third_party/rust:{tonic{,_build},tokio,async_{stream,trait},futures_core}

wchargin-branch: rust-dep-tonic-stack

Summary:
This includes: `tonic`, a gRPC framework; `tonic-build`, its compiler
for protobuf bindings; `tokio`, an async runtime; and `async-stream`,
`async-trait`, and `futures-core`, helpers for streaming gRPC methods.

Test Plan:
All crates build without any manual configuration:

```
bazel build //third_party/rust:{tonic{,_build},tokio,async_{stream,trait},futures_core}
```

wchargin-branch: rust-dep-tonic-stack
wchargin-source: 0fa8ea005745e7194bde20da6fb1b9871c05822a
@wchargin wchargin added dependencies Pull requests that update a dependency file core:rustboard //tensorboard/data/server/... labels Nov 11, 2020
@google-cla google-cla bot added the cla: yes label Nov 11, 2020
@wchargin wchargin merged commit 15ff62f into master Nov 12, 2020
@wchargin wchargin deleted the wchargin-rust-dep-tonic-stack branch November 12, 2020 02:24
wchargin added a commit that referenced this pull request Nov 17, 2020
Summary:
When setting up the transitive dep on `libc` in #4316, I had originally
passed `--cfg=libc_align`, because that fixed the build for me and on
CI, and I couldn’t figure out the right cross-platform fix. But @faern
[helpfully points out that we just need to run the build script][1],
which detects the OS and Rust compiler version to determine the
appropriate flags. Bazel `rules_rust` can handle this, if we just ask.

(I should have followed my own `DEVELOPMENT.md` suggestions!)

[1]: rust-lang/socket2#130 (comment)

Test Plan:
It still builds—`bazel build @raze__libc__0_2_80//:libc`—and the demo
server still works and accepts requests following #4318’s test plan.

wchargin-branch: rust-libc-gen-buildrs
wchargin-source: 4ddff8d0b822585a9e84c7a24c4577b97b9c5d6a
wchargin added a commit that referenced this pull request Nov 17, 2020
Summary:
When setting up the transitive dep on `libc` in #4316, I had originally
passed `--cfg=libc_align`, because that fixed the build for me and on
CI, and I couldn’t figure out the right cross-platform fix. But @faern
[helpfully points out that we just need to run the build script][1],
which detects the OS and Rust compiler version to determine the
appropriate flags. Bazel `rules_rust` can handle this, if we just ask.

(I should have followed my own `DEVELOPMENT.md` suggestions!)

[1]: rust-lang/socket2#130 (comment)

Test Plan:
It still builds—`bazel build @raze__libc__0_2_80//:libc`—and the demo
server still works and accepts requests following #4318’s test plan.

wchargin-branch: rust-libc-gen-buildrs
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants