From f3544edd4b9c11bf00c51f7c6e12215c4630e234 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 15:48:34 -0800 Subject: [PATCH 1/7] rust: add `tonic` dependency 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 --- tensorboard/data/server/Cargo.lock | 722 +++++++++++++++++- tensorboard/data/server/Cargo.toml | 11 + third_party/rust/BUILD.bazel | 54 ++ third_party/rust/crates.bzl | 670 ++++++++++++++++ .../remote/BUILD.async-stream-0.2.1.bazel | 64 ++ .../remote/BUILD.async-stream-0.3.0.bazel | 64 ++ .../BUILD.async-stream-impl-0.2.1.bazel | 55 ++ .../BUILD.async-stream-impl-0.3.0.bazel | 55 ++ .../remote/BUILD.async-trait-0.1.41.bazel | 59 ++ .../rust/remote/BUILD.base64-0.12.3.bazel | 66 ++ .../rust/remote/BUILD.bitflags-1.2.1.bazel | 55 ++ third_party/rust/remote/BUILD.fnv-1.0.7.bazel | 54 ++ .../remote/BUILD.fuchsia-zircon-0.3.3.bazel | 54 ++ .../BUILD.fuchsia-zircon-sys-0.3.3.bazel | 54 ++ .../remote/BUILD.futures-channel-0.3.8.bazel | 66 ++ .../remote/BUILD.futures-core-0.3.8.bazel | 55 ++ .../remote/BUILD.futures-sink-0.3.8.bazel | 55 ++ .../remote/BUILD.futures-task-0.3.8.bazel | 53 ++ .../remote/BUILD.futures-util-0.3.8.bazel | 59 ++ third_party/rust/remote/BUILD.h2-0.2.7.bazel | 70 ++ .../rust/remote/BUILD.http-0.2.1.bazel | 69 ++ .../rust/remote/BUILD.http-body-0.3.1.bazel | 56 ++ .../rust/remote/BUILD.httparse-1.3.4.bazel | 60 ++ .../rust/remote/BUILD.httpdate-0.3.2.bazel | 52 ++ .../rust/remote/BUILD.hyper-0.13.9.bazel | 131 ++++ .../rust/remote/BUILD.iovec-0.1.4.bazel | 63 ++ .../rust/remote/BUILD.itoa-0.4.6.bazel | 58 ++ .../remote/BUILD.kernel32-sys-0.2.2.bazel | 64 ++ .../rust/remote/BUILD.lazy_static-1.4.0.bazel | 56 ++ .../rust/remote/BUILD.libc-0.2.80.bazel | 2 + .../rust/remote/BUILD.memchr-2.3.4.bazel | 56 ++ .../rust/remote/BUILD.mio-0.6.22.bazel | 82 ++ .../rust/remote/BUILD.miow-0.2.1.bazel | 56 ++ .../rust/remote/BUILD.net2-0.2.35.bazel | 74 ++ .../remote/BUILD.percent-encoding-2.1.0.bazel | 52 ++ .../remote/BUILD.pin-project-0.4.27.bazel | 103 +++ .../rust/remote/BUILD.pin-project-1.0.1.bazel | 97 +++ .../BUILD.pin-project-internal-0.4.27.bazel | 57 ++ .../BUILD.pin-project-internal-1.0.1.bazel | 55 ++ .../BUILD.pin-project-lite-0.1.11.bazel | 60 ++ .../rust/remote/BUILD.pin-utils-0.1.0.bazel | 56 ++ .../rust/remote/BUILD.rand-0.7.3.bazel | 3 + .../rust/remote/BUILD.rand_pcg-0.2.1.bazel | 59 ++ .../rust/remote/BUILD.slab-0.4.2.bazel | 54 ++ .../rust/remote/BUILD.socket2-0.3.16.bazel | 72 ++ .../rust/remote/BUILD.syn-1.0.48.bazel | 2 + .../rust/remote/BUILD.tokio-0.2.22.bazel | 293 +++++++ .../remote/BUILD.tokio-macros-0.2.6.bazel | 55 ++ .../rust/remote/BUILD.tokio-util-0.3.1.bazel | 72 ++ .../rust/remote/BUILD.tonic-0.3.1.bazel | 94 +++ .../rust/remote/BUILD.tonic-build-0.3.1.bazel | 61 ++ .../rust/remote/BUILD.tower-0.3.1.bazel | 67 ++ .../remote/BUILD.tower-balance-0.3.0.bazel | 70 ++ .../remote/BUILD.tower-buffer-0.3.0.bazel | 61 ++ .../remote/BUILD.tower-discover-0.3.0.bazel | 55 ++ .../rust/remote/BUILD.tower-layer-0.3.0.bazel | 52 ++ .../rust/remote/BUILD.tower-limit-0.3.1.bazel | 62 ++ .../rust/remote/BUILD.tower-load-0.3.0.bazel | 58 ++ .../remote/BUILD.tower-load-shed-0.3.0.bazel | 58 ++ .../rust/remote/BUILD.tower-make-0.3.0.bazel | 56 ++ .../BUILD.tower-ready-cache-0.3.1.bazel | 60 ++ .../rust/remote/BUILD.tower-retry-0.3.0.bazel | 59 ++ .../remote/BUILD.tower-service-0.3.0.bazel | 52 ++ .../remote/BUILD.tower-timeout-0.3.0.bazel | 56 ++ .../rust/remote/BUILD.tower-util-0.3.1.bazel | 63 ++ .../rust/remote/BUILD.tracing-0.1.21.bazel | 90 +++ .../BUILD.tracing-attributes-0.1.11.bazel | 73 ++ .../remote/BUILD.tracing-core-0.1.17.bazel | 61 ++ .../remote/BUILD.tracing-futures-0.2.4.bazel | 62 ++ .../rust/remote/BUILD.try-lock-0.2.3.bazel | 52 ++ .../rust/remote/BUILD.want-0.3.0.bazel | 56 ++ .../rust/remote/BUILD.winapi-0.2.8.bazel | 52 ++ .../rust/remote/BUILD.winapi-0.3.9.bazel | 5 + .../remote/BUILD.winapi-build-0.1.1.bazel | 61 ++ .../rust/remote/BUILD.ws2_32-sys-0.2.1.bazel | 64 ++ 75 files changed, 5922 insertions(+), 2 deletions(-) create mode 100644 third_party/rust/remote/BUILD.async-stream-0.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.async-stream-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.async-stream-impl-0.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.async-stream-impl-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.async-trait-0.1.41.bazel create mode 100644 third_party/rust/remote/BUILD.base64-0.12.3.bazel create mode 100644 third_party/rust/remote/BUILD.bitflags-1.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.fnv-1.0.7.bazel create mode 100644 third_party/rust/remote/BUILD.fuchsia-zircon-0.3.3.bazel create mode 100644 third_party/rust/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel create mode 100644 third_party/rust/remote/BUILD.futures-channel-0.3.8.bazel create mode 100644 third_party/rust/remote/BUILD.futures-core-0.3.8.bazel create mode 100644 third_party/rust/remote/BUILD.futures-sink-0.3.8.bazel create mode 100644 third_party/rust/remote/BUILD.futures-task-0.3.8.bazel create mode 100644 third_party/rust/remote/BUILD.futures-util-0.3.8.bazel create mode 100644 third_party/rust/remote/BUILD.h2-0.2.7.bazel create mode 100644 third_party/rust/remote/BUILD.http-0.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.http-body-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.httparse-1.3.4.bazel create mode 100644 third_party/rust/remote/BUILD.httpdate-0.3.2.bazel create mode 100644 third_party/rust/remote/BUILD.hyper-0.13.9.bazel create mode 100644 third_party/rust/remote/BUILD.iovec-0.1.4.bazel create mode 100644 third_party/rust/remote/BUILD.itoa-0.4.6.bazel create mode 100644 third_party/rust/remote/BUILD.kernel32-sys-0.2.2.bazel create mode 100644 third_party/rust/remote/BUILD.lazy_static-1.4.0.bazel create mode 100644 third_party/rust/remote/BUILD.memchr-2.3.4.bazel create mode 100644 third_party/rust/remote/BUILD.mio-0.6.22.bazel create mode 100644 third_party/rust/remote/BUILD.miow-0.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.net2-0.2.35.bazel create mode 100644 third_party/rust/remote/BUILD.percent-encoding-2.1.0.bazel create mode 100644 third_party/rust/remote/BUILD.pin-project-0.4.27.bazel create mode 100644 third_party/rust/remote/BUILD.pin-project-1.0.1.bazel create mode 100644 third_party/rust/remote/BUILD.pin-project-internal-0.4.27.bazel create mode 100644 third_party/rust/remote/BUILD.pin-project-internal-1.0.1.bazel create mode 100644 third_party/rust/remote/BUILD.pin-project-lite-0.1.11.bazel create mode 100644 third_party/rust/remote/BUILD.pin-utils-0.1.0.bazel create mode 100644 third_party/rust/remote/BUILD.rand_pcg-0.2.1.bazel create mode 100644 third_party/rust/remote/BUILD.slab-0.4.2.bazel create mode 100644 third_party/rust/remote/BUILD.socket2-0.3.16.bazel create mode 100644 third_party/rust/remote/BUILD.tokio-0.2.22.bazel create mode 100644 third_party/rust/remote/BUILD.tokio-macros-0.2.6.bazel create mode 100644 third_party/rust/remote/BUILD.tokio-util-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tonic-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tonic-build-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tower-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tower-balance-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-buffer-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-discover-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-layer-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-limit-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tower-load-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-load-shed-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-make-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-ready-cache-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tower-retry-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-service-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-timeout-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.tower-util-0.3.1.bazel create mode 100644 third_party/rust/remote/BUILD.tracing-0.1.21.bazel create mode 100644 third_party/rust/remote/BUILD.tracing-attributes-0.1.11.bazel create mode 100644 third_party/rust/remote/BUILD.tracing-core-0.1.17.bazel create mode 100644 third_party/rust/remote/BUILD.tracing-futures-0.2.4.bazel create mode 100644 third_party/rust/remote/BUILD.try-lock-0.2.3.bazel create mode 100644 third_party/rust/remote/BUILD.want-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.winapi-0.2.8.bazel create mode 100644 third_party/rust/remote/BUILD.winapi-build-0.1.1.bazel create mode 100644 third_party/rust/remote/BUILD.ws2_32-sys-0.2.1.bazel diff --git a/tensorboard/data/server/Cargo.lock b/tensorboard/data/server/Cargo.lock index 2337332984..26d44e295c 100644 --- a/tensorboard/data/server/Cargo.lock +++ b/tensorboard/data/server/Cargo.lock @@ -6,12 +6,77 @@ version = "1.0.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7" +[[package]] +name = "async-stream" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22068c0c19514942eefcfd4daf8976ef1aad84e61539f95cd200c35202f80af5" +dependencies = [ + "async-stream-impl 0.2.1", + "futures-core", +] + +[[package]] +name = "async-stream" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3670df70cbc01729f901f94c887814b3c68db038aad1329a418bae178bc5295c" +dependencies = [ + "async-stream-impl 0.3.0", + "futures-core", +] + +[[package]] +name = "async-stream-impl" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25f9db3b38af870bf7e5cc649167533b493928e50744e2c30ae350230b414670" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-stream-impl" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3548b8efc9f8e8a5a0a2808c5bd8451a9031b9e5b879a79590304ae928b0a70" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-trait" +version = "0.1.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b246867b8b3b6ae56035f1eb1ed557c1d8eae97f0d53696138a50fa0e3a3b8c0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "autocfg" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "bitflags" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" + [[package]] name = "build_const" version = "0.2.1" @@ -57,6 +122,67 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "fuchsia-zircon" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" +dependencies = [ + "bitflags", + "fuchsia-zircon-sys", +] + +[[package]] +name = "fuchsia-zircon-sys" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" + +[[package]] +name = "futures-channel" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" + +[[package]] +name = "futures-sink" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" + +[[package]] +name = "futures-task" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" + +[[package]] +name = "futures-util" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" +dependencies = [ + "futures-core", + "futures-task", + "pin-project 1.0.1", + "pin-utils", +] + [[package]] name = "getrandom" version = "0.1.15" @@ -68,6 +194,26 @@ dependencies = [ "wasi", ] +[[package]] +name = "h2" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", + "tracing-futures", +] + [[package]] name = "hashbrown" version = "0.9.1" @@ -83,6 +229,63 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "http" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "httparse" +version = "1.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" + +[[package]] +name = "httpdate" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" + +[[package]] +name = "hyper" +version = "0.13.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project 1.0.1", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + [[package]] name = "indexmap" version = "1.6.0" @@ -93,6 +296,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "iovec" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" +dependencies = [ + "libc", +] + [[package]] name = "itertools" version = "0.8.2" @@ -102,6 +314,28 @@ dependencies = [ "either", ] +[[package]] +name = "itoa" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" + +[[package]] +name = "kernel32-sys" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" +dependencies = [ + "winapi 0.2.8", + "winapi-build", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + [[package]] name = "libc" version = "0.2.80" @@ -117,12 +351,66 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "memchr" +version = "2.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" + +[[package]] +name = "mio" +version = "0.6.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" +dependencies = [ + "cfg-if", + "fuchsia-zircon", + "fuchsia-zircon-sys", + "iovec", + "kernel32-sys", + "libc", + "log", + "miow", + "net2", + "slab", + "winapi 0.2.8", +] + +[[package]] +name = "miow" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" +dependencies = [ + "kernel32-sys", + "net2", + "winapi 0.2.8", + "ws2_32-sys", +] + [[package]] name = "multimap" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" +[[package]] +name = "net2" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ebc3ec692ed7c9a255596c67808dee269f64655d8baf7b4f0638e51ba1d6853" +dependencies = [ + "cfg-if", + "libc", + "winapi 0.3.9", +] + +[[package]] +name = "percent-encoding" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" + [[package]] name = "petgraph" version = "0.5.1" @@ -133,6 +421,58 @@ dependencies = [ "indexmap", ] +[[package]] +name = "pin-project" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" +dependencies = [ + "pin-project-internal 0.4.27", +] + +[[package]] +name = "pin-project" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841" +dependencies = [ + "pin-project-internal 1.0.1", +] + +[[package]] +name = "pin-project-internal" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-internal" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81a4ffa594b66bff340084d4081df649a7dc049ac8d7fc458d8e628bfbbb2f86" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + [[package]] name = "ppv-lite86" version = "0.2.10" @@ -219,6 +559,7 @@ dependencies = [ "rand_chacha", "rand_core", "rand_hc", + "rand_pcg", ] [[package]] @@ -249,6 +590,15 @@ dependencies = [ "rand_core", ] +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core", +] + [[package]] name = "redox_syscall" version = "0.1.57" @@ -261,19 +611,43 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ - "winapi", + "winapi 0.3.9", ] [[package]] name = "rustboard" version = "0.1.0" dependencies = [ + "async-stream 0.3.0", + "async-trait", "byteorder", "crc", + "futures-core", "prost", "prost-build", "rand", "rand_chacha", + "tokio", + "tonic", + "tonic-build", +] + +[[package]] +name = "slab" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" + +[[package]] +name = "socket2" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "winapi 0.3.9", ] [[package]] @@ -298,9 +672,321 @@ dependencies = [ "rand", "redox_syscall", "remove_dir_all", - "winapi", + "winapi 0.3.9", +] + +[[package]] +name = "tokio" +version = "0.2.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d34ca54d84bf2b5b4d7d31e901a8464f7b60ac145a284fba25ceb801f2ddccd" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "iovec", + "lazy_static", + "memchr", + "mio", + "pin-project-lite", + "slab", + "tokio-macros", +] + +[[package]] +name = "tokio-macros" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-util" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "log", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tonic" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74a5d6e7439ecf910463667080de772a9c7ddf26bc9fb4f3252ac3862e43337d" +dependencies = [ + "async-stream 0.2.1", + "async-trait", + "base64", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "hyper", + "percent-encoding", + "pin-project 0.4.27", + "prost", + "prost-derive", + "tokio", + "tokio-util", + "tower", + "tower-balance", + "tower-load", + "tower-make", + "tower-service", + "tracing", + "tracing-futures", +] + +[[package]] +name = "tonic-build" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19970cf58f3acc820962be74c4021b8bbc8e8a1c4e3a02095d0aa60cde5f3633" +dependencies = [ + "proc-macro2", + "prost-build", + "quote", + "syn", +] + +[[package]] +name = "tower" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3169017c090b7a28fce80abaad0ab4f5566423677c9331bb320af7e49cfe62" +dependencies = [ + "futures-core", + "tower-buffer", + "tower-discover", + "tower-layer", + "tower-limit", + "tower-load-shed", + "tower-retry", + "tower-service", + "tower-timeout", + "tower-util", +] + +[[package]] +name = "tower-balance" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a792277613b7052448851efcf98a2c433e6f1d01460832dc60bef676bc275d4c" +dependencies = [ + "futures-core", + "futures-util", + "indexmap", + "pin-project 0.4.27", + "rand", + "slab", + "tokio", + "tower-discover", + "tower-layer", + "tower-load", + "tower-make", + "tower-ready-cache", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-buffer" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4887dc2a65d464c8b9b66e0e4d51c2fd6cf5b3373afc72805b0a60bce00446a" +dependencies = [ + "futures-core", + "pin-project 0.4.27", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-discover" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f6b5000c3c54d269cc695dff28136bb33d08cbf1df2c48129e143ab65bf3c2a" +dependencies = [ + "futures-core", + "pin-project 0.4.27", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a35d656f2638b288b33495d1053ea74c40dc05ec0b92084dd71ca5566c4ed1dc" + +[[package]] +name = "tower-limit" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c3040c5dbed68abffaa0d4517ac1a454cd741044f33ab0eefab6b8d1361404" +dependencies = [ + "futures-core", + "pin-project 0.4.27", + "tokio", + "tower-layer", + "tower-load", + "tower-service", +] + +[[package]] +name = "tower-load" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cc79fc3afd07492b7966d7efa7c6c50f8ed58d768a6075dd7ae6591c5d2017b" +dependencies = [ + "futures-core", + "log", + "pin-project 0.4.27", + "tokio", + "tower-discover", + "tower-service", +] + +[[package]] +name = "tower-load-shed" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f021e23900173dc315feb4b6922510dae3e79c689b74c089112066c11f0ae4e" +dependencies = [ + "futures-core", + "pin-project 0.4.27", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-make" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce50370d644a0364bf4877ffd4f76404156a248d104e2cc234cd391ea5cdc965" +dependencies = [ + "tokio", + "tower-service", +] + +[[package]] +name = "tower-ready-cache" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4eabb6620e5481267e2ec832c780b31cad0c15dcb14ed825df5076b26b591e1f" +dependencies = [ + "futures-core", + "futures-util", + "indexmap", + "log", + "tokio", + "tower-service", +] + +[[package]] +name = "tower-retry" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6727956aaa2f8957d4d9232b308fe8e4e65d99db30f42b225646e86c9b6a952" +dependencies = [ + "futures-core", + "pin-project 0.4.27", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-service" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" + +[[package]] +name = "tower-timeout" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "127b8924b357be938823eaaec0608c482d40add25609481027b96198b2e4b31e" +dependencies = [ + "pin-project 0.4.27", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-util" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1093c19826d33807c72511e68f73b4a0469a3f22c2bd5f7d5212178b4b89674" +dependencies = [ + "futures-core", + "futures-util", + "pin-project 0.4.27", + "tower-service", +] + +[[package]] +name = "tracing" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27" +dependencies = [ + "cfg-if", + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "tracing-futures" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c" +dependencies = [ + "pin-project 0.4.27", + "tracing", ] +[[package]] +name = "try-lock" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" + [[package]] name = "unicode-segmentation" version = "1.6.0" @@ -313,6 +999,16 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +[[package]] +name = "want" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +dependencies = [ + "log", + "try-lock", +] + [[package]] name = "wasi" version = "0.9.0+wasi-snapshot-preview1" @@ -328,6 +1024,12 @@ dependencies = [ "libc", ] +[[package]] +name = "winapi" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" + [[package]] name = "winapi" version = "0.3.9" @@ -338,6 +1040,12 @@ dependencies = [ "winapi-x86_64-pc-windows-gnu", ] +[[package]] +name = "winapi-build" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" + [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" @@ -349,3 +1057,13 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "ws2_32-sys" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" +dependencies = [ + "winapi 0.2.8", + "winapi-build", +] diff --git a/tensorboard/data/server/Cargo.toml b/tensorboard/data/server/Cargo.toml index 9859f6dbbc..1f38a9fd4e 100644 --- a/tensorboard/data/server/Cargo.toml +++ b/tensorboard/data/server/Cargo.toml @@ -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" @@ -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", diff --git a/third_party/rust/BUILD.bazel b/third_party/rust/BUILD.bazel index 9b78b06994..25e00148ab 100644 --- a/third_party/rust/BUILD.bazel +++ b/third_party/rust/BUILD.bazel @@ -12,6 +12,24 @@ licenses([ ]) # Aliased targets +alias( + name = "async_stream", + actual = "@raze__async_stream__0_3_0//:async_stream", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "async_trait", + actual = "@raze__async_trait__0_1_41//:async_trait", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "byteorder", actual = "@raze__byteorder__1_3_4//:byteorder", @@ -30,6 +48,15 @@ alias( ], ) +alias( + name = "futures_core", + actual = "@raze__futures_core__0_3_8//:futures_core", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "prost", actual = "@raze__prost__0_6_1//:prost", @@ -65,3 +92,30 @@ alias( "manual", ], ) + +alias( + name = "tokio", + actual = "@raze__tokio__0_2_22//:tokio", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "tonic", + actual = "@raze__tonic__0_3_1//:tonic", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "tonic_build", + actual = "@raze__tonic_build__0_3_1//:tonic_build", + tags = [ + "cargo-raze", + "manual", + ], +) diff --git a/third_party/rust/crates.bzl b/third_party/rust/crates.bzl index f1118ee871..eea6731dc0 100644 --- a/third_party/rust/crates.bzl +++ b/third_party/rust/crates.bzl @@ -21,6 +21,56 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.anyhow-1.0.34.bazel"), ) + maybe( + http_archive, + name = "raze__async_stream__0_2_1", + url = "https://crates.io/api/v1/crates/async-stream/0.2.1/download", + type = "tar.gz", + sha256 = "22068c0c19514942eefcfd4daf8976ef1aad84e61539f95cd200c35202f80af5", + strip_prefix = "async-stream-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.async-stream-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__async_stream__0_3_0", + url = "https://crates.io/api/v1/crates/async-stream/0.3.0/download", + type = "tar.gz", + sha256 = "3670df70cbc01729f901f94c887814b3c68db038aad1329a418bae178bc5295c", + strip_prefix = "async-stream-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.async-stream-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__async_stream_impl__0_2_1", + url = "https://crates.io/api/v1/crates/async-stream-impl/0.2.1/download", + type = "tar.gz", + sha256 = "25f9db3b38af870bf7e5cc649167533b493928e50744e2c30ae350230b414670", + strip_prefix = "async-stream-impl-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.async-stream-impl-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__async_stream_impl__0_3_0", + url = "https://crates.io/api/v1/crates/async-stream-impl/0.3.0/download", + type = "tar.gz", + sha256 = "a3548b8efc9f8e8a5a0a2808c5bd8451a9031b9e5b879a79590304ae928b0a70", + strip_prefix = "async-stream-impl-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.async-stream-impl-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__async_trait__0_1_41", + url = "https://crates.io/api/v1/crates/async-trait/0.1.41/download", + type = "tar.gz", + sha256 = "b246867b8b3b6ae56035f1eb1ed557c1d8eae97f0d53696138a50fa0e3a3b8c0", + strip_prefix = "async-trait-0.1.41", + build_file = Label("//third_party/rust/remote:BUILD.async-trait-0.1.41.bazel"), + ) + maybe( http_archive, name = "raze__autocfg__1_0_1", @@ -31,6 +81,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.autocfg-1.0.1.bazel"), ) + maybe( + http_archive, + name = "raze__base64__0_12_3", + url = "https://crates.io/api/v1/crates/base64/0.12.3/download", + type = "tar.gz", + sha256 = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff", + strip_prefix = "base64-0.12.3", + build_file = Label("//third_party/rust/remote:BUILD.base64-0.12.3.bazel"), + ) + + maybe( + http_archive, + name = "raze__bitflags__1_2_1", + url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", + type = "tar.gz", + sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", + strip_prefix = "bitflags-1.2.1", + build_file = Label("//third_party/rust/remote:BUILD.bitflags-1.2.1.bazel"), + ) + maybe( http_archive, name = "raze__build_const__0_2_1", @@ -101,6 +171,86 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.fixedbitset-0.2.0.bazel"), ) + maybe( + http_archive, + name = "raze__fnv__1_0_7", + url = "https://crates.io/api/v1/crates/fnv/1.0.7/download", + type = "tar.gz", + sha256 = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1", + strip_prefix = "fnv-1.0.7", + build_file = Label("//third_party/rust/remote:BUILD.fnv-1.0.7.bazel"), + ) + + maybe( + http_archive, + name = "raze__fuchsia_zircon__0_3_3", + url = "https://crates.io/api/v1/crates/fuchsia-zircon/0.3.3/download", + type = "tar.gz", + sha256 = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82", + strip_prefix = "fuchsia-zircon-0.3.3", + build_file = Label("//third_party/rust/remote:BUILD.fuchsia-zircon-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "raze__fuchsia_zircon_sys__0_3_3", + url = "https://crates.io/api/v1/crates/fuchsia-zircon-sys/0.3.3/download", + type = "tar.gz", + sha256 = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7", + strip_prefix = "fuchsia-zircon-sys-0.3.3", + build_file = Label("//third_party/rust/remote:BUILD.fuchsia-zircon-sys-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "raze__futures_channel__0_3_8", + url = "https://crates.io/api/v1/crates/futures-channel/0.3.8/download", + type = "tar.gz", + sha256 = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64", + strip_prefix = "futures-channel-0.3.8", + build_file = Label("//third_party/rust/remote:BUILD.futures-channel-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "raze__futures_core__0_3_8", + url = "https://crates.io/api/v1/crates/futures-core/0.3.8/download", + type = "tar.gz", + sha256 = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748", + strip_prefix = "futures-core-0.3.8", + build_file = Label("//third_party/rust/remote:BUILD.futures-core-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "raze__futures_sink__0_3_8", + url = "https://crates.io/api/v1/crates/futures-sink/0.3.8/download", + type = "tar.gz", + sha256 = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d", + strip_prefix = "futures-sink-0.3.8", + build_file = Label("//third_party/rust/remote:BUILD.futures-sink-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "raze__futures_task__0_3_8", + url = "https://crates.io/api/v1/crates/futures-task/0.3.8/download", + type = "tar.gz", + sha256 = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d", + strip_prefix = "futures-task-0.3.8", + build_file = Label("//third_party/rust/remote:BUILD.futures-task-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "raze__futures_util__0_3_8", + url = "https://crates.io/api/v1/crates/futures-util/0.3.8/download", + type = "tar.gz", + sha256 = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2", + strip_prefix = "futures-util-0.3.8", + build_file = Label("//third_party/rust/remote:BUILD.futures-util-0.3.8.bazel"), + ) + maybe( http_archive, name = "raze__getrandom__0_1_15", @@ -111,6 +261,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.getrandom-0.1.15.bazel"), ) + maybe( + http_archive, + name = "raze__h2__0_2_7", + url = "https://crates.io/api/v1/crates/h2/0.2.7/download", + type = "tar.gz", + sha256 = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535", + strip_prefix = "h2-0.2.7", + build_file = Label("//third_party/rust/remote:BUILD.h2-0.2.7.bazel"), + ) + maybe( http_archive, name = "raze__hashbrown__0_9_1", @@ -131,6 +291,56 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.heck-0.3.1.bazel"), ) + maybe( + http_archive, + name = "raze__http__0_2_1", + url = "https://crates.io/api/v1/crates/http/0.2.1/download", + type = "tar.gz", + sha256 = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9", + strip_prefix = "http-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.http-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__http_body__0_3_1", + url = "https://crates.io/api/v1/crates/http-body/0.3.1/download", + type = "tar.gz", + sha256 = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b", + strip_prefix = "http-body-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.http-body-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__httparse__1_3_4", + url = "https://crates.io/api/v1/crates/httparse/1.3.4/download", + type = "tar.gz", + sha256 = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9", + strip_prefix = "httparse-1.3.4", + build_file = Label("//third_party/rust/remote:BUILD.httparse-1.3.4.bazel"), + ) + + maybe( + http_archive, + name = "raze__httpdate__0_3_2", + url = "https://crates.io/api/v1/crates/httpdate/0.3.2/download", + type = "tar.gz", + sha256 = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47", + strip_prefix = "httpdate-0.3.2", + build_file = Label("//third_party/rust/remote:BUILD.httpdate-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__hyper__0_13_9", + url = "https://crates.io/api/v1/crates/hyper/0.13.9/download", + type = "tar.gz", + sha256 = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf", + strip_prefix = "hyper-0.13.9", + build_file = Label("//third_party/rust/remote:BUILD.hyper-0.13.9.bazel"), + ) + maybe( http_archive, name = "raze__indexmap__1_6_0", @@ -141,6 +351,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.indexmap-1.6.0.bazel"), ) + maybe( + http_archive, + name = "raze__iovec__0_1_4", + url = "https://crates.io/api/v1/crates/iovec/0.1.4/download", + type = "tar.gz", + sha256 = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e", + strip_prefix = "iovec-0.1.4", + build_file = Label("//third_party/rust/remote:BUILD.iovec-0.1.4.bazel"), + ) + maybe( http_archive, name = "raze__itertools__0_8_2", @@ -151,6 +371,36 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.itertools-0.8.2.bazel"), ) + maybe( + http_archive, + name = "raze__itoa__0_4_6", + url = "https://crates.io/api/v1/crates/itoa/0.4.6/download", + type = "tar.gz", + sha256 = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6", + strip_prefix = "itoa-0.4.6", + build_file = Label("//third_party/rust/remote:BUILD.itoa-0.4.6.bazel"), + ) + + maybe( + http_archive, + name = "raze__kernel32_sys__0_2_2", + url = "https://crates.io/api/v1/crates/kernel32-sys/0.2.2/download", + type = "tar.gz", + sha256 = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d", + strip_prefix = "kernel32-sys-0.2.2", + build_file = Label("//third_party/rust/remote:BUILD.kernel32-sys-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__lazy_static__1_4_0", + url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", + type = "tar.gz", + sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", + strip_prefix = "lazy_static-1.4.0", + build_file = Label("//third_party/rust/remote:BUILD.lazy_static-1.4.0.bazel"), + ) + maybe( http_archive, name = "raze__libc__0_2_80", @@ -171,6 +421,36 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.log-0.4.11.bazel"), ) + maybe( + http_archive, + name = "raze__memchr__2_3_4", + url = "https://crates.io/api/v1/crates/memchr/2.3.4/download", + type = "tar.gz", + sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", + strip_prefix = "memchr-2.3.4", + build_file = Label("//third_party/rust/remote:BUILD.memchr-2.3.4.bazel"), + ) + + maybe( + http_archive, + name = "raze__mio__0_6_22", + url = "https://crates.io/api/v1/crates/mio/0.6.22/download", + type = "tar.gz", + sha256 = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430", + strip_prefix = "mio-0.6.22", + build_file = Label("//third_party/rust/remote:BUILD.mio-0.6.22.bazel"), + ) + + maybe( + http_archive, + name = "raze__miow__0_2_1", + url = "https://crates.io/api/v1/crates/miow/0.2.1/download", + type = "tar.gz", + sha256 = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919", + strip_prefix = "miow-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.miow-0.2.1.bazel"), + ) + maybe( http_archive, name = "raze__multimap__0_8_2", @@ -181,6 +461,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.multimap-0.8.2.bazel"), ) + maybe( + http_archive, + name = "raze__net2__0_2_35", + url = "https://crates.io/api/v1/crates/net2/0.2.35/download", + type = "tar.gz", + sha256 = "3ebc3ec692ed7c9a255596c67808dee269f64655d8baf7b4f0638e51ba1d6853", + strip_prefix = "net2-0.2.35", + build_file = Label("//third_party/rust/remote:BUILD.net2-0.2.35.bazel"), + ) + + maybe( + http_archive, + name = "raze__percent_encoding__2_1_0", + url = "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download", + type = "tar.gz", + sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e", + strip_prefix = "percent-encoding-2.1.0", + build_file = Label("//third_party/rust/remote:BUILD.percent-encoding-2.1.0.bazel"), + ) + maybe( http_archive, name = "raze__petgraph__0_5_1", @@ -191,6 +491,66 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.petgraph-0.5.1.bazel"), ) + maybe( + http_archive, + name = "raze__pin_project__0_4_27", + url = "https://crates.io/api/v1/crates/pin-project/0.4.27/download", + type = "tar.gz", + sha256 = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15", + strip_prefix = "pin-project-0.4.27", + build_file = Label("//third_party/rust/remote:BUILD.pin-project-0.4.27.bazel"), + ) + + maybe( + http_archive, + name = "raze__pin_project__1_0_1", + url = "https://crates.io/api/v1/crates/pin-project/1.0.1/download", + type = "tar.gz", + sha256 = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841", + strip_prefix = "pin-project-1.0.1", + build_file = Label("//third_party/rust/remote:BUILD.pin-project-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__pin_project_internal__0_4_27", + url = "https://crates.io/api/v1/crates/pin-project-internal/0.4.27/download", + type = "tar.gz", + sha256 = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895", + strip_prefix = "pin-project-internal-0.4.27", + build_file = Label("//third_party/rust/remote:BUILD.pin-project-internal-0.4.27.bazel"), + ) + + maybe( + http_archive, + name = "raze__pin_project_internal__1_0_1", + url = "https://crates.io/api/v1/crates/pin-project-internal/1.0.1/download", + type = "tar.gz", + sha256 = "81a4ffa594b66bff340084d4081df649a7dc049ac8d7fc458d8e628bfbbb2f86", + strip_prefix = "pin-project-internal-1.0.1", + build_file = Label("//third_party/rust/remote:BUILD.pin-project-internal-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__pin_project_lite__0_1_11", + url = "https://crates.io/api/v1/crates/pin-project-lite/0.1.11/download", + type = "tar.gz", + sha256 = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b", + strip_prefix = "pin-project-lite-0.1.11", + build_file = Label("//third_party/rust/remote:BUILD.pin-project-lite-0.1.11.bazel"), + ) + + maybe( + http_archive, + name = "raze__pin_utils__0_1_0", + url = "https://crates.io/api/v1/crates/pin-utils/0.1.0/download", + type = "tar.gz", + sha256 = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184", + strip_prefix = "pin-utils-0.1.0", + build_file = Label("//third_party/rust/remote:BUILD.pin-utils-0.1.0.bazel"), + ) + maybe( http_archive, name = "raze__ppv_lite86__0_2_10", @@ -301,6 +661,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.rand_hc-0.2.0.bazel"), ) + maybe( + http_archive, + name = "raze__rand_pcg__0_2_1", + url = "https://crates.io/api/v1/crates/rand_pcg/0.2.1/download", + type = "tar.gz", + sha256 = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429", + strip_prefix = "rand_pcg-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.rand_pcg-0.2.1.bazel"), + ) + maybe( http_archive, name = "raze__redox_syscall__0_1_57", @@ -321,6 +691,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.remove_dir_all-0.5.3.bazel"), ) + maybe( + http_archive, + name = "raze__slab__0_4_2", + url = "https://crates.io/api/v1/crates/slab/0.4.2/download", + type = "tar.gz", + sha256 = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8", + strip_prefix = "slab-0.4.2", + build_file = Label("//third_party/rust/remote:BUILD.slab-0.4.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__socket2__0_3_16", + url = "https://crates.io/api/v1/crates/socket2/0.3.16/download", + type = "tar.gz", + sha256 = "7fd8b795c389288baa5f355489c65e71fd48a02104600d15c4cfbc561e9e429d", + strip_prefix = "socket2-0.3.16", + build_file = Label("//third_party/rust/remote:BUILD.socket2-0.3.16.bazel"), + ) + maybe( http_archive, name = "raze__syn__1_0_48", @@ -341,6 +731,246 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.tempfile-3.1.0.bazel"), ) + maybe( + http_archive, + name = "raze__tokio__0_2_22", + url = "https://crates.io/api/v1/crates/tokio/0.2.22/download", + type = "tar.gz", + sha256 = "5d34ca54d84bf2b5b4d7d31e901a8464f7b60ac145a284fba25ceb801f2ddccd", + strip_prefix = "tokio-0.2.22", + build_file = Label("//third_party/rust/remote:BUILD.tokio-0.2.22.bazel"), + ) + + maybe( + http_archive, + name = "raze__tokio_macros__0_2_6", + url = "https://crates.io/api/v1/crates/tokio-macros/0.2.6/download", + type = "tar.gz", + sha256 = "e44da00bfc73a25f814cd8d7e57a68a5c31b74b3152a0a1d1f590c97ed06265a", + strip_prefix = "tokio-macros-0.2.6", + build_file = Label("//third_party/rust/remote:BUILD.tokio-macros-0.2.6.bazel"), + ) + + maybe( + http_archive, + name = "raze__tokio_util__0_3_1", + url = "https://crates.io/api/v1/crates/tokio-util/0.3.1/download", + type = "tar.gz", + sha256 = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499", + strip_prefix = "tokio-util-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tokio-util-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tonic__0_3_1", + url = "https://crates.io/api/v1/crates/tonic/0.3.1/download", + type = "tar.gz", + sha256 = "74a5d6e7439ecf910463667080de772a9c7ddf26bc9fb4f3252ac3862e43337d", + strip_prefix = "tonic-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tonic-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tonic_build__0_3_1", + url = "https://crates.io/api/v1/crates/tonic-build/0.3.1/download", + type = "tar.gz", + sha256 = "19970cf58f3acc820962be74c4021b8bbc8e8a1c4e3a02095d0aa60cde5f3633", + strip_prefix = "tonic-build-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tonic-build-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower__0_3_1", + url = "https://crates.io/api/v1/crates/tower/0.3.1/download", + type = "tar.gz", + sha256 = "fd3169017c090b7a28fce80abaad0ab4f5566423677c9331bb320af7e49cfe62", + strip_prefix = "tower-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tower-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_balance__0_3_0", + url = "https://crates.io/api/v1/crates/tower-balance/0.3.0/download", + type = "tar.gz", + sha256 = "a792277613b7052448851efcf98a2c433e6f1d01460832dc60bef676bc275d4c", + strip_prefix = "tower-balance-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-balance-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_buffer__0_3_0", + url = "https://crates.io/api/v1/crates/tower-buffer/0.3.0/download", + type = "tar.gz", + sha256 = "c4887dc2a65d464c8b9b66e0e4d51c2fd6cf5b3373afc72805b0a60bce00446a", + strip_prefix = "tower-buffer-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-buffer-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_discover__0_3_0", + url = "https://crates.io/api/v1/crates/tower-discover/0.3.0/download", + type = "tar.gz", + sha256 = "0f6b5000c3c54d269cc695dff28136bb33d08cbf1df2c48129e143ab65bf3c2a", + strip_prefix = "tower-discover-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-discover-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_layer__0_3_0", + url = "https://crates.io/api/v1/crates/tower-layer/0.3.0/download", + type = "tar.gz", + sha256 = "a35d656f2638b288b33495d1053ea74c40dc05ec0b92084dd71ca5566c4ed1dc", + strip_prefix = "tower-layer-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-layer-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_limit__0_3_1", + url = "https://crates.io/api/v1/crates/tower-limit/0.3.1/download", + type = "tar.gz", + sha256 = "92c3040c5dbed68abffaa0d4517ac1a454cd741044f33ab0eefab6b8d1361404", + strip_prefix = "tower-limit-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tower-limit-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_load__0_3_0", + url = "https://crates.io/api/v1/crates/tower-load/0.3.0/download", + type = "tar.gz", + sha256 = "8cc79fc3afd07492b7966d7efa7c6c50f8ed58d768a6075dd7ae6591c5d2017b", + strip_prefix = "tower-load-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-load-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_load_shed__0_3_0", + url = "https://crates.io/api/v1/crates/tower-load-shed/0.3.0/download", + type = "tar.gz", + sha256 = "9f021e23900173dc315feb4b6922510dae3e79c689b74c089112066c11f0ae4e", + strip_prefix = "tower-load-shed-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-load-shed-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_make__0_3_0", + url = "https://crates.io/api/v1/crates/tower-make/0.3.0/download", + type = "tar.gz", + sha256 = "ce50370d644a0364bf4877ffd4f76404156a248d104e2cc234cd391ea5cdc965", + strip_prefix = "tower-make-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-make-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_ready_cache__0_3_1", + url = "https://crates.io/api/v1/crates/tower-ready-cache/0.3.1/download", + type = "tar.gz", + sha256 = "4eabb6620e5481267e2ec832c780b31cad0c15dcb14ed825df5076b26b591e1f", + strip_prefix = "tower-ready-cache-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tower-ready-cache-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_retry__0_3_0", + url = "https://crates.io/api/v1/crates/tower-retry/0.3.0/download", + type = "tar.gz", + sha256 = "e6727956aaa2f8957d4d9232b308fe8e4e65d99db30f42b225646e86c9b6a952", + strip_prefix = "tower-retry-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-retry-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_service__0_3_0", + url = "https://crates.io/api/v1/crates/tower-service/0.3.0/download", + type = "tar.gz", + sha256 = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860", + strip_prefix = "tower-service-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-service-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_timeout__0_3_0", + url = "https://crates.io/api/v1/crates/tower-timeout/0.3.0/download", + type = "tar.gz", + sha256 = "127b8924b357be938823eaaec0608c482d40add25609481027b96198b2e4b31e", + strip_prefix = "tower-timeout-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tower-timeout-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__tower_util__0_3_1", + url = "https://crates.io/api/v1/crates/tower-util/0.3.1/download", + type = "tar.gz", + sha256 = "d1093c19826d33807c72511e68f73b4a0469a3f22c2bd5f7d5212178b4b89674", + strip_prefix = "tower-util-0.3.1", + build_file = Label("//third_party/rust/remote:BUILD.tower-util-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tracing__0_1_21", + url = "https://crates.io/api/v1/crates/tracing/0.1.21/download", + type = "tar.gz", + sha256 = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27", + strip_prefix = "tracing-0.1.21", + build_file = Label("//third_party/rust/remote:BUILD.tracing-0.1.21.bazel"), + ) + + maybe( + http_archive, + name = "raze__tracing_attributes__0_1_11", + url = "https://crates.io/api/v1/crates/tracing-attributes/0.1.11/download", + type = "tar.gz", + sha256 = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada", + strip_prefix = "tracing-attributes-0.1.11", + build_file = Label("//third_party/rust/remote:BUILD.tracing-attributes-0.1.11.bazel"), + ) + + maybe( + http_archive, + name = "raze__tracing_core__0_1_17", + url = "https://crates.io/api/v1/crates/tracing-core/0.1.17/download", + type = "tar.gz", + sha256 = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f", + strip_prefix = "tracing-core-0.1.17", + build_file = Label("//third_party/rust/remote:BUILD.tracing-core-0.1.17.bazel"), + ) + + maybe( + http_archive, + name = "raze__tracing_futures__0_2_4", + url = "https://crates.io/api/v1/crates/tracing-futures/0.2.4/download", + type = "tar.gz", + sha256 = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c", + strip_prefix = "tracing-futures-0.2.4", + build_file = Label("//third_party/rust/remote:BUILD.tracing-futures-0.2.4.bazel"), + ) + + maybe( + http_archive, + name = "raze__try_lock__0_2_3", + url = "https://crates.io/api/v1/crates/try-lock/0.2.3/download", + type = "tar.gz", + sha256 = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642", + strip_prefix = "try-lock-0.2.3", + build_file = Label("//third_party/rust/remote:BUILD.try-lock-0.2.3.bazel"), + ) + maybe( http_archive, name = "raze__unicode_segmentation__1_6_0", @@ -361,6 +991,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.unicode-xid-0.2.1.bazel"), ) + maybe( + http_archive, + name = "raze__want__0_3_0", + url = "https://crates.io/api/v1/crates/want/0.3.0/download", + type = "tar.gz", + sha256 = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0", + strip_prefix = "want-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.want-0.3.0.bazel"), + ) + maybe( http_archive, name = "raze__wasi__0_9_0_wasi_snapshot_preview1", @@ -381,6 +1021,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.which-3.1.1.bazel"), ) + maybe( + http_archive, + name = "raze__winapi__0_2_8", + url = "https://crates.io/api/v1/crates/winapi/0.2.8/download", + type = "tar.gz", + sha256 = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a", + strip_prefix = "winapi-0.2.8", + build_file = Label("//third_party/rust/remote:BUILD.winapi-0.2.8.bazel"), + ) + maybe( http_archive, name = "raze__winapi__0_3_9", @@ -391,6 +1041,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.winapi-0.3.9.bazel"), ) + maybe( + http_archive, + name = "raze__winapi_build__0_1_1", + url = "https://crates.io/api/v1/crates/winapi-build/0.1.1/download", + type = "tar.gz", + sha256 = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc", + strip_prefix = "winapi-build-0.1.1", + build_file = Label("//third_party/rust/remote:BUILD.winapi-build-0.1.1.bazel"), + ) + maybe( http_archive, name = "raze__winapi_i686_pc_windows_gnu__0_4_0", @@ -410,3 +1070,13 @@ def raze_fetch_remote_crates(): strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", build_file = Label("//third_party/rust/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) + + maybe( + http_archive, + name = "raze__ws2_32_sys__0_2_1", + url = "https://crates.io/api/v1/crates/ws2_32-sys/0.2.1/download", + type = "tar.gz", + sha256 = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e", + strip_prefix = "ws2_32-sys-0.2.1", + build_file = Label("//third_party/rust/remote:BUILD.ws2_32-sys-0.2.1.bazel"), + ) diff --git a/third_party/rust/remote/BUILD.async-stream-0.2.1.bazel b/third_party/rust/remote/BUILD.async-stream-0.2.1.bazel new file mode 100644 index 0000000000..32a5313bcc --- /dev/null +++ b/third_party/rust/remote/BUILD.async-stream-0.2.1.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "tcp_accept" with type "example" omitted + +rust_library( + name = "async_stream", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__async_stream_impl__0_2_1//:async_stream_impl", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + ], +) + +# Unsupported target "for_await" with type "test" omitted + +# Unsupported target "stream" with type "test" omitted + +# Unsupported target "try_stream" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.async-stream-0.3.0.bazel b/third_party/rust/remote/BUILD.async-stream-0.3.0.bazel new file mode 100644 index 0000000000..ff94a3b287 --- /dev/null +++ b/third_party/rust/remote/BUILD.async-stream-0.3.0.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "tcp_accept" with type "example" omitted + +rust_library( + name = "async_stream", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__async_stream_impl__0_3_0//:async_stream_impl", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + ], +) + +# Unsupported target "for_await" with type "test" omitted + +# Unsupported target "stream" with type "test" omitted + +# Unsupported target "try_stream" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.async-stream-impl-0.2.1.bazel b/third_party/rust/remote/BUILD.async-stream-impl-0.2.1.bazel new file mode 100644 index 0000000000..a3bbbd4d2f --- /dev/null +++ b/third_party/rust/remote/BUILD.async-stream-impl-0.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "async_stream_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.async-stream-impl-0.3.0.bazel b/third_party/rust/remote/BUILD.async-stream-impl-0.3.0.bazel new file mode 100644 index 0000000000..b19eee112c --- /dev/null +++ b/third_party/rust/remote/BUILD.async-stream-impl-0.3.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "async_stream_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.async-trait-0.1.41.bazel b/third_party/rust/remote/BUILD.async-trait-0.1.41.bazel new file mode 100644 index 0000000000..e904e7b4a1 --- /dev/null +++ b/third_party/rust/remote/BUILD.async-trait-0.1.41.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "async_trait", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.41", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.base64-0.12.3.bazel b/third_party/rust/remote/BUILD.base64-0.12.3.bazel new file mode 100644 index 0000000000..37a02fdf77 --- /dev/null +++ b/third_party/rust/remote/BUILD.base64-0.12.3.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmarks" with type "bench" omitted + +# Unsupported target "make_tables" with type "example" omitted + +rust_library( + name = "base64", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.12.3", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "decode" with type "test" omitted + +# Unsupported target "encode" with type "test" omitted + +# Unsupported target "helpers" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.bitflags-1.2.1.bazel b/third_party/rust/remote/BUILD.bitflags-1.2.1.bazel new file mode 100644 index 0000000000..a122db1292 --- /dev/null +++ b/third_party/rust/remote/BUILD.bitflags-1.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.fnv-1.0.7.bazel b/third_party/rust/remote/BUILD.fnv-1.0.7.bazel new file mode 100644 index 0000000000..412eac9d73 --- /dev/null +++ b/third_party/rust/remote/BUILD.fnv-1.0.7.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "fnv", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.7", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.fuchsia-zircon-0.3.3.bazel b/third_party/rust/remote/BUILD.fuchsia-zircon-0.3.3.bazel new file mode 100644 index 0000000000..90118a3cc6 --- /dev/null +++ b/third_party/rust/remote/BUILD.fuchsia-zircon-0.3.3.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # BSD-3-Clause from expression "BSD-3-Clause" +]) + +# Generated Targets + +rust_library( + name = "fuchsia_zircon", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.3", + # buildifier: leave-alone + deps = [ + "@raze__bitflags__1_2_1//:bitflags", + "@raze__fuchsia_zircon_sys__0_3_3//:fuchsia_zircon_sys", + ], +) diff --git a/third_party/rust/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel b/third_party/rust/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel new file mode 100644 index 0000000000..b40686a45e --- /dev/null +++ b/third_party/rust/remote/BUILD.fuchsia-zircon-sys-0.3.3.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # BSD-3-Clause from expression "BSD-3-Clause" +]) + +# Generated Targets + +# Unsupported target "hello" with type "example" omitted + +rust_library( + name = "fuchsia_zircon_sys", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.futures-channel-0.3.8.bazel b/third_party/rust/remote/BUILD.futures-channel-0.3.8.bazel new file mode 100644 index 0000000000..0e7f67dcbd --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-channel-0.3.8.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "sync_mpsc" with type "bench" omitted + +rust_library( + name = "futures_channel", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + ], +) + +# Unsupported target "channel" with type "test" omitted + +# Unsupported target "mpsc" with type "test" omitted + +# Unsupported target "mpsc-close" with type "test" omitted + +# Unsupported target "oneshot" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.futures-core-0.3.8.bazel b/third_party/rust/remote/BUILD.futures-core-0.3.8.bazel new file mode 100644 index 0000000000..b571ff5f4b --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-core-0.3.8.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "futures_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.futures-sink-0.3.8.bazel b/third_party/rust/remote/BUILD.futures-sink-0.3.8.bazel new file mode 100644 index 0000000000..237edbe921 --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-sink-0.3.8.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "futures_sink", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.futures-task-0.3.8.bazel b/third_party/rust/remote/BUILD.futures-task-0.3.8.bazel new file mode 100644 index 0000000000..f1b11d9ec3 --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-task-0.3.8.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "futures_task", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.futures-util-0.3.8.bazel b/third_party/rust/remote/BUILD.futures-util-0.3.8.bazel new file mode 100644 index 0000000000..94e1d9cc2f --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-util-0.3.8.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "futures_unordered" with type "bench" omitted + +rust_library( + name = "futures_util", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.8", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_task__0_3_8//:futures_task", + "@raze__pin_project__1_0_1//:pin_project", + "@raze__pin_utils__0_1_0//:pin_utils", + ], +) diff --git a/third_party/rust/remote/BUILD.h2-0.2.7.bazel b/third_party/rust/remote/BUILD.h2-0.2.7.bazel new file mode 100644 index 0000000000..43f11fe48d --- /dev/null +++ b/third_party/rust/remote/BUILD.h2-0.2.7.bazel @@ -0,0 +1,70 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "akamai" with type "example" omitted + +# Unsupported target "client" with type "example" omitted + +# Unsupported target "server" with type "example" omitted + +rust_library( + name = "h2", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.7", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__fnv__1_0_7//:fnv", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__http__0_2_1//:http", + "@raze__indexmap__1_6_0//:indexmap", + "@raze__slab__0_4_2//:slab", + "@raze__tokio__0_2_22//:tokio", + "@raze__tokio_util__0_3_1//:tokio_util", + "@raze__tracing__0_1_21//:tracing", + "@raze__tracing_futures__0_2_4//:tracing_futures", + ], +) diff --git a/third_party/rust/remote/BUILD.http-0.2.1.bazel b/third_party/rust/remote/BUILD.http-0.2.1.bazel new file mode 100644 index 0000000000..0c575fea3f --- /dev/null +++ b/third_party/rust/remote/BUILD.http-0.2.1.bazel @@ -0,0 +1,69 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "header_map" with type "bench" omitted + +# Unsupported target "header_name" with type "bench" omitted + +# Unsupported target "header_value" with type "bench" omitted + +# Unsupported target "uri" with type "bench" omitted + +rust_library( + name = "http", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__fnv__1_0_7//:fnv", + "@raze__itoa__0_4_6//:itoa", + ], +) + +# Unsupported target "header_map" with type "test" omitted + +# Unsupported target "header_map_fuzz" with type "test" omitted + +# Unsupported target "status_code" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.http-body-0.3.1.bazel b/third_party/rust/remote/BUILD.http-body-0.3.1.bazel new file mode 100644 index 0000000000..bebb65f19e --- /dev/null +++ b/third_party/rust/remote/BUILD.http-body-0.3.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "http_body", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__http__0_2_1//:http", + ], +) + +# Unsupported target "is_end_stream" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.httparse-1.3.4.bazel b/third_party/rust/remote/BUILD.httparse-1.3.4.bazel new file mode 100644 index 0000000000..3a4451ab30 --- /dev/null +++ b/third_party/rust/remote/BUILD.httparse-1.3.4.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "parse" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "httparse", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "uri" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.httpdate-0.3.2.bazel b/third_party/rust/remote/BUILD.httpdate-0.3.2.bazel new file mode 100644 index 0000000000..d48769fb5e --- /dev/null +++ b/third_party/rust/remote/BUILD.httpdate-0.3.2.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "httpdate", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.hyper-0.13.9.bazel b/third_party/rust/remote/BUILD.hyper-0.13.9.bazel new file mode 100644 index 0000000000..668ea5061a --- /dev/null +++ b/third_party/rust/remote/BUILD.hyper-0.13.9.bazel @@ -0,0 +1,131 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "body" with type "bench" omitted + +# Unsupported target "connect" with type "bench" omitted + +# Unsupported target "end_to_end" with type "bench" omitted + +# Unsupported target "pipeline" with type "bench" omitted + +# Unsupported target "server" with type "bench" omitted + +# Unsupported target "client" with type "example" omitted + +# Unsupported target "client_json" with type "example" omitted + +# Unsupported target "echo" with type "example" omitted + +# Unsupported target "gateway" with type "example" omitted + +# Unsupported target "hello" with type "example" omitted + +# Unsupported target "http_proxy" with type "example" omitted + +# Unsupported target "multi_server" with type "example" omitted + +# Unsupported target "params" with type "example" omitted + +# Unsupported target "send_file" with type "example" omitted + +# Unsupported target "service_struct_impl" with type "example" omitted + +# Unsupported target "single_threaded" with type "example" omitted + +# Unsupported target "state" with type "example" omitted + +# Unsupported target "tower_client" with type "example" omitted + +# Unsupported target "tower_server" with type "example" omitted + +# Unsupported target "upgrades" with type "example" omitted + +# Unsupported target "web_api" with type "example" omitted + +rust_library( + name = "hyper", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "runtime", + "socket2", + "stream", + "tcp", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.13.9", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__futures_channel__0_3_8//:futures_channel", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__h2__0_2_7//:h2", + "@raze__http__0_2_1//:http", + "@raze__http_body__0_3_1//:http_body", + "@raze__httparse__1_3_4//:httparse", + "@raze__httpdate__0_3_2//:httpdate", + "@raze__itoa__0_4_6//:itoa", + "@raze__pin_project__1_0_1//:pin_project", + "@raze__socket2__0_3_16//:socket2", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_service__0_3_0//:tower_service", + "@raze__tracing__0_1_21//:tracing", + "@raze__want__0_3_0//:want", + ] + selects.with_or({ + # cfg(any(target_os = "linux", target_os = "macos")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "client" with type "test" omitted + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "server" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.iovec-0.1.4.bazel b/third_party/rust/remote/BUILD.iovec-0.1.4.bazel new file mode 100644 index 0000000000..79ef05a123 --- /dev/null +++ b/third_party/rust/remote/BUILD.iovec-0.1.4.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "iovec", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.4", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__libc__0_2_80//:libc", + ], + "//conditions:default": [], + }), +) diff --git a/third_party/rust/remote/BUILD.itoa-0.4.6.bazel b/third_party/rust/remote/BUILD.itoa-0.4.6.bazel new file mode 100644 index 0000000000..c33e8b6fc2 --- /dev/null +++ b/third_party/rust/remote/BUILD.itoa-0.4.6.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "itoa", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.6", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.kernel32-sys-0.2.2.bazel b/third_party/rust/remote/BUILD.kernel32-sys-0.2.2.bazel new file mode 100644 index 0000000000..202080edb5 --- /dev/null +++ b/third_party/rust/remote/BUILD.kernel32-sys-0.2.2.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +alias( + name = "kernel32_sys", + actual = ":kernel32", + tags = [ + "cargo-raze", + "manual", + ], +) + +rust_library( + name = "kernel32", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.2", + # buildifier: leave-alone + deps = [ + "@raze__winapi__0_2_8//:winapi", + ], +) diff --git a/third_party/rust/remote/BUILD.lazy_static-1.4.0.bazel b/third_party/rust/remote/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 0000000000..824534af49 --- /dev/null +++ b/third_party/rust/remote/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "lazy_static", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "no_std" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.libc-0.2.80.bazel b/third_party/rust/remote/BUILD.libc-0.2.80.bazel index 42c6d4a849..fe61acf0db 100644 --- a/third_party/rust/remote/BUILD.libc-0.2.80.bazel +++ b/third_party/rust/remote/BUILD.libc-0.2.80.bazel @@ -36,6 +36,7 @@ rust_library( name = "libc", srcs = glob(["**/*.rs"]), crate_features = [ + "align", "default", "std", ], @@ -44,6 +45,7 @@ rust_library( edition = "2015", rustc_flags = [ "--cap-lints=allow", + "--cfg=libc_align", ], tags = [ "cargo-raze", diff --git a/third_party/rust/remote/BUILD.memchr-2.3.4.bazel b/third_party/rust/remote/BUILD.memchr-2.3.4.bazel new file mode 100644 index 0000000000..507d1096a8 --- /dev/null +++ b/third_party/rust/remote/BUILD.memchr-2.3.4.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "memchr", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.mio-0.6.22.bazel b/third_party/rust/remote/BUILD.mio-0.6.22.bazel new file mode 100644 index 0000000000..8078607329 --- /dev/null +++ b/third_party/rust/remote/BUILD.mio-0.6.22.bazel @@ -0,0 +1,82 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "mio", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "with-deprecated", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.22", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__iovec__0_1_4//:iovec", + "@raze__log__0_4_11//:log", + "@raze__net2__0_2_35//:net2", + "@raze__slab__0_4_2//:slab", + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__libc__0_2_80//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__kernel32_sys__0_2_2//:kernel32_sys", + "@raze__miow__0_2_1//:miow", + "@raze__winapi__0_2_8//:winapi", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.miow-0.2.1.bazel b/third_party/rust/remote/BUILD.miow-0.2.1.bazel new file mode 100644 index 0000000000..aafaa9ab49 --- /dev/null +++ b/third_party/rust/remote/BUILD.miow-0.2.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "miow", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__kernel32_sys__0_2_2//:kernel32_sys", + "@raze__net2__0_2_35//:net2", + "@raze__winapi__0_2_8//:winapi", + "@raze__ws2_32_sys__0_2_1//:ws2_32_sys", + ], +) diff --git a/third_party/rust/remote/BUILD.net2-0.2.35.bazel b/third_party/rust/remote/BUILD.net2-0.2.35.bazel new file mode 100644 index 0000000000..03fefb2019 --- /dev/null +++ b/third_party/rust/remote/BUILD.net2-0.2.35.bazel @@ -0,0 +1,74 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "net2", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "duration", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.35", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__0_1_10//:cfg_if", + ] + selects.with_or({ + # cfg(any(target_os = "redox", unix, target_os = "wasi")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__libc__0_2_80//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/third_party/rust/remote/BUILD.percent-encoding-2.1.0.bazel b/third_party/rust/remote/BUILD.percent-encoding-2.1.0.bazel new file mode 100644 index 0000000000..5466619c25 --- /dev/null +++ b/third_party/rust/remote/BUILD.percent-encoding-2.1.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "percent_encoding", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.pin-project-0.4.27.bazel b/third_party/rust/remote/BUILD.pin-project-0.4.27.bazel new file mode 100644 index 0000000000..ba00b233ef --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-project-0.4.27.bazel @@ -0,0 +1,103 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "enum-default" with type "example" omitted + +# Unsupported target "enum-default-expanded" with type "example" omitted + +# Unsupported target "not_unpin" with type "example" omitted + +# Unsupported target "not_unpin-expanded" with type "example" omitted + +# Unsupported target "pinned_drop" with type "example" omitted + +# Unsupported target "pinned_drop-expanded" with type "example" omitted + +# Unsupported target "project_replace" with type "example" omitted + +# Unsupported target "project_replace-expanded" with type "example" omitted + +# Unsupported target "struct-default" with type "example" omitted + +# Unsupported target "struct-default-expanded" with type "example" omitted + +# Unsupported target "unsafe_unpin" with type "example" omitted + +# Unsupported target "unsafe_unpin-expanded" with type "example" omitted + +rust_library( + name = "pin_project", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__pin_project_internal__0_4_27//:pin_project_internal", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.27", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cfg" with type "test" omitted + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "drop_order" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + +# Unsupported target "pin_project" with type "test" omitted + +# Unsupported target "pinned_drop" with type "test" omitted + +# Unsupported target "project" with type "test" omitted + +# Unsupported target "project_ref" with type "test" omitted + +# Unsupported target "project_replace" with type "test" omitted + +# Unsupported target "repr_packed" with type "test" omitted + +# Unsupported target "sized" with type "test" omitted + +# Unsupported target "unsafe_unpin" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.pin-project-1.0.1.bazel b/third_party/rust/remote/BUILD.pin-project-1.0.1.bazel new file mode 100644 index 0000000000..38406567d9 --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-project-1.0.1.bazel @@ -0,0 +1,97 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "enum-default" with type "example" omitted + +# Unsupported target "enum-default-expanded" with type "example" omitted + +# Unsupported target "not_unpin" with type "example" omitted + +# Unsupported target "not_unpin-expanded" with type "example" omitted + +# Unsupported target "pinned_drop" with type "example" omitted + +# Unsupported target "pinned_drop-expanded" with type "example" omitted + +# Unsupported target "project_replace" with type "example" omitted + +# Unsupported target "project_replace-expanded" with type "example" omitted + +# Unsupported target "struct-default" with type "example" omitted + +# Unsupported target "struct-default-expanded" with type "example" omitted + +# Unsupported target "unsafe_unpin" with type "example" omitted + +# Unsupported target "unsafe_unpin-expanded" with type "example" omitted + +rust_library( + name = "pin_project", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__pin_project_internal__1_0_1//:pin_project_internal", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cfg" with type "test" omitted + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "drop_order" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + +# Unsupported target "pin_project" with type "test" omitted + +# Unsupported target "pinned_drop" with type "test" omitted + +# Unsupported target "proper_unpin" with type "test" omitted + +# Unsupported target "repr_packed" with type "test" omitted + +# Unsupported target "unsafe_unpin" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.pin-project-internal-0.4.27.bazel b/third_party/rust/remote/BUILD.pin-project-internal-0.4.27.bazel new file mode 100644 index 0000000000..ca53e2c229 --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-project-internal-0.4.27.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "pin_project_internal", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.27", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.pin-project-internal-1.0.1.bazel b/third_party/rust/remote/BUILD.pin-project-internal-1.0.1.bazel new file mode 100644 index 0000000000..06b544a953 --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-project-internal-1.0.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "pin_project_internal", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.pin-project-lite-0.1.11.bazel b/third_party/rust/remote/BUILD.pin-project-lite-0.1.11.bazel new file mode 100644 index 0000000000..db3536725d --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-project-lite-0.1.11.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "pin_project_lite", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.11", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "lint" with type "test" omitted + +# Unsupported target "proper_unpin" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.pin-utils-0.1.0.bazel b/third_party/rust/remote/BUILD.pin-utils-0.1.0.bazel new file mode 100644 index 0000000000..067f33a929 --- /dev/null +++ b/third_party/rust/remote/BUILD.pin-utils-0.1.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "pin_utils", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "projection" with type "test" omitted + +# Unsupported target "stack_pin" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.rand-0.7.3.bazel b/third_party/rust/remote/BUILD.rand-0.7.3.bazel index d15ff5b47c..4a1353001a 100644 --- a/third_party/rust/remote/BUILD.rand-0.7.3.bazel +++ b/third_party/rust/remote/BUILD.rand-0.7.3.bazel @@ -54,6 +54,8 @@ rust_library( "getrandom", "getrandom_package", "libc", + "rand_pcg", + "small_rng", "std", ], crate_root = "src/lib.rs", @@ -72,6 +74,7 @@ rust_library( "@raze__getrandom__0_1_15//:getrandom", "@raze__rand_chacha__0_2_2//:rand_chacha", "@raze__rand_core__0_5_1//:rand_core", + "@raze__rand_pcg__0_2_1//:rand_pcg", ] + selects.with_or({ # cfg(unix) ( diff --git a/third_party/rust/remote/BUILD.rand_pcg-0.2.1.bazel b/third_party/rust/remote/BUILD.rand_pcg-0.2.1.bazel new file mode 100644 index 0000000000..89f7db4879 --- /dev/null +++ b/third_party/rust/remote/BUILD.rand_pcg-0.2.1.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rand_pcg", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__rand_core__0_5_1//:rand_core", + ], +) + +# Unsupported target "lcg128xsl64" with type "test" omitted + +# Unsupported target "lcg64xsh32" with type "test" omitted + +# Unsupported target "mcg128xsl64" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.slab-0.4.2.bazel b/third_party/rust/remote/BUILD.slab-0.4.2.bazel new file mode 100644 index 0000000000..fcf46cc84c --- /dev/null +++ b/third_party/rust/remote/BUILD.slab-0.4.2.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "slab", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "slab" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.socket2-0.3.16.bazel b/third_party/rust/remote/BUILD.socket2-0.3.16.bazel new file mode 100644 index 0000000000..ebd0b9d2cc --- /dev/null +++ b/third_party/rust/remote/BUILD.socket2-0.3.16.bazel @@ -0,0 +1,72 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "socket2", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.16", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(any(unix, target_os = "redox")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__libc__0_2_80//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/third_party/rust/remote/BUILD.syn-1.0.48.bazel b/third_party/rust/remote/BUILD.syn-1.0.48.bazel index 7ffb495dc5..af3f067a55 100644 --- a/third_party/rust/remote/BUILD.syn-1.0.48.bazel +++ b/third_party/rust/remote/BUILD.syn-1.0.48.bazel @@ -44,10 +44,12 @@ rust_library( "default", "derive", "extra-traits", + "full", "parsing", "printing", "proc-macro", "quote", + "visit-mut", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/third_party/rust/remote/BUILD.tokio-0.2.22.bazel b/third_party/rust/remote/BUILD.tokio-0.2.22.bazel new file mode 100644 index 0000000000..47bbc39c65 --- /dev/null +++ b/third_party/rust/remote/BUILD.tokio-0.2.22.bazel @@ -0,0 +1,293 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tokio", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "blocking", + "default", + "fnv", + "futures-core", + "io-driver", + "io-util", + "iovec", + "lazy_static", + "macros", + "memchr", + "mio", + "rt-core", + "slab", + "stream", + "sync", + "tcp", + "time", + "tokio-macros", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__tokio_macros__0_2_6//:tokio_macros", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.22", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__fnv__1_0_7//:fnv", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__iovec__0_1_4//:iovec", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__memchr__2_3_4//:memchr", + "@raze__mio__0_6_22//:mio", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + "@raze__slab__0_4_2//:slab", + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "_require_full" with type "test" omitted + +# Unsupported target "async_send_sync" with type "test" omitted + +# Unsupported target "buffered" with type "test" omitted + +# Unsupported target "fs" with type "test" omitted + +# Unsupported target "fs_copy" with type "test" omitted + +# Unsupported target "fs_dir" with type "test" omitted + +# Unsupported target "fs_file" with type "test" omitted + +# Unsupported target "fs_file_mocked" with type "test" omitted + +# Unsupported target "fs_link" with type "test" omitted + +# Unsupported target "io_async_read" with type "test" omitted + +# Unsupported target "io_chain" with type "test" omitted + +# Unsupported target "io_copy" with type "test" omitted + +# Unsupported target "io_driver" with type "test" omitted + +# Unsupported target "io_driver_drop" with type "test" omitted + +# Unsupported target "io_lines" with type "test" omitted + +# Unsupported target "io_read" with type "test" omitted + +# Unsupported target "io_read_exact" with type "test" omitted + +# Unsupported target "io_read_line" with type "test" omitted + +# Unsupported target "io_read_to_end" with type "test" omitted + +# Unsupported target "io_read_to_string" with type "test" omitted + +# Unsupported target "io_read_until" with type "test" omitted + +# Unsupported target "io_split" with type "test" omitted + +# Unsupported target "io_take" with type "test" omitted + +# Unsupported target "io_write" with type "test" omitted + +# Unsupported target "io_write_all" with type "test" omitted + +# Unsupported target "io_write_int" with type "test" omitted + +# Unsupported target "macros_join" with type "test" omitted + +# Unsupported target "macros_pin" with type "test" omitted + +# Unsupported target "macros_select" with type "test" omitted + +# Unsupported target "macros_test" with type "test" omitted + +# Unsupported target "macros_try_join" with type "test" omitted + +# Unsupported target "net_bind_resource" with type "test" omitted + +# Unsupported target "net_lookup_host" with type "test" omitted + +# Unsupported target "no_rt" with type "test" omitted + +# Unsupported target "process_issue_2174" with type "test" omitted + +# Unsupported target "process_issue_42" with type "test" omitted + +# Unsupported target "process_kill_on_drop" with type "test" omitted + +# Unsupported target "process_smoke" with type "test" omitted + +# Unsupported target "read_to_string" with type "test" omitted + +# Unsupported target "rt_basic" with type "test" omitted + +# Unsupported target "rt_common" with type "test" omitted + +# Unsupported target "rt_threaded" with type "test" omitted + +# Unsupported target "signal_ctrl_c" with type "test" omitted + +# Unsupported target "signal_drop_recv" with type "test" omitted + +# Unsupported target "signal_drop_rt" with type "test" omitted + +# Unsupported target "signal_drop_signal" with type "test" omitted + +# Unsupported target "signal_multi_rt" with type "test" omitted + +# Unsupported target "signal_no_rt" with type "test" omitted + +# Unsupported target "signal_notify_both" with type "test" omitted + +# Unsupported target "signal_twice" with type "test" omitted + +# Unsupported target "signal_usr1" with type "test" omitted + +# Unsupported target "stream_chain" with type "test" omitted + +# Unsupported target "stream_collect" with type "test" omitted + +# Unsupported target "stream_empty" with type "test" omitted + +# Unsupported target "stream_fuse" with type "test" omitted + +# Unsupported target "stream_iter" with type "test" omitted + +# Unsupported target "stream_merge" with type "test" omitted + +# Unsupported target "stream_once" with type "test" omitted + +# Unsupported target "stream_pending" with type "test" omitted + +# Unsupported target "stream_reader" with type "test" omitted + +# Unsupported target "stream_stream_map" with type "test" omitted + +# Unsupported target "stream_timeout" with type "test" omitted + +# Unsupported target "sync_barrier" with type "test" omitted + +# Unsupported target "sync_broadcast" with type "test" omitted + +# Unsupported target "sync_cancellation_token" with type "test" omitted + +# Unsupported target "sync_errors" with type "test" omitted + +# Unsupported target "sync_mpsc" with type "test" omitted + +# Unsupported target "sync_mutex" with type "test" omitted + +# Unsupported target "sync_mutex_owned" with type "test" omitted + +# Unsupported target "sync_notify" with type "test" omitted + +# Unsupported target "sync_oneshot" with type "test" omitted + +# Unsupported target "sync_rwlock" with type "test" omitted + +# Unsupported target "sync_semaphore" with type "test" omitted + +# Unsupported target "sync_semaphore_owned" with type "test" omitted + +# Unsupported target "sync_watch" with type "test" omitted + +# Unsupported target "task_blocking" with type "test" omitted + +# Unsupported target "task_local" with type "test" omitted + +# Unsupported target "task_local_set" with type "test" omitted + +# Unsupported target "tcp_accept" with type "test" omitted + +# Unsupported target "tcp_connect" with type "test" omitted + +# Unsupported target "tcp_echo" with type "test" omitted + +# Unsupported target "tcp_into_split" with type "test" omitted + +# Unsupported target "tcp_peek" with type "test" omitted + +# Unsupported target "tcp_shutdown" with type "test" omitted + +# Unsupported target "tcp_split" with type "test" omitted + +# Unsupported target "test_clock" with type "test" omitted + +# Unsupported target "time_delay" with type "test" omitted + +# Unsupported target "time_delay_queue" with type "test" omitted + +# Unsupported target "time_interval" with type "test" omitted + +# Unsupported target "time_rt" with type "test" omitted + +# Unsupported target "time_throttle" with type "test" omitted + +# Unsupported target "time_timeout" with type "test" omitted + +# Unsupported target "udp" with type "test" omitted + +# Unsupported target "uds_cred" with type "test" omitted + +# Unsupported target "uds_datagram" with type "test" omitted + +# Unsupported target "uds_split" with type "test" omitted + +# Unsupported target "uds_stream" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tokio-macros-0.2.6.bazel b/third_party/rust/remote/BUILD.tokio-macros-0.2.6.bazel new file mode 100644 index 0000000000..e68ea51f85 --- /dev/null +++ b/third_party/rust/remote/BUILD.tokio-macros-0.2.6.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tokio_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.6", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.tokio-util-0.3.1.bazel b/third_party/rust/remote/BUILD.tokio-util-0.3.1.bazel new file mode 100644 index 0000000000..5dda8c61ca --- /dev/null +++ b/third_party/rust/remote/BUILD.tokio-util-0.3.1.bazel @@ -0,0 +1,72 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tokio_util", + srcs = glob(["**/*.rs"]), + crate_features = [ + "codec", + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__bytes__0_5_6//:bytes", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_sink__0_3_8//:futures_sink", + "@raze__log__0_4_11//:log", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + "@raze__tokio__0_2_22//:tokio", + ], +) + +# Unsupported target "codecs" with type "test" omitted + +# Unsupported target "framed" with type "test" omitted + +# Unsupported target "framed_read" with type "test" omitted + +# Unsupported target "framed_write" with type "test" omitted + +# Unsupported target "length_delimited" with type "test" omitted + +# Unsupported target "udp" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tonic-0.3.1.bazel b/third_party/rust/remote/BUILD.tonic-0.3.1.bazel new file mode 100644 index 0000000000..e6f41f5085 --- /dev/null +++ b/third_party/rust/remote/BUILD.tonic-0.3.1.bazel @@ -0,0 +1,94 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "decode" with type "bench" omitted + +rust_library( + name = "tonic", + srcs = glob(["**/*.rs"]), + aliases = { + "@raze__prost__0_6_1//:prost": "prost1", + }, + crate_features = [ + "async-trait", + "codegen", + "default", + "hyper", + "prost", + "prost-derive", + "prost1", + "tokio", + "tower", + "tower-balance", + "tower-load", + "tracing-futures", + "transport", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__async_trait__0_1_41//:async_trait", + "@raze__prost_derive__0_6_1//:prost_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__async_stream__0_2_1//:async_stream", + "@raze__base64__0_12_3//:base64", + "@raze__bytes__0_5_6//:bytes", + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__http__0_2_1//:http", + "@raze__http_body__0_3_1//:http_body", + "@raze__hyper__0_13_9//:hyper", + "@raze__percent_encoding__2_1_0//:percent_encoding", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__prost__0_6_1//:prost", + "@raze__tokio__0_2_22//:tokio", + "@raze__tokio_util__0_3_1//:tokio_util", + "@raze__tower__0_3_1//:tower", + "@raze__tower_balance__0_3_0//:tower_balance", + "@raze__tower_load__0_3_0//:tower_load", + "@raze__tower_make__0_3_0//:tower_make", + "@raze__tower_service__0_3_0//:tower_service", + "@raze__tracing__0_1_21//:tracing", + "@raze__tracing_futures__0_2_4//:tracing_futures", + ], +) diff --git a/third_party/rust/remote/BUILD.tonic-build-0.3.1.bazel b/third_party/rust/remote/BUILD.tonic-build-0.3.1.bazel new file mode 100644 index 0000000000..ed0b197cff --- /dev/null +++ b/third_party/rust/remote/BUILD.tonic-build-0.3.1.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tonic_build", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "prost", + "prost-build", + "rustfmt", + "transport", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__prost_build__0_6_1//:prost_build", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-0.3.1.bazel b/third_party/rust/remote/BUILD.tower-0.3.1.bazel new file mode 100644 index 0000000000..63bb3f9da0 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-0.3.1.bazel @@ -0,0 +1,67 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "full", + "log", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__tower_buffer__0_3_0//:tower_buffer", + "@raze__tower_discover__0_3_0//:tower_discover", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_limit__0_3_1//:tower_limit", + "@raze__tower_load_shed__0_3_0//:tower_load_shed", + "@raze__tower_retry__0_3_0//:tower_retry", + "@raze__tower_service__0_3_0//:tower_service", + "@raze__tower_timeout__0_3_0//:tower_timeout", + "@raze__tower_util__0_3_1//:tower_util", + ], +) + +# Unsupported target "builder" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-balance-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-balance-0.3.0.bazel new file mode 100644 index 0000000000..13ec09b799 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-balance-0.3.0.bazel @@ -0,0 +1,70 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "demo" with type "example" omitted + +rust_library( + name = "tower_balance", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "log", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__indexmap__1_6_0//:indexmap", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__rand__0_7_3//:rand", + "@raze__slab__0_4_2//:slab", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_discover__0_3_0//:tower_discover", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_load__0_3_0//:tower_load", + "@raze__tower_make__0_3_0//:tower_make", + "@raze__tower_ready_cache__0_3_1//:tower_ready_cache", + "@raze__tower_service__0_3_0//:tower_service", + "@raze__tracing__0_1_21//:tracing", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-buffer-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-buffer-0.3.0.bazel new file mode 100644 index 0000000000..48ca6ef772 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-buffer-0.3.0.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_buffer", + srcs = glob(["**/*.rs"]), + crate_features = [ + "log", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_service__0_3_0//:tower_service", + "@raze__tracing__0_1_21//:tracing", + ], +) + +# Unsupported target "buffer" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-discover-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-discover-0.3.0.bazel new file mode 100644 index 0000000000..713c8d9f6e --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-discover-0.3.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_discover", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tower_service__0_3_0//:tower_service", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-layer-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-layer-0.3.0.bazel new file mode 100644 index 0000000000..0af9a9697b --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-layer-0.3.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_layer", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.tower-limit-0.3.1.bazel b/third_party/rust/remote/BUILD.tower-limit-0.3.1.bazel new file mode 100644 index 0000000000..ce73d0bf9d --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-limit-0.3.1.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_limit", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_load__0_3_0//:tower_load", + "@raze__tower_service__0_3_0//:tower_service", + ], +) + +# Unsupported target "concurrency" with type "test" omitted + +# Unsupported target "rate" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-load-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-load-0.3.0.bazel new file mode 100644 index 0000000000..cd5ac7276d --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-load-0.3.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_load", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__log__0_4_11//:log", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_discover__0_3_0//:tower_discover", + "@raze__tower_service__0_3_0//:tower_service", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-load-shed-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-load-shed-0.3.0.bazel new file mode 100644 index 0000000000..aceb2852fd --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-load-shed-0.3.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_load_shed", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_service__0_3_0//:tower_service", + ], +) + +# Unsupported target "load-shed" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-make-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-make-0.3.0.bazel new file mode 100644 index 0000000000..3a68829c3e --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-make-0.3.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_make", + srcs = glob(["**/*.rs"]), + crate_features = [ + "connect", + "tokio", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_service__0_3_0//:tower_service", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-ready-cache-0.3.1.bazel b/third_party/rust/remote/BUILD.tower-ready-cache-0.3.1.bazel new file mode 100644 index 0000000000..961cec266b --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-ready-cache-0.3.1.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_ready_cache", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__indexmap__1_6_0//:indexmap", + "@raze__log__0_4_11//:log", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_service__0_3_0//:tower_service", + ], +) + +# Unsupported target "ready_cache" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-retry-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-retry-0.3.0.bazel new file mode 100644 index 0000000000..d09dce0cec --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-retry-0.3.0.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_retry", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_service__0_3_0//:tower_service", + ], +) + +# Unsupported target "retry" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tower-service-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-service-0.3.0.bazel new file mode 100644 index 0000000000..10df9df8d2 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-service-0.3.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_service", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.tower-timeout-0.3.0.bazel b/third_party/rust/remote/BUILD.tower-timeout-0.3.0.bazel new file mode 100644 index 0000000000..8e15aef575 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-timeout-0.3.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_timeout", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tokio__0_2_22//:tokio", + "@raze__tower_layer__0_3_0//:tower_layer", + "@raze__tower_service__0_3_0//:tower_service", + ], +) diff --git a/third_party/rust/remote/BUILD.tower-util-0.3.1.bazel b/third_party/rust/remote/BUILD.tower-util-0.3.1.bazel new file mode 100644 index 0000000000..83eb3ad929 --- /dev/null +++ b/third_party/rust/remote/BUILD.tower-util-0.3.1.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tower_util", + srcs = glob(["**/*.rs"]), + crate_features = [ + "call-all", + "default", + "futures-util", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + "@raze__futures_core__0_3_8//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tower_service__0_3_0//:tower_service", + ], +) + +# Unsupported target "call_all" with type "test" omitted + +# Unsupported target "service_fn" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tracing-0.1.21.bazel b/third_party/rust/remote/BUILD.tracing-0.1.21.bazel new file mode 100644 index 0000000000..565ee44be8 --- /dev/null +++ b/third_party/rust/remote/BUILD.tracing-0.1.21.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "no_subscriber" with type "bench" omitted + +# Unsupported target "subscriber" with type "bench" omitted + +rust_library( + name = "tracing", + srcs = glob(["**/*.rs"]), + crate_features = [ + "attributes", + "default", + "log", + "std", + "tracing-attributes", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__tracing_attributes__0_1_11//:tracing_attributes", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.21", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__0_1_10//:cfg_if", + "@raze__log__0_4_11//:log", + "@raze__pin_project_lite__0_1_11//:pin_project_lite", + "@raze__tracing_core__0_1_17//:tracing_core", + ], +) + +# Unsupported target "event" with type "test" omitted + +# Unsupported target "filter_caching_is_lexically_scoped" with type "test" omitted + +# Unsupported target "filters_are_not_reevaluated_for_the_same_span" with type "test" omitted + +# Unsupported target "filters_are_reevaluated_for_different_call_sites" with type "test" omitted + +# Unsupported target "filters_dont_leak" with type "test" omitted + +# Unsupported target "macro_imports" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted + +# Unsupported target "max_level_hint" with type "test" omitted + +# Unsupported target "multiple_max_level_hints" with type "test" omitted + +# Unsupported target "span" with type "test" omitted + +# Unsupported target "subscriber" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tracing-attributes-0.1.11.bazel b/third_party/rust/remote/BUILD.tracing-attributes-0.1.11.bazel new file mode 100644 index 0000000000..ba9cbfe101 --- /dev/null +++ b/third_party/rust/remote/BUILD.tracing-attributes-0.1.11.bazel @@ -0,0 +1,73 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tracing_attributes", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.11", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + ], +) + +# Unsupported target "async_fn" with type "test" omitted + +# Unsupported target "destructuring" with type "test" omitted + +# Unsupported target "err" with type "test" omitted + +# Unsupported target "fields" with type "test" omitted + +# Unsupported target "instrument" with type "test" omitted + +# Unsupported target "levels" with type "test" omitted + +# Unsupported target "names" with type "test" omitted + +# Unsupported target "support" with type "test" omitted + +# Unsupported target "targets" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tracing-core-0.1.17.bazel b/third_party/rust/remote/BUILD.tracing-core-0.1.17.bazel new file mode 100644 index 0000000000..7cd3db7596 --- /dev/null +++ b/third_party/rust/remote/BUILD.tracing-core-0.1.17.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tracing_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + "lazy_static", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.17", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", + ], +) + +# Unsupported target "dispatch" with type "test" omitted + +# Unsupported target "global_dispatch" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tracing-futures-0.2.4.bazel b/third_party/rust/remote/BUILD.tracing-futures-0.2.4.bazel new file mode 100644 index 0000000000..853eef0a8f --- /dev/null +++ b/third_party/rust/remote/BUILD.tracing-futures-0.2.4.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "tracing_futures", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "pin-project", + "std", + "std-future", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.4", + # buildifier: leave-alone + deps = [ + "@raze__pin_project__0_4_27//:pin_project", + "@raze__tracing__0_1_21//:tracing", + ], +) + +# Unsupported target "std_future" with type "test" omitted + +# Unsupported target "support" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.try-lock-0.2.3.bazel b/third_party/rust/remote/BUILD.try-lock-0.2.3.bazel new file mode 100644 index 0000000000..95ca83dc94 --- /dev/null +++ b/third_party/rust/remote/BUILD.try-lock-0.2.3.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "try_lock", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.want-0.3.0.bazel b/third_party/rust/remote/BUILD.want-0.3.0.bazel new file mode 100644 index 0000000000..5ba69692da --- /dev/null +++ b/third_party/rust/remote/BUILD.want-0.3.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "throughput" with type "bench" omitted + +rust_library( + name = "want", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + "@raze__log__0_4_11//:log", + "@raze__try_lock__0_2_3//:try_lock", + ], +) diff --git a/third_party/rust/remote/BUILD.winapi-0.2.8.bazel b/third_party/rust/remote/BUILD.winapi-0.2.8.bazel new file mode 100644 index 0000000000..225340b0a1 --- /dev/null +++ b/third_party/rust/remote/BUILD.winapi-0.2.8.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.winapi-0.3.9.bazel b/third_party/rust/remote/BUILD.winapi-0.3.9.bazel index 2c9542613b..dffdf6ce19 100644 --- a/third_party/rust/remote/BUILD.winapi-0.3.9.bazel +++ b/third_party/rust/remote/BUILD.winapi-0.3.9.bazel @@ -39,9 +39,14 @@ rust_library( "errhandlingapi", "fileapi", "handleapi", + "minwindef", "std", "winbase", "winerror", + "winsock2", + "ws2def", + "ws2ipdef", + "ws2tcpip", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/third_party/rust/remote/BUILD.winapi-build-0.1.1.bazel b/third_party/rust/remote/BUILD.winapi-build-0.1.1.bazel new file mode 100644 index 0000000000..6816972d1c --- /dev/null +++ b/third_party/rust/remote/BUILD.winapi-build-0.1.1.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +alias( + name = "winapi_build", + actual = ":build", + tags = [ + "cargo-raze", + "manual", + ], +) + +rust_library( + name = "build", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.ws2_32-sys-0.2.1.bazel b/third_party/rust/remote/BUILD.ws2_32-sys-0.2.1.bazel new file mode 100644 index 0000000000..4c479ecfd1 --- /dev/null +++ b/third_party/rust/remote/BUILD.ws2_32-sys-0.2.1.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//third_party/rust", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +alias( + name = "ws2_32_sys", + actual = ":ws2_32", + tags = [ + "cargo-raze", + "manual", + ], +) + +rust_library( + name = "ws2_32", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@raze__winapi__0_2_8//:winapi", + ], +) From dacd2fe1d9e9aef4b095afda2d3aabb7ffa3d617 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 15:51:54 -0800 Subject: [PATCH 2/7] rust: compile gRPC bindings with Tonic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This patch switches our Rust protocol buffer bindings from `prost-build` to `tonic-build`. This generates the same protobuf message types, since Tonic interoperates with Prost, but can now also generate gRPC stubs. Test Plan: Check the doc server to see that our existing proto types still look good, in the `rustboard_core::proto::tensorboard` package. We don’t have gRPC services to generate yet. A follow-up commit will add a demo server as proof of concept. wchargin-branch: rust-compile-grpc wchargin-source: c5090247a8a25c1902d4b42597ec4d4ae2593779 --- tensorboard/data/server/BUILD | 3 +- tensorboard/data/server/gen_protos_tool.rs | 4 +- tensorboard/data/server/tensorboard.pb.rs | 184 ++++++++++----------- 3 files changed, 95 insertions(+), 96 deletions(-) diff --git a/tensorboard/data/server/BUILD b/tensorboard/data/server/BUILD index 861f777f72..8f39fad7c8 100644 --- a/tensorboard/data/server/BUILD +++ b/tensorboard/data/server/BUILD @@ -35,6 +35,7 @@ rust_library( "//third_party/rust:prost", "//third_party/rust:rand", "//third_party/rust:rand_chacha", + "//third_party/rust:tonic", ], ) @@ -89,7 +90,7 @@ rust_binary( edition = "2018", visibility = ["//visibility:private"], deps = [ - "//third_party/rust:prost_build", + "//third_party/rust:tonic_build", ], ) diff --git a/tensorboard/data/server/gen_protos_tool.rs b/tensorboard/data/server/gen_protos_tool.rs index 0d7f5683a5..a54f6e725c 100644 --- a/tensorboard/data/server/gen_protos_tool.rs +++ b/tensorboard/data/server/gen_protos_tool.rs @@ -26,9 +26,9 @@ fn main() -> std::io::Result<()> { dir.push("genproto"); dir }; - prost_build::Config::new() + tonic_build::configure() .out_dir(&out_dir) - .compile_protos(&["tensorboard/compat/proto/event.proto"], &["."]) + .compile(&["tensorboard/compat/proto/event.proto"], &["."]) .expect("compile_protos"); Ok(()) } diff --git a/tensorboard/data/server/tensorboard.pb.rs b/tensorboard/data/server/tensorboard.pb.rs index f8ab471487..d406ce604c 100644 --- a/tensorboard/data/server/tensorboard.pb.rs +++ b/tensorboard/data/server/tensorboard.pb.rs @@ -29,12 +29,12 @@ pub struct TensorShapeProto { /// in-memory layout of RowMajor Eigen tensors. /// /// If "dim.size()" > 0, "unknown_rank" must be false. - #[prost(message, repeated, tag="2")] + #[prost(message, repeated, tag = "2")] pub dim: ::std::vec::Vec, /// If true, the number of dimensions in the shape is unknown. /// /// If true, "dim.size()" must be 0. - #[prost(bool, tag="3")] + #[prost(bool, tag = "3")] pub unknown_rank: bool, } pub mod tensor_shape_proto { @@ -46,10 +46,10 @@ pub mod tensor_shape_proto { /// shapes (values of -1 mean "unknown" dimension). Certain wrappers /// that work with TensorShapeProto may fail at runtime when deserializing /// a TensorShapeProto containing a dim value of -1. - #[prost(int64, tag="1")] + #[prost(int64, tag = "1")] pub size: i64, /// Optional name of the tensor dimension. - #[prost(string, tag="2")] + #[prost(string, tag = "2")] pub name: std::string::String, } } @@ -139,121 +139,119 @@ pub enum SpecializedType { #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResourceHandleProto { /// Unique name for the device containing the resource. - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub device: std::string::String, /// Container in which this resource is placed. - #[prost(string, tag="2")] + #[prost(string, tag = "2")] pub container: std::string::String, /// Unique name of this resource. - #[prost(string, tag="3")] + #[prost(string, tag = "3")] pub name: std::string::String, /// Hash code for the type of the resource. Is only valid in the same device /// and in the same execution. - #[prost(uint64, tag="4")] + #[prost(uint64, tag = "4")] pub hash_code: u64, /// For debug-only, the name of the type pointed to by this handle, if /// available. - #[prost(string, tag="5")] + #[prost(string, tag = "5")] pub maybe_type_name: std::string::String, /// Data types and shapes for the underlying resource. - #[prost(message, repeated, tag="6")] + #[prost(message, repeated, tag = "6")] pub dtypes_and_shapes: ::std::vec::Vec, } pub mod resource_handle_proto { /// Protocol buffer representing a pair of (data type, tensor shape). #[derive(Clone, PartialEq, ::prost::Message)] pub struct DtypeAndShape { - #[prost(enumeration="super::DataType", tag="1")] + #[prost(enumeration = "super::DataType", tag = "1")] pub dtype: i32, - #[prost(message, optional, tag="2")] + #[prost(message, optional, tag = "2")] pub shape: ::std::option::Option, } } /// Protocol buffer representing a tensor. #[derive(Clone, PartialEq, ::prost::Message)] pub struct TensorProto { - #[prost(enumeration="DataType", tag="1")] + #[prost(enumeration = "DataType", tag = "1")] pub dtype: i32, /// Shape of the tensor. TODO(touts): sort out the 0-rank issues. - #[prost(message, optional, tag="2")] + #[prost(message, optional, tag = "2")] pub tensor_shape: ::std::option::Option, // Only one of the representations below is set, one of "tensor_contents" and // the "xxx_val" attributes. We are not using oneof because as oneofs cannot // contain repeated fields it would require another extra set of messages. - /// Version number. /// /// In version 0, if the "repeated xxx" representations contain only one /// element, that element is repeated to fill the shape. This makes it easy /// to represent a constant Tensor with a single value. - #[prost(int32, tag="3")] + #[prost(int32, tag = "3")] pub version_number: i32, /// Serialized raw tensor content from either Tensor::AsProtoTensorContent or /// memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation /// can be used for all tensor types. The purpose of this representation is to /// reduce serialization overhead during RPC call by avoiding serialization of /// many repeated small items. - #[prost(bytes, tag="4")] + #[prost(bytes, tag = "4")] pub tensor_content: std::vec::Vec, // Type specific representations that make it easy to create tensor protos in // all languages. Only the representation corresponding to "dtype" can // be set. The values hold the flattened representation of the tensor in // row major order. - /// DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll /// have some pointless zero padding for each value here. - #[prost(int32, repeated, tag="13")] + #[prost(int32, repeated, tag = "13")] pub half_val: ::std::vec::Vec, /// DT_FLOAT. - #[prost(float, repeated, tag="5")] + #[prost(float, repeated, tag = "5")] pub float_val: ::std::vec::Vec, /// DT_DOUBLE. - #[prost(double, repeated, tag="6")] + #[prost(double, repeated, tag = "6")] pub double_val: ::std::vec::Vec, /// DT_INT32, DT_INT16, DT_INT8, DT_UINT8. - #[prost(int32, repeated, tag="7")] + #[prost(int32, repeated, tag = "7")] pub int_val: ::std::vec::Vec, /// DT_STRING - #[prost(bytes, repeated, tag="8")] + #[prost(bytes, repeated, tag = "8")] pub string_val: ::std::vec::Vec>, /// DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real /// and imaginary parts of i-th single precision complex. - #[prost(float, repeated, tag="9")] + #[prost(float, repeated, tag = "9")] pub scomplex_val: ::std::vec::Vec, /// DT_INT64 - #[prost(int64, repeated, tag="10")] + #[prost(int64, repeated, tag = "10")] pub int64_val: ::std::vec::Vec, /// DT_BOOL - #[prost(bool, repeated, tag="11")] + #[prost(bool, repeated, tag = "11")] pub bool_val: ::std::vec::Vec, /// DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real /// and imaginary parts of i-th double precision complex. - #[prost(double, repeated, tag="12")] + #[prost(double, repeated, tag = "12")] pub dcomplex_val: ::std::vec::Vec, /// DT_RESOURCE - #[prost(message, repeated, tag="14")] + #[prost(message, repeated, tag = "14")] pub resource_handle_val: ::std::vec::Vec, /// DT_VARIANT - #[prost(message, repeated, tag="15")] + #[prost(message, repeated, tag = "15")] pub variant_val: ::std::vec::Vec, /// DT_UINT32 - #[prost(uint32, repeated, tag="16")] + #[prost(uint32, repeated, tag = "16")] pub uint32_val: ::std::vec::Vec, /// DT_UINT64 - #[prost(uint64, repeated, tag="17")] + #[prost(uint64, repeated, tag = "17")] pub uint64_val: ::std::vec::Vec, } /// Protocol buffer representing the serialization format of DT_VARIANT tensors. #[derive(Clone, PartialEq, ::prost::Message)] pub struct VariantTensorDataProto { /// Name of the type of objects being serialized. - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub type_name: std::string::String, /// Portions of the object that are not Tensors. - #[prost(bytes, tag="2")] + #[prost(bytes, tag = "2")] pub metadata: std::vec::Vec, /// Tensors contained within objects being serialized. - #[prost(message, repeated, tag="3")] + #[prost(message, repeated, tag = "3")] pub tensors: ::std::vec::Vec, } /// Metadata associated with a series of Summary data @@ -261,31 +259,31 @@ pub struct VariantTensorDataProto { pub struct SummaryDescription { /// Hint on how plugins should process the data in this series. /// Supported values include "scalar", "histogram", "image", "audio" - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub type_hint: std::string::String, } /// Serialization format for histogram module in /// core/lib/histogram/histogram.h #[derive(Clone, PartialEq, ::prost::Message)] pub struct HistogramProto { - #[prost(double, tag="1")] + #[prost(double, tag = "1")] pub min: f64, - #[prost(double, tag="2")] + #[prost(double, tag = "2")] pub max: f64, - #[prost(double, tag="3")] + #[prost(double, tag = "3")] pub num: f64, - #[prost(double, tag="4")] + #[prost(double, tag = "4")] pub sum: f64, - #[prost(double, tag="5")] + #[prost(double, tag = "5")] pub sum_squares: f64, /// Parallel arrays encoding the bucket boundaries and the bucket values. /// bucket(i) is the count for the bucket i. The range for /// a bucket is: /// i == 0: -DBL_MAX .. bucket_limit(0) /// i != 0: bucket_limit(i-1) .. bucket_limit(i) - #[prost(double, repeated, tag="6")] + #[prost(double, repeated, tag = "6")] pub bucket_limit: ::std::vec::Vec, - #[prost(double, repeated, tag="7")] + #[prost(double, repeated, tag = "7")] pub bucket: ::std::vec::Vec, } /// A SummaryMetadata encapsulates information on which plugins are able to make @@ -293,30 +291,30 @@ pub struct HistogramProto { #[derive(Clone, PartialEq, ::prost::Message)] pub struct SummaryMetadata { /// Data that associates a summary with a certain plugin. - #[prost(message, optional, tag="1")] + #[prost(message, optional, tag = "1")] pub plugin_data: ::std::option::Option, /// Display name for viewing in TensorBoard. - #[prost(string, tag="2")] + #[prost(string, tag = "2")] pub display_name: std::string::String, /// Longform readable description of the summary sequence. Markdown supported. - #[prost(string, tag="3")] + #[prost(string, tag = "3")] pub summary_description: std::string::String, /// Class of data stored in this time series. Required for compatibility with /// TensorBoard's generic data facilities (`DataProvider`, et al.). This value /// imposes constraints on the dtype and shape of the corresponding tensor /// values. See `DataClass` docs for details. - #[prost(enumeration="DataClass", tag="4")] + #[prost(enumeration = "DataClass", tag = "4")] pub data_class: i32, } pub mod summary_metadata { #[derive(Clone, PartialEq, ::prost::Message)] pub struct PluginData { /// The name of the plugin this data pertains to. - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub plugin_name: std::string::String, /// The content to store for the plugin. The best practice is for this to be /// a binary serialized protocol buffer. - #[prost(bytes, tag="2")] + #[prost(bytes, tag = "2")] pub content: std::vec::Vec, } } @@ -329,16 +327,16 @@ pub mod summary_metadata { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Summary { /// Set of values for the summary. - #[prost(message, repeated, tag="1")] + #[prost(message, repeated, tag = "1")] pub value: ::std::vec::Vec, } pub mod summary { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Image { /// Dimensions of the image. - #[prost(int32, tag="1")] + #[prost(int32, tag = "1")] pub height: i32, - #[prost(int32, tag="2")] + #[prost(int32, tag = "2")] pub width: i32, /// Valid colorspace values are /// 1 - grayscale @@ -347,67 +345,67 @@ pub mod summary { /// 4 - RGBA /// 5 - DIGITAL_YUV /// 6 - BGRA - #[prost(int32, tag="3")] + #[prost(int32, tag = "3")] pub colorspace: i32, /// Image data in encoded format. All image formats supported by /// image_codec::CoderUtil can be stored here. - #[prost(bytes, tag="4")] + #[prost(bytes, tag = "4")] pub encoded_image_string: std::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Audio { /// Sample rate of the audio in Hz. - #[prost(float, tag="1")] + #[prost(float, tag = "1")] pub sample_rate: f32, /// Number of channels of audio. - #[prost(int64, tag="2")] + #[prost(int64, tag = "2")] pub num_channels: i64, /// Length of the audio in frames (samples per channel). - #[prost(int64, tag="3")] + #[prost(int64, tag = "3")] pub length_frames: i64, /// Encoded audio data and its associated RFC 2045 content type (e.g. /// "audio/wav"). - #[prost(bytes, tag="4")] + #[prost(bytes, tag = "4")] pub encoded_audio_string: std::vec::Vec, - #[prost(string, tag="5")] + #[prost(string, tag = "5")] pub content_type: std::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Value { /// This field is deprecated and will not be set. - #[prost(string, tag="7")] + #[prost(string, tag = "7")] pub node_name: std::string::String, /// Tag name for the data. Used by TensorBoard plugins to organize data. Tags /// are often organized by scope (which contains slashes to convey /// hierarchy). For example: foo/bar/0 - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub tag: std::string::String, /// Contains metadata on the summary value such as which plugins may use it. /// Take note that many summary values may lack a metadata field. This is /// because the FileWriter only keeps a metadata object on the first summary /// value with a certain tag for each tag. TensorBoard then remembers which /// tags are associated with which plugins. This saves space. - #[prost(message, optional, tag="9")] + #[prost(message, optional, tag = "9")] pub metadata: ::std::option::Option, /// Value associated with the tag. - #[prost(oneof="value::Value", tags="2, 3, 4, 5, 6, 8")] + #[prost(oneof = "value::Value", tags = "2, 3, 4, 5, 6, 8")] pub value: ::std::option::Option, } pub mod value { /// Value associated with the tag. #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { - #[prost(float, tag="2")] + #[prost(float, tag = "2")] SimpleValue(f32), - #[prost(bytes, tag="3")] + #[prost(bytes, tag = "3")] ObsoleteOldStyleHistogram(std::vec::Vec), - #[prost(message, tag="4")] + #[prost(message, tag = "4")] Image(super::Image), - #[prost(message, tag="5")] + #[prost(message, tag = "5")] Histo(super::super::HistogramProto), - #[prost(message, tag="6")] + #[prost(message, tag = "6")] Audio(super::Audio), - #[prost(message, tag="8")] + #[prost(message, tag = "8")] Tensor(super::super::TensorProto), } } @@ -436,12 +434,12 @@ pub enum DataClass { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { /// Timestamp of the event. - #[prost(double, tag="1")] + #[prost(double, tag = "1")] pub wall_time: f64, /// Global step of the event. - #[prost(int64, tag="2")] + #[prost(int64, tag = "2")] pub step: i64, - #[prost(oneof="event::What", tags="3, 4, 5, 6, 7, 8, 9")] + #[prost(oneof = "event::What", tags = "3, 4, 5, 6, 7, 8, 9")] pub what: ::std::option::Option, } pub mod event { @@ -451,35 +449,35 @@ pub mod event { /// This is use to identify the contents of the record IO files /// easily. Current version is "brain.Event:2". All versions /// start with "brain.Event:". - #[prost(string, tag="3")] + #[prost(string, tag = "3")] FileVersion(std::string::String), /// An encoded version of a GraphDef. - #[prost(bytes, tag="4")] + #[prost(bytes, tag = "4")] GraphDef(std::vec::Vec), /// A summary was generated. - #[prost(message, tag="5")] + #[prost(message, tag = "5")] Summary(super::Summary), /// The user output a log message. Not all messages are logged, only ones /// generated via the Python tensorboard_logging module. - #[prost(message, tag="6")] + #[prost(message, tag = "6")] LogMessage(super::LogMessage), /// The state of the session which can be used for restarting after crashes. - #[prost(message, tag="7")] + #[prost(message, tag = "7")] SessionLog(super::SessionLog), /// The metadata returned by running a session.run() call. - #[prost(message, tag="8")] + #[prost(message, tag = "8")] TaggedRunMetadata(super::TaggedRunMetadata), /// An encoded version of a MetaGraphDef. - #[prost(bytes, tag="9")] + #[prost(bytes, tag = "9")] MetaGraphDef(std::vec::Vec), } } /// Protocol buffer used for logging messages to the events file. #[derive(Clone, PartialEq, ::prost::Message)] pub struct LogMessage { - #[prost(enumeration="log_message::Level", tag="1")] + #[prost(enumeration = "log_message::Level", tag = "1")] pub level: i32, - #[prost(string, tag="2")] + #[prost(string, tag = "2")] pub message: std::string::String, } pub mod log_message { @@ -501,12 +499,12 @@ pub mod log_message { /// Protocol buffer used for logging session state. #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionLog { - #[prost(enumeration="session_log::SessionStatus", tag="1")] + #[prost(enumeration = "session_log::SessionStatus", tag = "1")] pub status: i32, /// This checkpoint_path contains both the path and filename. - #[prost(string, tag="2")] + #[prost(string, tag = "2")] pub checkpoint_path: std::string::String, - #[prost(string, tag="3")] + #[prost(string, tag = "3")] pub msg: std::string::String, } pub mod session_log { @@ -523,39 +521,39 @@ pub mod session_log { #[derive(Clone, PartialEq, ::prost::Message)] pub struct TaggedRunMetadata { /// Tag name associated with this metadata. - #[prost(string, tag="1")] + #[prost(string, tag = "1")] pub tag: std::string::String, /// Byte-encoded version of the `RunMetadata` proto in order to allow lazy /// deserialization. - #[prost(bytes, tag="2")] + #[prost(bytes, tag = "2")] pub run_metadata: std::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WatchdogConfig { - #[prost(int64, tag="1")] + #[prost(int64, tag = "1")] pub timeout_ms: i64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestedExitCode { - #[prost(int32, tag="1")] + #[prost(int32, tag = "1")] pub exit_code: i32, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerHeartbeatRequest { - #[prost(enumeration="WorkerShutdownMode", tag="1")] + #[prost(enumeration = "WorkerShutdownMode", tag = "1")] pub shutdown_mode: i32, - #[prost(message, optional, tag="2")] + #[prost(message, optional, tag = "2")] pub watchdog_config: ::std::option::Option, - #[prost(message, optional, tag="3")] + #[prost(message, optional, tag = "3")] pub exit_code: ::std::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerHeartbeatResponse { - #[prost(enumeration="WorkerHealth", tag="1")] + #[prost(enumeration = "WorkerHealth", tag = "1")] pub health_status: i32, - #[prost(message, repeated, tag="2")] + #[prost(message, repeated, tag = "2")] pub worker_log: ::std::vec::Vec, - #[prost(string, tag="3")] + #[prost(string, tag = "3")] pub hostname: std::string::String, } // Worker heartbeat messages. Support for these operations is currently From 155c40cf7c08b34ad540fce349243af9a8a6f03f Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 15:52:01 -0800 Subject: [PATCH 3/7] rust: add demo Tonic server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This patch defines a simple “demo” service with one RPC, which adds a sequence of numbers. It includes a Tonic server for this service to demonstrate the end-to-end setup. Test Plan: In one shell, run `bazel run -c opt //tensorboard/data/server`. In another shell, use `grpc_cli` to send an RPC to localhost port 6789: ``` grpc_cli --channel_creds_type=insecure \ --protofiles tensorboard/data/server/demo.proto \ call localhost:6789 Demo.Add "term: 2 term: 2" ``` This should print a response like `sum: 4`. On my machine, it completes in 5.2 ± 2.6 ms (methodology: run `hyperfine` on the above command). This seems reasonably fast given that it has to establish a connection, whereas a Python gRPC client will keep a connection open. It’s also well below the 40ms magic number for `TCP_NODELAY` issues. wchargin-branch: rust-demo-tonic-server wchargin-source: 25d9fcbf2279742cdffde0c5357711244e9afef2 --- tensorboard/data/server/BUILD | 11 +- tensorboard/data/server/demo.pb.rs | 191 +++++++++++++++++++++ tensorboard/data/server/demo.proto | 15 ++ tensorboard/data/server/gen_protos_tool.rs | 8 +- tensorboard/data/server/lib.rs | 4 + tensorboard/data/server/main.rs | 34 +++- 6 files changed, 260 insertions(+), 3 deletions(-) create mode 100644 tensorboard/data/server/demo.pb.rs create mode 100644 tensorboard/data/server/demo.proto diff --git a/tensorboard/data/server/BUILD b/tensorboard/data/server/BUILD index 8f39fad7c8..6c4d8a4647 100644 --- a/tensorboard/data/server/BUILD +++ b/tensorboard/data/server/BUILD @@ -6,7 +6,10 @@ licenses(["notice"]) # Protocol buffer packages (as in `package foo.bar;` directives) that we need # to compile to Rust bindings. -_proto_packages = ["tensorboard"] +_proto_packages = [ + "demo", + "tensorboard", +] # Generated files with Rust protobuf bindings. These only exist in the build # graph, not in the source tree. The file name pattern is specified by Prost @@ -69,11 +72,17 @@ rust_binary( name = "server", srcs = ["main.rs"], edition = "2018", + deps = [ + ":rustboard_core", + "//third_party/rust:tokio", + "//third_party/rust:tonic", + ], ) genrule( name = "gen_protos", srcs = [ + ":demo.proto", "//tensorboard/compat/proto:proto_srcs", ], outs = _genproto_files, diff --git a/tensorboard/data/server/demo.pb.rs b/tensorboard/data/server/demo.pb.rs new file mode 100644 index 0000000000..437cf58cfb --- /dev/null +++ b/tensorboard/data/server/demo.pb.rs @@ -0,0 +1,191 @@ +/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ + +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddRequest { + #[prost(int32, repeated, tag = "1")] + pub term: ::std::vec::Vec, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddResponse { + #[prost(int32, tag = "1")] + pub sum: i32, +} +#[doc = r" Generated client implementations."] +pub mod demo_client { + #![allow(unused_variables, dead_code, missing_docs)] + use tonic::codegen::*; + pub struct DemoClient { + inner: tonic::client::Grpc, + } + impl DemoClient { + #[doc = r" Attempt to create a new client by connecting to a given endpoint."] + pub async fn connect(dst: D) -> Result + where + D: std::convert::TryInto, + D::Error: Into, + { + let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; + Ok(Self::new(conn)) + } + } + impl DemoClient + where + T: tonic::client::GrpcService, + T::ResponseBody: Body + HttpBody + Send + 'static, + T::Error: Into, + ::Error: Into + Send, + { + pub fn new(inner: T) -> Self { + let inner = tonic::client::Grpc::new(inner); + Self { inner } + } + pub fn with_interceptor(inner: T, interceptor: impl Into) -> Self { + let inner = tonic::client::Grpc::with_interceptor(inner, interceptor); + Self { inner } + } + pub async fn add( + &mut self, + request: impl tonic::IntoRequest, + ) -> Result, tonic::Status> { + self.inner.ready().await.map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static("/demo.Demo/Add"); + self.inner.unary(request.into_request(), path, codec).await + } + } + impl Clone for DemoClient { + fn clone(&self) -> Self { + Self { + inner: self.inner.clone(), + } + } + } + impl std::fmt::Debug for DemoClient { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "DemoClient {{ ... }}") + } + } +} +#[doc = r" Generated server implementations."] +pub mod demo_server { + #![allow(unused_variables, dead_code, missing_docs)] + use tonic::codegen::*; + #[doc = "Generated trait containing gRPC methods that should be implemented for use with DemoServer."] + #[async_trait] + pub trait Demo: Send + Sync + 'static { + async fn add( + &self, + request: tonic::Request, + ) -> Result, tonic::Status>; + } + #[derive(Debug)] + pub struct DemoServer { + inner: _Inner, + } + struct _Inner(Arc, Option); + impl DemoServer { + pub fn new(inner: T) -> Self { + let inner = Arc::new(inner); + let inner = _Inner(inner, None); + Self { inner } + } + pub fn with_interceptor(inner: T, interceptor: impl Into) -> Self { + let inner = Arc::new(inner); + let inner = _Inner(inner, Some(interceptor.into())); + Self { inner } + } + } + impl Service> for DemoServer + where + T: Demo, + B: HttpBody + Send + Sync + 'static, + B::Error: Into + Send + 'static, + { + type Response = http::Response; + type Error = Never; + type Future = BoxFuture; + fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(())) + } + fn call(&mut self, req: http::Request) -> Self::Future { + let inner = self.inner.clone(); + match req.uri().path() { + "/demo.Demo/Add" => { + #[allow(non_camel_case_types)] + struct AddSvc(pub Arc); + impl tonic::server::UnaryService for AddSvc { + type Response = super::AddResponse; + type Future = BoxFuture, tonic::Status>; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = self.0.clone(); + let fut = async move { (*inner).add(request).await }; + Box::pin(fut) + } + } + let inner = self.inner.clone(); + let fut = async move { + let interceptor = inner.1.clone(); + let inner = inner.0; + let method = AddSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = if let Some(interceptor) = interceptor { + tonic::server::Grpc::with_interceptor(codec, interceptor) + } else { + tonic::server::Grpc::new(codec) + }; + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + _ => Box::pin(async move { + Ok(http::Response::builder() + .status(200) + .header("grpc-status", "12") + .body(tonic::body::BoxBody::empty()) + .unwrap()) + }), + } + } + } + impl Clone for DemoServer { + fn clone(&self) -> Self { + let inner = self.inner.clone(); + Self { inner } + } + } + impl Clone for _Inner { + fn clone(&self) -> Self { + Self(self.0.clone(), self.1.clone()) + } + } + impl std::fmt::Debug for _Inner { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self.0) + } + } + impl tonic::transport::NamedService for DemoServer { + const NAME: &'static str = "demo.Demo"; + } +} diff --git a/tensorboard/data/server/demo.proto b/tensorboard/data/server/demo.proto new file mode 100644 index 0000000000..e5292315d2 --- /dev/null +++ b/tensorboard/data/server/demo.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package demo; + +service Demo { + rpc Add(AddRequest) returns (AddResponse); +} + +message AddRequest { + repeated int32 term = 1; +} + +message AddResponse { + int32 sum = 1; +} diff --git a/tensorboard/data/server/gen_protos_tool.rs b/tensorboard/data/server/gen_protos_tool.rs index a54f6e725c..88cac78f02 100644 --- a/tensorboard/data/server/gen_protos_tool.rs +++ b/tensorboard/data/server/gen_protos_tool.rs @@ -28,7 +28,13 @@ fn main() -> std::io::Result<()> { }; tonic_build::configure() .out_dir(&out_dir) - .compile(&["tensorboard/compat/proto/event.proto"], &["."]) + .compile( + &[ + "tensorboard/compat/proto/event.proto", + "tensorboard/data/server/demo.proto", + ], + &["."], + ) .expect("compile_protos"); Ok(()) } diff --git a/tensorboard/data/server/lib.rs b/tensorboard/data/server/lib.rs index 7dbe906eef..ffd56b4c6c 100644 --- a/tensorboard/data/server/lib.rs +++ b/tensorboard/data/server/lib.rs @@ -25,6 +25,10 @@ mod scripted_reader; /// Protocol buffer bindings. #[allow(clippy::all)] pub mod proto { + /// Bindings for `package demo`, used for a demo Tonic server. + pub mod demo { + include!("demo.pb.rs"); + } /// Bindings for `package tensorboard`, containing standard TensorFlow protos. pub mod tensorboard { include!("tensorboard.pb.rs"); diff --git a/tensorboard/data/server/main.rs b/tensorboard/data/server/main.rs index 609d8b4fe1..fcfcaf4d9f 100644 --- a/tensorboard/data/server/main.rs +++ b/tensorboard/data/server/main.rs @@ -13,4 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -fn main() {} +use tonic::{transport::Server, Request, Response}; + +use rustboard_core::proto::demo as pb; + +#[derive(Debug, Default)] +struct DemoHandler; + +#[tonic::async_trait] +impl pb::demo_server::Demo for DemoHandler { + async fn add( + &self, + request: Request, + ) -> Result, tonic::Status> { + let request = request.into_inner(); + let sum: i32 = request.term.into_iter().sum(); + let response = pb::AddResponse { + sum, + ..Default::default() + }; + Ok(Response::new(response)) + } +} + +#[tokio::main] +async fn main() -> Result<(), Box> { + let addr = "[::0]:6789".parse::()?; + let handler = DemoHandler::default(); + Server::builder() + .add_service(pb::demo_server::DemoServer::new(handler)) + .serve(addr) + .await?; + Ok(()) +} From d743728d8707cce167b836302044287a6e6a7f8f Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 18:43:05 -0800 Subject: [PATCH 4/7] [update patch] wchargin-branch: rust-demo-tonic-server wchargin-source: 2181a31c718433d5113cbb1fe2e51c7c98193cc1 --- tensorboard/data/server/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorboard/data/server/main.rs b/tensorboard/data/server/main.rs index fcfcaf4d9f..86dc2c7be8 100644 --- a/tensorboard/data/server/main.rs +++ b/tensorboard/data/server/main.rs @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#![allow(clippy::needless_update)] // https://github.com/rust-lang/rust-clippy/issues/6323 + use tonic::{transport::Server, Request, Response}; use rustboard_core::proto::demo as pb; From 6a5ef83ffd54f1184fb441e360aed7b4c36b4d32 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 21:02:08 -0800 Subject: [PATCH 5/7] [update patch] wchargin-branch: rust-compile-grpc wchargin-source: ba5e9a59b4b4f95e86b1f7a4a0b0d5c28c446476 --- tensorboard/data/server/gen_protos_tool.rs | 1 + tensorboard/data/server/tensorboard.pb.rs | 184 +++++++++++---------- 2 files changed, 94 insertions(+), 91 deletions(-) diff --git a/tensorboard/data/server/gen_protos_tool.rs b/tensorboard/data/server/gen_protos_tool.rs index a54f6e725c..84e28a3f08 100644 --- a/tensorboard/data/server/gen_protos_tool.rs +++ b/tensorboard/data/server/gen_protos_tool.rs @@ -28,6 +28,7 @@ fn main() -> std::io::Result<()> { }; tonic_build::configure() .out_dir(&out_dir) + .format(false) // don't run `rustfmt`; shouldn't be needed to build .compile(&["tensorboard/compat/proto/event.proto"], &["."]) .expect("compile_protos"); Ok(()) diff --git a/tensorboard/data/server/tensorboard.pb.rs b/tensorboard/data/server/tensorboard.pb.rs index d406ce604c..f8ab471487 100644 --- a/tensorboard/data/server/tensorboard.pb.rs +++ b/tensorboard/data/server/tensorboard.pb.rs @@ -29,12 +29,12 @@ pub struct TensorShapeProto { /// in-memory layout of RowMajor Eigen tensors. /// /// If "dim.size()" > 0, "unknown_rank" must be false. - #[prost(message, repeated, tag = "2")] + #[prost(message, repeated, tag="2")] pub dim: ::std::vec::Vec, /// If true, the number of dimensions in the shape is unknown. /// /// If true, "dim.size()" must be 0. - #[prost(bool, tag = "3")] + #[prost(bool, tag="3")] pub unknown_rank: bool, } pub mod tensor_shape_proto { @@ -46,10 +46,10 @@ pub mod tensor_shape_proto { /// shapes (values of -1 mean "unknown" dimension). Certain wrappers /// that work with TensorShapeProto may fail at runtime when deserializing /// a TensorShapeProto containing a dim value of -1. - #[prost(int64, tag = "1")] + #[prost(int64, tag="1")] pub size: i64, /// Optional name of the tensor dimension. - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub name: std::string::String, } } @@ -139,119 +139,121 @@ pub enum SpecializedType { #[derive(Clone, PartialEq, ::prost::Message)] pub struct ResourceHandleProto { /// Unique name for the device containing the resource. - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub device: std::string::String, /// Container in which this resource is placed. - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub container: std::string::String, /// Unique name of this resource. - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub name: std::string::String, /// Hash code for the type of the resource. Is only valid in the same device /// and in the same execution. - #[prost(uint64, tag = "4")] + #[prost(uint64, tag="4")] pub hash_code: u64, /// For debug-only, the name of the type pointed to by this handle, if /// available. - #[prost(string, tag = "5")] + #[prost(string, tag="5")] pub maybe_type_name: std::string::String, /// Data types and shapes for the underlying resource. - #[prost(message, repeated, tag = "6")] + #[prost(message, repeated, tag="6")] pub dtypes_and_shapes: ::std::vec::Vec, } pub mod resource_handle_proto { /// Protocol buffer representing a pair of (data type, tensor shape). #[derive(Clone, PartialEq, ::prost::Message)] pub struct DtypeAndShape { - #[prost(enumeration = "super::DataType", tag = "1")] + #[prost(enumeration="super::DataType", tag="1")] pub dtype: i32, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub shape: ::std::option::Option, } } /// Protocol buffer representing a tensor. #[derive(Clone, PartialEq, ::prost::Message)] pub struct TensorProto { - #[prost(enumeration = "DataType", tag = "1")] + #[prost(enumeration="DataType", tag="1")] pub dtype: i32, /// Shape of the tensor. TODO(touts): sort out the 0-rank issues. - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub tensor_shape: ::std::option::Option, // Only one of the representations below is set, one of "tensor_contents" and // the "xxx_val" attributes. We are not using oneof because as oneofs cannot // contain repeated fields it would require another extra set of messages. + /// Version number. /// /// In version 0, if the "repeated xxx" representations contain only one /// element, that element is repeated to fill the shape. This makes it easy /// to represent a constant Tensor with a single value. - #[prost(int32, tag = "3")] + #[prost(int32, tag="3")] pub version_number: i32, /// Serialized raw tensor content from either Tensor::AsProtoTensorContent or /// memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation /// can be used for all tensor types. The purpose of this representation is to /// reduce serialization overhead during RPC call by avoiding serialization of /// many repeated small items. - #[prost(bytes, tag = "4")] + #[prost(bytes, tag="4")] pub tensor_content: std::vec::Vec, // Type specific representations that make it easy to create tensor protos in // all languages. Only the representation corresponding to "dtype" can // be set. The values hold the flattened representation of the tensor in // row major order. + /// DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll /// have some pointless zero padding for each value here. - #[prost(int32, repeated, tag = "13")] + #[prost(int32, repeated, tag="13")] pub half_val: ::std::vec::Vec, /// DT_FLOAT. - #[prost(float, repeated, tag = "5")] + #[prost(float, repeated, tag="5")] pub float_val: ::std::vec::Vec, /// DT_DOUBLE. - #[prost(double, repeated, tag = "6")] + #[prost(double, repeated, tag="6")] pub double_val: ::std::vec::Vec, /// DT_INT32, DT_INT16, DT_INT8, DT_UINT8. - #[prost(int32, repeated, tag = "7")] + #[prost(int32, repeated, tag="7")] pub int_val: ::std::vec::Vec, /// DT_STRING - #[prost(bytes, repeated, tag = "8")] + #[prost(bytes, repeated, tag="8")] pub string_val: ::std::vec::Vec>, /// DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real /// and imaginary parts of i-th single precision complex. - #[prost(float, repeated, tag = "9")] + #[prost(float, repeated, tag="9")] pub scomplex_val: ::std::vec::Vec, /// DT_INT64 - #[prost(int64, repeated, tag = "10")] + #[prost(int64, repeated, tag="10")] pub int64_val: ::std::vec::Vec, /// DT_BOOL - #[prost(bool, repeated, tag = "11")] + #[prost(bool, repeated, tag="11")] pub bool_val: ::std::vec::Vec, /// DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real /// and imaginary parts of i-th double precision complex. - #[prost(double, repeated, tag = "12")] + #[prost(double, repeated, tag="12")] pub dcomplex_val: ::std::vec::Vec, /// DT_RESOURCE - #[prost(message, repeated, tag = "14")] + #[prost(message, repeated, tag="14")] pub resource_handle_val: ::std::vec::Vec, /// DT_VARIANT - #[prost(message, repeated, tag = "15")] + #[prost(message, repeated, tag="15")] pub variant_val: ::std::vec::Vec, /// DT_UINT32 - #[prost(uint32, repeated, tag = "16")] + #[prost(uint32, repeated, tag="16")] pub uint32_val: ::std::vec::Vec, /// DT_UINT64 - #[prost(uint64, repeated, tag = "17")] + #[prost(uint64, repeated, tag="17")] pub uint64_val: ::std::vec::Vec, } /// Protocol buffer representing the serialization format of DT_VARIANT tensors. #[derive(Clone, PartialEq, ::prost::Message)] pub struct VariantTensorDataProto { /// Name of the type of objects being serialized. - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub type_name: std::string::String, /// Portions of the object that are not Tensors. - #[prost(bytes, tag = "2")] + #[prost(bytes, tag="2")] pub metadata: std::vec::Vec, /// Tensors contained within objects being serialized. - #[prost(message, repeated, tag = "3")] + #[prost(message, repeated, tag="3")] pub tensors: ::std::vec::Vec, } /// Metadata associated with a series of Summary data @@ -259,31 +261,31 @@ pub struct VariantTensorDataProto { pub struct SummaryDescription { /// Hint on how plugins should process the data in this series. /// Supported values include "scalar", "histogram", "image", "audio" - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub type_hint: std::string::String, } /// Serialization format for histogram module in /// core/lib/histogram/histogram.h #[derive(Clone, PartialEq, ::prost::Message)] pub struct HistogramProto { - #[prost(double, tag = "1")] + #[prost(double, tag="1")] pub min: f64, - #[prost(double, tag = "2")] + #[prost(double, tag="2")] pub max: f64, - #[prost(double, tag = "3")] + #[prost(double, tag="3")] pub num: f64, - #[prost(double, tag = "4")] + #[prost(double, tag="4")] pub sum: f64, - #[prost(double, tag = "5")] + #[prost(double, tag="5")] pub sum_squares: f64, /// Parallel arrays encoding the bucket boundaries and the bucket values. /// bucket(i) is the count for the bucket i. The range for /// a bucket is: /// i == 0: -DBL_MAX .. bucket_limit(0) /// i != 0: bucket_limit(i-1) .. bucket_limit(i) - #[prost(double, repeated, tag = "6")] + #[prost(double, repeated, tag="6")] pub bucket_limit: ::std::vec::Vec, - #[prost(double, repeated, tag = "7")] + #[prost(double, repeated, tag="7")] pub bucket: ::std::vec::Vec, } /// A SummaryMetadata encapsulates information on which plugins are able to make @@ -291,30 +293,30 @@ pub struct HistogramProto { #[derive(Clone, PartialEq, ::prost::Message)] pub struct SummaryMetadata { /// Data that associates a summary with a certain plugin. - #[prost(message, optional, tag = "1")] + #[prost(message, optional, tag="1")] pub plugin_data: ::std::option::Option, /// Display name for viewing in TensorBoard. - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub display_name: std::string::String, /// Longform readable description of the summary sequence. Markdown supported. - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub summary_description: std::string::String, /// Class of data stored in this time series. Required for compatibility with /// TensorBoard's generic data facilities (`DataProvider`, et al.). This value /// imposes constraints on the dtype and shape of the corresponding tensor /// values. See `DataClass` docs for details. - #[prost(enumeration = "DataClass", tag = "4")] + #[prost(enumeration="DataClass", tag="4")] pub data_class: i32, } pub mod summary_metadata { #[derive(Clone, PartialEq, ::prost::Message)] pub struct PluginData { /// The name of the plugin this data pertains to. - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub plugin_name: std::string::String, /// The content to store for the plugin. The best practice is for this to be /// a binary serialized protocol buffer. - #[prost(bytes, tag = "2")] + #[prost(bytes, tag="2")] pub content: std::vec::Vec, } } @@ -327,16 +329,16 @@ pub mod summary_metadata { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Summary { /// Set of values for the summary. - #[prost(message, repeated, tag = "1")] + #[prost(message, repeated, tag="1")] pub value: ::std::vec::Vec, } pub mod summary { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Image { /// Dimensions of the image. - #[prost(int32, tag = "1")] + #[prost(int32, tag="1")] pub height: i32, - #[prost(int32, tag = "2")] + #[prost(int32, tag="2")] pub width: i32, /// Valid colorspace values are /// 1 - grayscale @@ -345,67 +347,67 @@ pub mod summary { /// 4 - RGBA /// 5 - DIGITAL_YUV /// 6 - BGRA - #[prost(int32, tag = "3")] + #[prost(int32, tag="3")] pub colorspace: i32, /// Image data in encoded format. All image formats supported by /// image_codec::CoderUtil can be stored here. - #[prost(bytes, tag = "4")] + #[prost(bytes, tag="4")] pub encoded_image_string: std::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Audio { /// Sample rate of the audio in Hz. - #[prost(float, tag = "1")] + #[prost(float, tag="1")] pub sample_rate: f32, /// Number of channels of audio. - #[prost(int64, tag = "2")] + #[prost(int64, tag="2")] pub num_channels: i64, /// Length of the audio in frames (samples per channel). - #[prost(int64, tag = "3")] + #[prost(int64, tag="3")] pub length_frames: i64, /// Encoded audio data and its associated RFC 2045 content type (e.g. /// "audio/wav"). - #[prost(bytes, tag = "4")] + #[prost(bytes, tag="4")] pub encoded_audio_string: std::vec::Vec, - #[prost(string, tag = "5")] + #[prost(string, tag="5")] pub content_type: std::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Value { /// This field is deprecated and will not be set. - #[prost(string, tag = "7")] + #[prost(string, tag="7")] pub node_name: std::string::String, /// Tag name for the data. Used by TensorBoard plugins to organize data. Tags /// are often organized by scope (which contains slashes to convey /// hierarchy). For example: foo/bar/0 - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub tag: std::string::String, /// Contains metadata on the summary value such as which plugins may use it. /// Take note that many summary values may lack a metadata field. This is /// because the FileWriter only keeps a metadata object on the first summary /// value with a certain tag for each tag. TensorBoard then remembers which /// tags are associated with which plugins. This saves space. - #[prost(message, optional, tag = "9")] + #[prost(message, optional, tag="9")] pub metadata: ::std::option::Option, /// Value associated with the tag. - #[prost(oneof = "value::Value", tags = "2, 3, 4, 5, 6, 8")] + #[prost(oneof="value::Value", tags="2, 3, 4, 5, 6, 8")] pub value: ::std::option::Option, } pub mod value { /// Value associated with the tag. #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Value { - #[prost(float, tag = "2")] + #[prost(float, tag="2")] SimpleValue(f32), - #[prost(bytes, tag = "3")] + #[prost(bytes, tag="3")] ObsoleteOldStyleHistogram(std::vec::Vec), - #[prost(message, tag = "4")] + #[prost(message, tag="4")] Image(super::Image), - #[prost(message, tag = "5")] + #[prost(message, tag="5")] Histo(super::super::HistogramProto), - #[prost(message, tag = "6")] + #[prost(message, tag="6")] Audio(super::Audio), - #[prost(message, tag = "8")] + #[prost(message, tag="8")] Tensor(super::super::TensorProto), } } @@ -434,12 +436,12 @@ pub enum DataClass { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Event { /// Timestamp of the event. - #[prost(double, tag = "1")] + #[prost(double, tag="1")] pub wall_time: f64, /// Global step of the event. - #[prost(int64, tag = "2")] + #[prost(int64, tag="2")] pub step: i64, - #[prost(oneof = "event::What", tags = "3, 4, 5, 6, 7, 8, 9")] + #[prost(oneof="event::What", tags="3, 4, 5, 6, 7, 8, 9")] pub what: ::std::option::Option, } pub mod event { @@ -449,35 +451,35 @@ pub mod event { /// This is use to identify the contents of the record IO files /// easily. Current version is "brain.Event:2". All versions /// start with "brain.Event:". - #[prost(string, tag = "3")] + #[prost(string, tag="3")] FileVersion(std::string::String), /// An encoded version of a GraphDef. - #[prost(bytes, tag = "4")] + #[prost(bytes, tag="4")] GraphDef(std::vec::Vec), /// A summary was generated. - #[prost(message, tag = "5")] + #[prost(message, tag="5")] Summary(super::Summary), /// The user output a log message. Not all messages are logged, only ones /// generated via the Python tensorboard_logging module. - #[prost(message, tag = "6")] + #[prost(message, tag="6")] LogMessage(super::LogMessage), /// The state of the session which can be used for restarting after crashes. - #[prost(message, tag = "7")] + #[prost(message, tag="7")] SessionLog(super::SessionLog), /// The metadata returned by running a session.run() call. - #[prost(message, tag = "8")] + #[prost(message, tag="8")] TaggedRunMetadata(super::TaggedRunMetadata), /// An encoded version of a MetaGraphDef. - #[prost(bytes, tag = "9")] + #[prost(bytes, tag="9")] MetaGraphDef(std::vec::Vec), } } /// Protocol buffer used for logging messages to the events file. #[derive(Clone, PartialEq, ::prost::Message)] pub struct LogMessage { - #[prost(enumeration = "log_message::Level", tag = "1")] + #[prost(enumeration="log_message::Level", tag="1")] pub level: i32, - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub message: std::string::String, } pub mod log_message { @@ -499,12 +501,12 @@ pub mod log_message { /// Protocol buffer used for logging session state. #[derive(Clone, PartialEq, ::prost::Message)] pub struct SessionLog { - #[prost(enumeration = "session_log::SessionStatus", tag = "1")] + #[prost(enumeration="session_log::SessionStatus", tag="1")] pub status: i32, /// This checkpoint_path contains both the path and filename. - #[prost(string, tag = "2")] + #[prost(string, tag="2")] pub checkpoint_path: std::string::String, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub msg: std::string::String, } pub mod session_log { @@ -521,39 +523,39 @@ pub mod session_log { #[derive(Clone, PartialEq, ::prost::Message)] pub struct TaggedRunMetadata { /// Tag name associated with this metadata. - #[prost(string, tag = "1")] + #[prost(string, tag="1")] pub tag: std::string::String, /// Byte-encoded version of the `RunMetadata` proto in order to allow lazy /// deserialization. - #[prost(bytes, tag = "2")] + #[prost(bytes, tag="2")] pub run_metadata: std::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WatchdogConfig { - #[prost(int64, tag = "1")] + #[prost(int64, tag="1")] pub timeout_ms: i64, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct RequestedExitCode { - #[prost(int32, tag = "1")] + #[prost(int32, tag="1")] pub exit_code: i32, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerHeartbeatRequest { - #[prost(enumeration = "WorkerShutdownMode", tag = "1")] + #[prost(enumeration="WorkerShutdownMode", tag="1")] pub shutdown_mode: i32, - #[prost(message, optional, tag = "2")] + #[prost(message, optional, tag="2")] pub watchdog_config: ::std::option::Option, - #[prost(message, optional, tag = "3")] + #[prost(message, optional, tag="3")] pub exit_code: ::std::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct WorkerHeartbeatResponse { - #[prost(enumeration = "WorkerHealth", tag = "1")] + #[prost(enumeration="WorkerHealth", tag="1")] pub health_status: i32, - #[prost(message, repeated, tag = "2")] + #[prost(message, repeated, tag="2")] pub worker_log: ::std::vec::Vec, - #[prost(string, tag = "3")] + #[prost(string, tag="3")] pub hostname: std::string::String, } // Worker heartbeat messages. Support for these operations is currently From 3ef14763dfdf0f9485e677f102e93eb54b0840a9 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 21:02:59 -0800 Subject: [PATCH 6/7] [update patch] wchargin-branch: rust-demo-tonic-server wchargin-source: 89356565a9557266c069dcfdf0422f2e2225e3ab --- tensorboard/data/server/demo.pb.rs | 171 +-------------------- tensorboard/data/server/gen_protos_tool.rs | 6 +- 2 files changed, 4 insertions(+), 173 deletions(-) diff --git a/tensorboard/data/server/demo.pb.rs b/tensorboard/data/server/demo.pb.rs index 437cf58cfb..68a8d4a81c 100644 --- a/tensorboard/data/server/demo.pb.rs +++ b/tensorboard/data/server/demo.pb.rs @@ -15,177 +15,12 @@ limitations under the License. #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddRequest { - #[prost(int32, repeated, tag = "1")] + #[prost(int32, repeated, tag="1")] pub term: ::std::vec::Vec, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct AddResponse { - #[prost(int32, tag = "1")] + #[prost(int32, tag="1")] pub sum: i32, } -#[doc = r" Generated client implementations."] -pub mod demo_client { - #![allow(unused_variables, dead_code, missing_docs)] - use tonic::codegen::*; - pub struct DemoClient { - inner: tonic::client::Grpc, - } - impl DemoClient { - #[doc = r" Attempt to create a new client by connecting to a given endpoint."] - pub async fn connect(dst: D) -> Result - where - D: std::convert::TryInto, - D::Error: Into, - { - let conn = tonic::transport::Endpoint::new(dst)?.connect().await?; - Ok(Self::new(conn)) - } - } - impl DemoClient - where - T: tonic::client::GrpcService, - T::ResponseBody: Body + HttpBody + Send + 'static, - T::Error: Into, - ::Error: Into + Send, - { - pub fn new(inner: T) -> Self { - let inner = tonic::client::Grpc::new(inner); - Self { inner } - } - pub fn with_interceptor(inner: T, interceptor: impl Into) -> Self { - let inner = tonic::client::Grpc::with_interceptor(inner, interceptor); - Self { inner } - } - pub async fn add( - &mut self, - request: impl tonic::IntoRequest, - ) -> Result, tonic::Status> { - self.inner.ready().await.map_err(|e| { - tonic::Status::new( - tonic::Code::Unknown, - format!("Service was not ready: {}", e.into()), - ) - })?; - let codec = tonic::codec::ProstCodec::default(); - let path = http::uri::PathAndQuery::from_static("/demo.Demo/Add"); - self.inner.unary(request.into_request(), path, codec).await - } - } - impl Clone for DemoClient { - fn clone(&self) -> Self { - Self { - inner: self.inner.clone(), - } - } - } - impl std::fmt::Debug for DemoClient { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "DemoClient {{ ... }}") - } - } -} -#[doc = r" Generated server implementations."] -pub mod demo_server { - #![allow(unused_variables, dead_code, missing_docs)] - use tonic::codegen::*; - #[doc = "Generated trait containing gRPC methods that should be implemented for use with DemoServer."] - #[async_trait] - pub trait Demo: Send + Sync + 'static { - async fn add( - &self, - request: tonic::Request, - ) -> Result, tonic::Status>; - } - #[derive(Debug)] - pub struct DemoServer { - inner: _Inner, - } - struct _Inner(Arc, Option); - impl DemoServer { - pub fn new(inner: T) -> Self { - let inner = Arc::new(inner); - let inner = _Inner(inner, None); - Self { inner } - } - pub fn with_interceptor(inner: T, interceptor: impl Into) -> Self { - let inner = Arc::new(inner); - let inner = _Inner(inner, Some(interceptor.into())); - Self { inner } - } - } - impl Service> for DemoServer - where - T: Demo, - B: HttpBody + Send + Sync + 'static, - B::Error: Into + Send + 'static, - { - type Response = http::Response; - type Error = Never; - type Future = BoxFuture; - fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll> { - Poll::Ready(Ok(())) - } - fn call(&mut self, req: http::Request) -> Self::Future { - let inner = self.inner.clone(); - match req.uri().path() { - "/demo.Demo/Add" => { - #[allow(non_camel_case_types)] - struct AddSvc(pub Arc); - impl tonic::server::UnaryService for AddSvc { - type Response = super::AddResponse; - type Future = BoxFuture, tonic::Status>; - fn call( - &mut self, - request: tonic::Request, - ) -> Self::Future { - let inner = self.0.clone(); - let fut = async move { (*inner).add(request).await }; - Box::pin(fut) - } - } - let inner = self.inner.clone(); - let fut = async move { - let interceptor = inner.1.clone(); - let inner = inner.0; - let method = AddSvc(inner); - let codec = tonic::codec::ProstCodec::default(); - let mut grpc = if let Some(interceptor) = interceptor { - tonic::server::Grpc::with_interceptor(codec, interceptor) - } else { - tonic::server::Grpc::new(codec) - }; - let res = grpc.unary(method, req).await; - Ok(res) - }; - Box::pin(fut) - } - _ => Box::pin(async move { - Ok(http::Response::builder() - .status(200) - .header("grpc-status", "12") - .body(tonic::body::BoxBody::empty()) - .unwrap()) - }), - } - } - } - impl Clone for DemoServer { - fn clone(&self) -> Self { - let inner = self.inner.clone(); - Self { inner } - } - } - impl Clone for _Inner { - fn clone(&self) -> Self { - Self(self.0.clone(), self.1.clone()) - } - } - impl std::fmt::Debug for _Inner { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{:?}", self.0) - } - } - impl tonic::transport::NamedService for DemoServer { - const NAME: &'static str = "demo.Demo"; - } -} +# [doc = r" Generated client implementations."] pub mod demo_client { # ! [allow (unused_variables , dead_code , missing_docs)] use tonic :: codegen :: * ; pub struct DemoClient < T > { inner : tonic :: client :: Grpc < T > , } impl DemoClient < tonic :: transport :: Channel > { # [doc = r" Attempt to create a new client by connecting to a given endpoint."] pub async fn connect < D > (dst : D) -> Result < Self , tonic :: transport :: Error > where D : std :: convert :: TryInto < tonic :: transport :: Endpoint > , D :: Error : Into < StdError > , { let conn = tonic :: transport :: Endpoint :: new (dst) ? . connect () . await ? ; Ok (Self :: new (conn)) } } impl < T > DemoClient < T > where T : tonic :: client :: GrpcService < tonic :: body :: BoxBody > , T :: ResponseBody : Body + HttpBody + Send + 'static , T :: Error : Into < StdError > , < T :: ResponseBody as HttpBody > :: Error : Into < StdError > + Send , { pub fn new (inner : T) -> Self { let inner = tonic :: client :: Grpc :: new (inner) ; Self { inner } } pub fn with_interceptor (inner : T , interceptor : impl Into < tonic :: Interceptor >) -> Self { let inner = tonic :: client :: Grpc :: with_interceptor (inner , interceptor) ; Self { inner } } pub async fn add (& mut self , request : impl tonic :: IntoRequest < super :: AddRequest > ,) -> Result < tonic :: Response < super :: AddResponse > , tonic :: Status > { self . inner . ready () . await . map_err (| e | { tonic :: Status :: new (tonic :: Code :: Unknown , format ! ("Service was not ready: {}" , e . into ())) }) ? ; let codec = tonic :: codec :: ProstCodec :: default () ; let path = http :: uri :: PathAndQuery :: from_static ("/demo.Demo/Add") ; self . inner . unary (request . into_request () , path , codec) . await } } impl < T : Clone > Clone for DemoClient < T > { fn clone (& self) -> Self { Self { inner : self . inner . clone () , } } } impl < T > std :: fmt :: Debug for DemoClient < T > { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { write ! (f , "DemoClient {{ ... }}") } } }# [doc = r" Generated server implementations."] pub mod demo_server { # ! [allow (unused_variables , dead_code , missing_docs)] use tonic :: codegen :: * ; # [doc = "Generated trait containing gRPC methods that should be implemented for use with DemoServer."] # [async_trait] pub trait Demo : Send + Sync + 'static { async fn add (& self , request : tonic :: Request < super :: AddRequest >) -> Result < tonic :: Response < super :: AddResponse > , tonic :: Status > ; } # [derive (Debug)] pub struct DemoServer < T : Demo > { inner : _Inner < T > , } struct _Inner < T > (Arc < T > , Option < tonic :: Interceptor >) ; impl < T : Demo > DemoServer < T > { pub fn new (inner : T) -> Self { let inner = Arc :: new (inner) ; let inner = _Inner (inner , None) ; Self { inner } } pub fn with_interceptor (inner : T , interceptor : impl Into < tonic :: Interceptor >) -> Self { let inner = Arc :: new (inner) ; let inner = _Inner (inner , Some (interceptor . into ())) ; Self { inner } } } impl < T , B > Service < http :: Request < B >> for DemoServer < T > where T : Demo , B : HttpBody + Send + Sync + 'static , B :: Error : Into < StdError > + Send + 'static , { type Response = http :: Response < tonic :: body :: BoxBody > ; type Error = Never ; type Future = BoxFuture < Self :: Response , Self :: Error > ; fn poll_ready (& mut self , _cx : & mut Context < '_ >) -> Poll < Result < () , Self :: Error >> { Poll :: Ready (Ok (())) } fn call (& mut self , req : http :: Request < B >) -> Self :: Future { let inner = self . inner . clone () ; match req . uri () . path () { "/demo.Demo/Add" => { # [allow (non_camel_case_types)] struct AddSvc < T : Demo > (pub Arc < T >) ; impl < T : Demo > tonic :: server :: UnaryService < super :: AddRequest > for AddSvc < T > { type Response = super :: AddResponse ; type Future = BoxFuture < tonic :: Response < Self :: Response > , tonic :: Status > ; fn call (& mut self , request : tonic :: Request < super :: AddRequest >) -> Self :: Future { let inner = self . 0 . clone () ; let fut = async move { (* inner) . add (request) . await } ; Box :: pin (fut) } } let inner = self . inner . clone () ; let fut = async move { let interceptor = inner . 1 . clone () ; let inner = inner . 0 ; let method = AddSvc (inner) ; let codec = tonic :: codec :: ProstCodec :: default () ; let mut grpc = if let Some (interceptor) = interceptor { tonic :: server :: Grpc :: with_interceptor (codec , interceptor) } else { tonic :: server :: Grpc :: new (codec) } ; let res = grpc . unary (method , req) . await ; Ok (res) } ; Box :: pin (fut) } _ => Box :: pin (async move { Ok (http :: Response :: builder () . status (200) . header ("grpc-status" , "12") . body (tonic :: body :: BoxBody :: empty ()) . unwrap ()) }) , } } } impl < T : Demo > Clone for DemoServer < T > { fn clone (& self) -> Self { let inner = self . inner . clone () ; Self { inner } } } impl < T : Demo > Clone for _Inner < T > { fn clone (& self) -> Self { Self (self . 0 . clone () , self . 1 . clone ()) } } impl < T : std :: fmt :: Debug > std :: fmt :: Debug for _Inner < T > { fn fmt (& self , f : & mut std :: fmt :: Formatter < '_ >) -> std :: fmt :: Result { write ! (f , "{:?}" , self . 0) } } impl < T : Demo > tonic :: transport :: NamedService for DemoServer < T > { const NAME : & 'static str = "demo.Demo" ; } } \ No newline at end of file diff --git a/tensorboard/data/server/gen_protos_tool.rs b/tensorboard/data/server/gen_protos_tool.rs index ee0534bdbf..7720f5d149 100644 --- a/tensorboard/data/server/gen_protos_tool.rs +++ b/tensorboard/data/server/gen_protos_tool.rs @@ -28,7 +28,7 @@ fn main() -> std::io::Result<()> { }; tonic_build::configure() .out_dir(&out_dir) -<<<<<<< HEAD + .format(false) // don't run `rustfmt`; shouldn't be needed to build .compile( &[ "tensorboard/compat/proto/event.proto", @@ -36,10 +36,6 @@ fn main() -> std::io::Result<()> { ], &["."], ) -======= - .format(false) // don't run `rustfmt`; shouldn't be needed to build - .compile(&["tensorboard/compat/proto/event.proto"], &["."]) ->>>>>>> 6a5ef83ffd54f1184fb441e360aed7b4c36b4d32 .expect("compile_protos"); Ok(()) } From 50fa124be36e401efda7bf7b3fa420439b6bd782 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 11 Nov 2020 21:52:02 -0800 Subject: [PATCH 7/7] [update patch] wchargin-branch: rust-demo-tonic-server wchargin-source: eb0bce9732ce4810d7152ec6eb47ba67a8d85d5e --- tensorboard/data/server/gen_protos_tool.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tensorboard/data/server/gen_protos_tool.rs b/tensorboard/data/server/gen_protos_tool.rs index e72d7fb87a..7720f5d149 100644 --- a/tensorboard/data/server/gen_protos_tool.rs +++ b/tensorboard/data/server/gen_protos_tool.rs @@ -29,7 +29,6 @@ fn main() -> std::io::Result<()> { tonic_build::configure() .out_dir(&out_dir) .format(false) // don't run `rustfmt`; shouldn't be needed to build -<<<<<<< HEAD .compile( &[ "tensorboard/compat/proto/event.proto", @@ -37,9 +36,6 @@ fn main() -> std::io::Result<()> { ], &["."], ) -======= - .compile(&["tensorboard/compat/proto/event.proto"], &["."]) ->>>>>>> 1fbc43682f157f68fea4cd265459455b1b0007ef .expect("compile_protos"); Ok(()) }