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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ jobs:
with:
toolchain: ${{ matrix.rust_version }}
default: true
components: rustfmt
- name: 'Install Python packaging deps'
run: |
python -m pip install -U pip
Expand Down
34 changes: 25 additions & 9 deletions tensorboard/data/server/Cargo.lock

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

15 changes: 13 additions & 2 deletions tensorboard/data/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ serde_json = "1.0.59"
thiserror = "1.0.21"
tokio = { version = "1.0.2", features = ["macros", "rt-multi-thread"] }
tokio-stream = { version = "0.1.2", features = ["net"] }
tonic = "0.4.0"
tonic = "0.4.2"
tonic-reflection = "0.1.0"
walkdir = "2.3.1"

[dev-dependencies]
prost-build = "0.7.0"
tempfile = "3.1.0"
tonic-build = "0.4.0"
tonic-build = "0.4.2"

[[bin]]
name = "rustboard"
Expand Down Expand Up @@ -113,3 +114,13 @@ additional_flags = [

[package.metadata.raze.crates.prost-build.'0.7.0']
gen_buildrs = true

[package.metadata.raze.crates.tonic-reflection.'0.1.0']
gen_buildrs = true
build_data_dependencies = ["@com_google_protobuf//:protoc"]

[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.
# https://github.com/bazelbuild/rules_rust/issues/87
RUSTFMT = "/bin/true"
13 changes: 11 additions & 2 deletions tensorboard/data/server/cargo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ alias(

alias(
name = "tonic",
actual = "@raze__tonic__0_4_0//:tonic",
actual = "@raze__tonic__0_4_2//:tonic",
tags = [
"cargo-raze",
"manual",
Expand All @@ -239,7 +239,16 @@ alias(

alias(
name = "tonic_build",
actual = "@raze__tonic_build__0_4_0//:tonic_build",
actual = "@raze__tonic_build__0_4_2//:tonic_build",
tags = [
"cargo-raze",
"manual",
],
)

alias(
name = "tonic_reflection",
actual = "@raze__tonic_reflection__0_1_0//:tonic_reflection",
tags = [
"cargo-raze",
"manual",
Expand Down
2 changes: 1 addition & 1 deletion tensorboard/data/server/tensorboard.data.pb.rs

Large diffs are not rendered by default.

50 changes: 30 additions & 20 deletions third_party/rust/crates.bzl

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

2 changes: 1 addition & 1 deletion third_party/rust/remote/BUILD.h2-0.3.0.bazel

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

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

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

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

95 changes: 95 additions & 0 deletions third_party/rust/remote/BUILD.tonic-reflection-0.1.0.bazel

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

Loading