Skip to content

Commit

Permalink
rust: add tonic dependency stack (#4316)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wchargin authored Nov 12, 2020
1 parent e90b53b commit 15ff62f
Show file tree
Hide file tree
Showing 75 changed files with 5,922 additions and 2 deletions.
722 changes: 720 additions & 2 deletions tensorboard/data/server/Cargo.lock

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions tensorboard/data/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-stream = "0.3.0"
async-trait = "0.1.41"
byteorder = "1.3.4"
crc = "1.8.1"
futures-core = "0.3.6"
prost = "0.6.1"
rand = "0.7.3"
rand_chacha = "0.2.2"
tokio = { version = "0.2.2", features = ["macros"] }
tonic = "0.3.1"

[dev-dependencies]
prost-build = "0.6.1"
tonic-build = "0.3.1"

[[bin]]
name = "rustboard"
Expand All @@ -51,6 +57,11 @@ targets = [
[package.metadata.raze.crates.crc.'1.8.1']
gen_buildrs = true

[package.metadata.raze.crates.libc.'0.2.80']
additional_flags = [
"--cfg=libc_align",
]

[package.metadata.raze.crates.indexmap.'1.6.0']
additional_flags = [
"--cfg=has_std",
Expand Down
54 changes: 54 additions & 0 deletions third_party/rust/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 15ff62f

Please sign in to comment.