From a890789f0eb84b36ab5edf7f39bb84aa7913919a Mon Sep 17 00:00:00 2001 From: William Chargin Date: Tue, 2 Feb 2021 18:49:58 -0800 Subject: [PATCH 1/3] rust: add `reqwest` dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: The [`reqwest`] crate provides a high-level HTTP interface, similar in spirit to Python’s `requests` package. It has built-in support for JSON serialization and deserialization via `serde` (which we already use) and is based on the `hyper` stack (which we also already use), so it should fit in nicely. We’ll use it to make requests to GCS. [`reqwest`]: https://crates.io/crates/reqwest Test Plan: It builds: `bazel build //third_party/rust:reqwest`. wchargin-branch: rust-dep-reqwest wchargin-source: d05d3de3a3d44974e282574ec965ad6bd0024246 --- tensorboard/data/server/Cargo.lock | 417 ++++++++++++++++++ tensorboard/data/server/Cargo.toml | 7 + third_party/rust/BUILD.bazel | 9 + third_party/rust/crates.bzl | 410 +++++++++++++++++ .../rust/remote/BUILD.bumpalo-3.6.0.bazel | 79 ++++ third_party/rust/remote/BUILD.cc-1.0.66.bazel | 84 ++++ .../remote/BUILD.core-foundation-0.9.1.bazel | 56 +++ .../BUILD.core-foundation-sys-0.8.2.bazel | 54 +++ .../remote/BUILD.encoding_rs-0.8.26.bazel | 55 +++ .../remote/BUILD.foreign-types-0.3.2.bazel | 53 +++ .../BUILD.foreign-types-shared-0.1.1.bazel | 52 +++ .../remote/BUILD.form_urlencoded-1.0.0.bazel | 54 +++ .../rust/remote/BUILD.futures-io-0.3.12.bazel | 53 +++ .../remote/BUILD.futures-task-0.3.8.bazel | 3 + .../remote/BUILD.futures-util-0.3.8.bazel | 8 + .../rust/remote/BUILD.hyper-tls-0.5.0.bazel | 59 +++ .../rust/remote/BUILD.idna-0.2.0.bazel | 59 +++ .../rust/remote/BUILD.ipnet-2.3.0.bazel | 52 +++ .../rust/remote/BUILD.js-sys-0.3.47.bazel | 57 +++ .../rust/remote/BUILD.matches-0.1.8.bazel | 54 +++ .../rust/remote/BUILD.mime-0.3.16.bazel | 58 +++ .../rust/remote/BUILD.native-tls-0.2.7.bazel | 91 ++++ .../rust/remote/BUILD.once_cell-1.5.2.bazel | 70 +++ .../rust/remote/BUILD.openssl-0.10.32.bazel | 89 ++++ .../remote/BUILD.openssl-probe-0.1.2.bazel | 52 +++ .../remote/BUILD.openssl-sys-0.9.60.bazel | 101 +++++ .../rust/remote/BUILD.pkg-config-0.3.19.bazel | 54 +++ .../rust/remote/BUILD.reqwest-0.11.0.bazel | 137 ++++++ .../rust/remote/BUILD.schannel-0.1.19.bazel | 54 +++ .../BUILD.security-framework-2.0.0.bazel | 65 +++ .../BUILD.security-framework-sys-2.0.0.bazel | 56 +++ .../remote/BUILD.serde_urlencoded-0.7.0.bazel | 60 +++ .../rust/remote/BUILD.tinyvec-1.1.1.bazel | 62 +++ .../remote/BUILD.tinyvec_macros-0.1.0.bazel | 52 +++ .../remote/BUILD.tokio-native-tls-0.3.0.bazel | 87 ++++ .../remote/BUILD.unicode-bidi-0.3.4.bazel | 54 +++ .../BUILD.unicode-normalization-0.1.16.bazel | 57 +++ third_party/rust/remote/BUILD.url-2.2.0.bazel | 58 +++ .../rust/remote/BUILD.vcpkg-0.2.11.bazel | 52 +++ .../remote/BUILD.wasm-bindgen-0.2.70.bazel | 78 ++++ .../BUILD.wasm-bindgen-backend-0.2.70.bazel | 60 +++ .../BUILD.wasm-bindgen-futures-0.4.20.bazel | 57 +++ .../BUILD.wasm-bindgen-macro-0.2.70.bazel | 57 +++ ...LD.wasm-bindgen-macro-support-0.2.70.bazel | 58 +++ .../BUILD.wasm-bindgen-shared-0.2.70.bazel | 54 +++ .../rust/remote/BUILD.web-sys-0.3.47.bazel | 71 +++ .../rust/remote/BUILD.winapi-0.3.9.bazel | 11 + .../rust/remote/BUILD.winreg-0.7.0.bazel | 63 +++ 48 files changed, 3493 insertions(+) create mode 100644 third_party/rust/remote/BUILD.bumpalo-3.6.0.bazel create mode 100644 third_party/rust/remote/BUILD.cc-1.0.66.bazel create mode 100644 third_party/rust/remote/BUILD.core-foundation-0.9.1.bazel create mode 100644 third_party/rust/remote/BUILD.core-foundation-sys-0.8.2.bazel create mode 100644 third_party/rust/remote/BUILD.encoding_rs-0.8.26.bazel create mode 100644 third_party/rust/remote/BUILD.foreign-types-0.3.2.bazel create mode 100644 third_party/rust/remote/BUILD.foreign-types-shared-0.1.1.bazel create mode 100644 third_party/rust/remote/BUILD.form_urlencoded-1.0.0.bazel create mode 100644 third_party/rust/remote/BUILD.futures-io-0.3.12.bazel create mode 100644 third_party/rust/remote/BUILD.hyper-tls-0.5.0.bazel create mode 100644 third_party/rust/remote/BUILD.idna-0.2.0.bazel create mode 100644 third_party/rust/remote/BUILD.ipnet-2.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.js-sys-0.3.47.bazel create mode 100644 third_party/rust/remote/BUILD.matches-0.1.8.bazel create mode 100644 third_party/rust/remote/BUILD.mime-0.3.16.bazel create mode 100644 third_party/rust/remote/BUILD.native-tls-0.2.7.bazel create mode 100644 third_party/rust/remote/BUILD.once_cell-1.5.2.bazel create mode 100644 third_party/rust/remote/BUILD.openssl-0.10.32.bazel create mode 100644 third_party/rust/remote/BUILD.openssl-probe-0.1.2.bazel create mode 100644 third_party/rust/remote/BUILD.openssl-sys-0.9.60.bazel create mode 100644 third_party/rust/remote/BUILD.pkg-config-0.3.19.bazel create mode 100644 third_party/rust/remote/BUILD.reqwest-0.11.0.bazel create mode 100644 third_party/rust/remote/BUILD.schannel-0.1.19.bazel create mode 100644 third_party/rust/remote/BUILD.security-framework-2.0.0.bazel create mode 100644 third_party/rust/remote/BUILD.security-framework-sys-2.0.0.bazel create mode 100644 third_party/rust/remote/BUILD.serde_urlencoded-0.7.0.bazel create mode 100644 third_party/rust/remote/BUILD.tinyvec-1.1.1.bazel create mode 100644 third_party/rust/remote/BUILD.tinyvec_macros-0.1.0.bazel create mode 100644 third_party/rust/remote/BUILD.tokio-native-tls-0.3.0.bazel create mode 100644 third_party/rust/remote/BUILD.unicode-bidi-0.3.4.bazel create mode 100644 third_party/rust/remote/BUILD.unicode-normalization-0.1.16.bazel create mode 100644 third_party/rust/remote/BUILD.url-2.2.0.bazel create mode 100644 third_party/rust/remote/BUILD.vcpkg-0.2.11.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-0.2.70.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-backend-0.2.70.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-futures-0.4.20.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-macro-0.2.70.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-macro-support-0.2.70.bazel create mode 100644 third_party/rust/remote/BUILD.wasm-bindgen-shared-0.2.70.bazel create mode 100644 third_party/rust/remote/BUILD.web-sys-0.3.47.bazel create mode 100644 third_party/rust/remote/BUILD.winreg-0.7.0.bazel diff --git a/tensorboard/data/server/Cargo.lock b/tensorboard/data/server/Cargo.lock index 6e8b98a17b..a52e9d7459 100644 --- a/tensorboard/data/server/Cargo.lock +++ b/tensorboard/data/server/Cargo.lock @@ -82,6 +82,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39" +[[package]] +name = "bumpalo" +version = "3.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "099e596ef14349721d9016f6b80dd3419ea1bf289ab9b44df8e4dfd3a005d5d9" + [[package]] name = "byteorder" version = "1.3.4" @@ -100,6 +106,12 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040" +[[package]] +name = "cc" +version = "1.0.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" + [[package]] name = "cfg-if" version = "0.1.10" @@ -150,6 +162,22 @@ version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28b9d6de7f49e22cf97ad17fc4036ece69300032f45f78f30b4a4482cdc3f4a6" +[[package]] +name = "core-foundation" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" + [[package]] name = "crc" version = "1.8.1" @@ -235,6 +263,15 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +[[package]] +name = "encoding_rs" +version = "0.8.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "801bbab217d7f79c0062f4f7205b5d4427c6d1a7bd7aafdd1475f7c59d62b283" +dependencies = [ + "cfg-if 1.0.0", +] + [[package]] name = "env_logger" version = "0.8.2" @@ -260,6 +297,31 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00" +dependencies = [ + "matches", + "percent-encoding", +] + [[package]] name = "futures-channel" version = "0.3.8" @@ -275,6 +337,12 @@ version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79e5145dde8da7d1b3892dad07a9c98fc04bc39892b1ecc9692cf53e2b780a65" +[[package]] +name = "futures-io" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28be053525281ad8259d47e4de5de657b25e7bac113458555bb4b70bc6870500" + [[package]] name = "futures-sink" version = "0.3.8" @@ -286,6 +354,9 @@ name = "futures-task" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" +dependencies = [ + "once_cell", +] [[package]] name = "futures-util" @@ -294,9 +365,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" dependencies = [ "futures-core", + "futures-io", "futures-task", + "memchr", "pin-project 1.0.1", "pin-utils", + "slab", ] [[package]] @@ -428,6 +502,30 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-tls" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" +dependencies = [ + "bytes 1.0.1", + "hyper", + "native-tls", + "tokio", + "tokio-native-tls", +] + +[[package]] +name = "idna" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "indexmap" version = "1.6.0" @@ -438,6 +536,12 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "ipnet" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" + [[package]] name = "itertools" version = "0.9.0" @@ -453,6 +557,15 @@ version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" +[[package]] +name = "js-sys" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cfb73131c35423a367daf8cbd24100af0d077668c8c2943f0e7dd775fef0f65" +dependencies = [ + "wasm-bindgen", +] + [[package]] name = "lazy_static" version = "1.4.0" @@ -474,6 +587,12 @@ dependencies = [ "cfg-if 0.1.10", ] +[[package]] +name = "matches" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" + [[package]] name = "memchr" version = "2.3.4" @@ -489,6 +608,12 @@ dependencies = [ "autocfg", ] +[[package]] +name = "mime" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" + [[package]] name = "mio" version = "0.7.7" @@ -518,6 +643,24 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" +[[package]] +name = "native-tls" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8d96b2e1c8da3957d58100b09f102c6d9cfdfced01b7ec5a8974044bb09dbd4" +dependencies = [ + "lazy_static", + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + [[package]] name = "ntapi" version = "0.3.6" @@ -537,6 +680,45 @@ dependencies = [ "libc", ] +[[package]] +name = "once_cell" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0" + +[[package]] +name = "openssl" +version = "0.10.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70" +dependencies = [ + "bitflags", + "cfg-if 1.0.0", + "foreign-types", + "lazy_static", + "libc", + "openssl-sys", +] + +[[package]] +name = "openssl-probe" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" + +[[package]] +name = "openssl-sys" +version = "0.9.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "921fc71883267538946025deffb622905ecad223c28efbfdef9bb59a0175f3e6" +dependencies = [ + "autocfg", + "cc", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "os_str_bytes" version = "2.4.0" @@ -617,6 +799,12 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "pkg-config" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" + [[package]] name = "ppv-lite86" version = "0.2.10" @@ -855,6 +1043,41 @@ dependencies = [ "winapi", ] +[[package]] +name = "reqwest" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd281b1030aa675fb90aa994d07187645bb3c8fc756ca766e7c3070b439de9de" +dependencies = [ + "base64", + "bytes 1.0.1", + "encoding_rs", + "futures-core", + "futures-util", + "http", + "http-body", + "hyper", + "hyper-tls", + "ipnet", + "js-sys", + "lazy_static", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite 0.2.4", + "serde", + "serde_json", + "serde_urlencoded", + "tokio", + "tokio-native-tls", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winreg", +] + [[package]] name = "rustboard" version = "0.3.0-alpha.0" @@ -874,6 +1097,7 @@ dependencies = [ "rand 0.7.3", "rand_chacha 0.2.2", "rayon", + "reqwest", "serde", "serde_json", "tempfile", @@ -900,12 +1124,45 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "schannel" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" +dependencies = [ + "lazy_static", + "winapi", +] + [[package]] name = "scopeguard" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "security-framework" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1759c2e3c8580017a484a7ac56d3abc5a6c1feadf88db2f3633f12ae4268c69" +dependencies = [ + "bitflags", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f99b9d5e26d2a71633cc4f2ebae7cc9f874044e0c351a27e17892d76dce5678b" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "serde" version = "1.0.118" @@ -937,6 +1194,18 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_urlencoded" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + [[package]] name = "slab" version = "0.4.2" @@ -1033,6 +1302,21 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "tinyvec" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" + [[package]] name = "tokio" version = "1.0.2" @@ -1060,6 +1344,16 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-native-tls" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +dependencies = [ + "native-tls", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.2" @@ -1207,6 +1501,24 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +[[package]] +name = "unicode-bidi" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" +dependencies = [ + "matches", +] + +[[package]] +name = "unicode-normalization" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" +dependencies = [ + "tinyvec", +] + [[package]] name = "unicode-segmentation" version = "1.6.0" @@ -1225,6 +1537,24 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +[[package]] +name = "url" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e" +dependencies = [ + "form_urlencoded", + "idna", + "matches", + "percent-encoding", +] + +[[package]] +name = "vcpkg" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb" + [[package]] name = "vec_map" version = "0.8.2" @@ -1270,6 +1600,84 @@ version = "0.10.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93c6c3420963c5c64bca373b25e77acb562081b9bb4dd5bb864187742186cea9" +[[package]] +name = "wasm-bindgen" +version = "0.2.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55c0f7123de74f0dab9b7d00fd614e7b19349cd1e2f5252bbe9b1754b59433be" +dependencies = [ + "cfg-if 1.0.0", + "serde", + "serde_json", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bc45447f0d4573f3d65720f636bbcc3dd6ce920ed704670118650bcd47764c7" +dependencies = [ + "bumpalo", + "lazy_static", + "log", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3de431a2910c86679c34283a33f66f4e4abd7e0aec27b6669060148872aadf94" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b8853882eef39593ad4174dd26fc9865a64e84026d223f63bb2c42affcbba2c" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4133b5e7f2a531fa413b3a1695e925038a05a71cf67e87dafa295cb645a01385" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd4945e4943ae02d15c13962b38a5b1e81eadd4b71214eee75af64a4d6a4fd64" + +[[package]] +name = "web-sys" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c40dc691fc48003eba817c38da7113c15698142da971298003cac3ef175680b3" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + [[package]] name = "which" version = "4.0.2" @@ -1310,3 +1718,12 @@ 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 = "winreg" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" +dependencies = [ + "winapi", +] diff --git a/tensorboard/data/server/Cargo.toml b/tensorboard/data/server/Cargo.toml index 42ead6cc9c..21fc6cfe38 100644 --- a/tensorboard/data/server/Cargo.toml +++ b/tensorboard/data/server/Cargo.toml @@ -37,6 +37,7 @@ prost = "0.7.0" rand = "0.7.3" rand_chacha = "0.2.2" rayon = "1.5.0" +reqwest = { version = "0.11.0", features = ["blocking", "json"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.59" thiserror = "1.0.21" @@ -85,6 +86,12 @@ additional_flags = [ "--cfg=has_std", ] +[package.metadata.raze.crates.openssl.'0.10.32'] +gen_buildrs = true + +[package.metadata.raze.crates.openssl-sys.'0.9.60'] +gen_buildrs = true + [package.metadata.raze.crates.proc-macro-error.'1.0.4'] gen_buildrs = true diff --git a/third_party/rust/BUILD.bazel b/third_party/rust/BUILD.bazel index 1877cee4c4..1f68e68049 100644 --- a/third_party/rust/BUILD.bazel +++ b/third_party/rust/BUILD.bazel @@ -147,6 +147,15 @@ alias( ], ) +alias( + name = "reqwest", + actual = "@raze__reqwest__0_11_0//:reqwest", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "serde", actual = "@raze__serde__1_0_118//:serde", diff --git a/third_party/rust/crates.bzl b/third_party/rust/crates.bzl index ce483d91a0..2211649c4c 100644 --- a/third_party/rust/crates.bzl +++ b/third_party/rust/crates.bzl @@ -111,6 +111,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.build_const-0.2.1.bazel"), ) + maybe( + http_archive, + name = "raze__bumpalo__3_6_0", + url = "https://crates.io/api/v1/crates/bumpalo/3.6.0/download", + type = "tar.gz", + sha256 = "099e596ef14349721d9016f6b80dd3419ea1bf289ab9b44df8e4dfd3a005d5d9", + strip_prefix = "bumpalo-3.6.0", + build_file = Label("//third_party/rust/remote:BUILD.bumpalo-3.6.0.bazel"), + ) + maybe( http_archive, name = "raze__byteorder__1_3_4", @@ -141,6 +151,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.bytes-1.0.1.bazel"), ) + maybe( + http_archive, + name = "raze__cc__1_0_66", + url = "https://crates.io/api/v1/crates/cc/1.0.66/download", + type = "tar.gz", + sha256 = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48", + strip_prefix = "cc-1.0.66", + build_file = Label("//third_party/rust/remote:BUILD.cc-1.0.66.bazel"), + ) + maybe( http_archive, name = "raze__cfg_if__0_1_10", @@ -191,6 +211,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.const_fn-0.4.5.bazel"), ) + maybe( + http_archive, + name = "raze__core_foundation__0_9_1", + url = "https://crates.io/api/v1/crates/core-foundation/0.9.1/download", + type = "tar.gz", + sha256 = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62", + strip_prefix = "core-foundation-0.9.1", + build_file = Label("//third_party/rust/remote:BUILD.core-foundation-0.9.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__core_foundation_sys__0_8_2", + url = "https://crates.io/api/v1/crates/core-foundation-sys/0.8.2/download", + type = "tar.gz", + sha256 = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b", + strip_prefix = "core-foundation-sys-0.8.2", + build_file = Label("//third_party/rust/remote:BUILD.core-foundation-sys-0.8.2.bazel"), + ) + maybe( http_archive, name = "raze__crc__1_8_1", @@ -271,6 +311,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.either-1.6.1.bazel"), ) + maybe( + http_archive, + name = "raze__encoding_rs__0_8_26", + url = "https://crates.io/api/v1/crates/encoding_rs/0.8.26/download", + type = "tar.gz", + sha256 = "801bbab217d7f79c0062f4f7205b5d4427c6d1a7bd7aafdd1475f7c59d62b283", + strip_prefix = "encoding_rs-0.8.26", + build_file = Label("//third_party/rust/remote:BUILD.encoding_rs-0.8.26.bazel"), + ) + maybe( http_archive, name = "raze__env_logger__0_8_2", @@ -301,6 +351,36 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.fnv-1.0.7.bazel"), ) + maybe( + http_archive, + name = "raze__foreign_types__0_3_2", + url = "https://crates.io/api/v1/crates/foreign-types/0.3.2/download", + type = "tar.gz", + sha256 = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1", + strip_prefix = "foreign-types-0.3.2", + build_file = Label("//third_party/rust/remote:BUILD.foreign-types-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__foreign_types_shared__0_1_1", + url = "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download", + type = "tar.gz", + sha256 = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b", + strip_prefix = "foreign-types-shared-0.1.1", + build_file = Label("//third_party/rust/remote:BUILD.foreign-types-shared-0.1.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__form_urlencoded__1_0_0", + url = "https://crates.io/api/v1/crates/form_urlencoded/1.0.0/download", + type = "tar.gz", + sha256 = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00", + strip_prefix = "form_urlencoded-1.0.0", + build_file = Label("//third_party/rust/remote:BUILD.form_urlencoded-1.0.0.bazel"), + ) + maybe( http_archive, name = "raze__futures_channel__0_3_8", @@ -321,6 +401,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.futures-core-0.3.12.bazel"), ) + maybe( + http_archive, + name = "raze__futures_io__0_3_12", + url = "https://crates.io/api/v1/crates/futures-io/0.3.12/download", + type = "tar.gz", + sha256 = "28be053525281ad8259d47e4de5de657b25e7bac113458555bb4b70bc6870500", + strip_prefix = "futures-io-0.3.12", + build_file = Label("//third_party/rust/remote:BUILD.futures-io-0.3.12.bazel"), + ) + maybe( http_archive, name = "raze__futures_sink__0_3_8", @@ -471,6 +561,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.hyper-0.14.2.bazel"), ) + maybe( + http_archive, + name = "raze__hyper_tls__0_5_0", + url = "https://crates.io/api/v1/crates/hyper-tls/0.5.0/download", + type = "tar.gz", + sha256 = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905", + strip_prefix = "hyper-tls-0.5.0", + build_file = Label("//third_party/rust/remote:BUILD.hyper-tls-0.5.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__idna__0_2_0", + url = "https://crates.io/api/v1/crates/idna/0.2.0/download", + type = "tar.gz", + sha256 = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9", + strip_prefix = "idna-0.2.0", + build_file = Label("//third_party/rust/remote:BUILD.idna-0.2.0.bazel"), + ) + maybe( http_archive, name = "raze__indexmap__1_6_0", @@ -481,6 +591,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.indexmap-1.6.0.bazel"), ) + maybe( + http_archive, + name = "raze__ipnet__2_3_0", + url = "https://crates.io/api/v1/crates/ipnet/2.3.0/download", + type = "tar.gz", + sha256 = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135", + strip_prefix = "ipnet-2.3.0", + build_file = Label("//third_party/rust/remote:BUILD.ipnet-2.3.0.bazel"), + ) + maybe( http_archive, name = "raze__itertools__0_9_0", @@ -501,6 +621,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.itoa-0.4.6.bazel"), ) + maybe( + http_archive, + name = "raze__js_sys__0_3_47", + url = "https://crates.io/api/v1/crates/js-sys/0.3.47/download", + type = "tar.gz", + sha256 = "5cfb73131c35423a367daf8cbd24100af0d077668c8c2943f0e7dd775fef0f65", + strip_prefix = "js-sys-0.3.47", + build_file = Label("//third_party/rust/remote:BUILD.js-sys-0.3.47.bazel"), + ) + maybe( http_archive, name = "raze__lazy_static__1_4_0", @@ -531,6 +661,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.log-0.4.11.bazel"), ) + maybe( + http_archive, + name = "raze__matches__0_1_8", + url = "https://crates.io/api/v1/crates/matches/0.1.8/download", + type = "tar.gz", + sha256 = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08", + strip_prefix = "matches-0.1.8", + build_file = Label("//third_party/rust/remote:BUILD.matches-0.1.8.bazel"), + ) + maybe( http_archive, name = "raze__memchr__2_3_4", @@ -551,6 +691,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.memoffset-0.6.1.bazel"), ) + maybe( + http_archive, + name = "raze__mime__0_3_16", + url = "https://crates.io/api/v1/crates/mime/0.3.16/download", + type = "tar.gz", + sha256 = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d", + strip_prefix = "mime-0.3.16", + build_file = Label("//third_party/rust/remote:BUILD.mime-0.3.16.bazel"), + ) + maybe( http_archive, name = "raze__mio__0_7_7", @@ -581,6 +731,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.multimap-0.8.2.bazel"), ) + maybe( + http_archive, + name = "raze__native_tls__0_2_7", + url = "https://crates.io/api/v1/crates/native-tls/0.2.7/download", + type = "tar.gz", + sha256 = "b8d96b2e1c8da3957d58100b09f102c6d9cfdfced01b7ec5a8974044bb09dbd4", + strip_prefix = "native-tls-0.2.7", + build_file = Label("//third_party/rust/remote:BUILD.native-tls-0.2.7.bazel"), + ) + maybe( http_archive, name = "raze__ntapi__0_3_6", @@ -601,6 +761,46 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.num_cpus-1.13.0.bazel"), ) + maybe( + http_archive, + name = "raze__once_cell__1_5_2", + url = "https://crates.io/api/v1/crates/once_cell/1.5.2/download", + type = "tar.gz", + sha256 = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0", + strip_prefix = "once_cell-1.5.2", + build_file = Label("//third_party/rust/remote:BUILD.once_cell-1.5.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__openssl__0_10_32", + url = "https://crates.io/api/v1/crates/openssl/0.10.32/download", + type = "tar.gz", + sha256 = "038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70", + strip_prefix = "openssl-0.10.32", + build_file = Label("//third_party/rust/remote:BUILD.openssl-0.10.32.bazel"), + ) + + maybe( + http_archive, + name = "raze__openssl_probe__0_1_2", + url = "https://crates.io/api/v1/crates/openssl-probe/0.1.2/download", + type = "tar.gz", + sha256 = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de", + strip_prefix = "openssl-probe-0.1.2", + build_file = Label("//third_party/rust/remote:BUILD.openssl-probe-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "raze__openssl_sys__0_9_60", + url = "https://crates.io/api/v1/crates/openssl-sys/0.9.60/download", + type = "tar.gz", + sha256 = "921fc71883267538946025deffb622905ecad223c28efbfdef9bb59a0175f3e6", + strip_prefix = "openssl-sys-0.9.60", + build_file = Label("//third_party/rust/remote:BUILD.openssl-sys-0.9.60.bazel"), + ) + maybe( http_archive, name = "raze__os_str_bytes__2_4_0", @@ -701,6 +901,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.pin-utils-0.1.0.bazel"), ) + maybe( + http_archive, + name = "raze__pkg_config__0_3_19", + url = "https://crates.io/api/v1/crates/pkg-config/0.3.19/download", + type = "tar.gz", + sha256 = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c", + strip_prefix = "pkg-config-0.3.19", + build_file = Label("//third_party/rust/remote:BUILD.pkg-config-0.3.19.bazel"), + ) + maybe( http_archive, name = "raze__ppv_lite86__0_2_10", @@ -931,6 +1141,16 @@ 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__reqwest__0_11_0", + url = "https://crates.io/api/v1/crates/reqwest/0.11.0/download", + type = "tar.gz", + sha256 = "fd281b1030aa675fb90aa994d07187645bb3c8fc756ca766e7c3070b439de9de", + strip_prefix = "reqwest-0.11.0", + build_file = Label("//third_party/rust/remote:BUILD.reqwest-0.11.0.bazel"), + ) + maybe( http_archive, name = "raze__ryu__1_0_5", @@ -951,6 +1171,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.same-file-1.0.6.bazel"), ) + maybe( + http_archive, + name = "raze__schannel__0_1_19", + url = "https://crates.io/api/v1/crates/schannel/0.1.19/download", + type = "tar.gz", + sha256 = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75", + strip_prefix = "schannel-0.1.19", + build_file = Label("//third_party/rust/remote:BUILD.schannel-0.1.19.bazel"), + ) + maybe( http_archive, name = "raze__scopeguard__1_1_0", @@ -961,6 +1191,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.scopeguard-1.1.0.bazel"), ) + maybe( + http_archive, + name = "raze__security_framework__2_0_0", + url = "https://crates.io/api/v1/crates/security-framework/2.0.0/download", + type = "tar.gz", + sha256 = "c1759c2e3c8580017a484a7ac56d3abc5a6c1feadf88db2f3633f12ae4268c69", + strip_prefix = "security-framework-2.0.0", + build_file = Label("//third_party/rust/remote:BUILD.security-framework-2.0.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__security_framework_sys__2_0_0", + url = "https://crates.io/api/v1/crates/security-framework-sys/2.0.0/download", + type = "tar.gz", + sha256 = "f99b9d5e26d2a71633cc4f2ebae7cc9f874044e0c351a27e17892d76dce5678b", + strip_prefix = "security-framework-sys-2.0.0", + build_file = Label("//third_party/rust/remote:BUILD.security-framework-sys-2.0.0.bazel"), + ) + maybe( http_archive, name = "raze__serde__1_0_118", @@ -991,6 +1241,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.serde_json-1.0.61.bazel"), ) + maybe( + http_archive, + name = "raze__serde_urlencoded__0_7_0", + url = "https://crates.io/api/v1/crates/serde_urlencoded/0.7.0/download", + type = "tar.gz", + sha256 = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9", + strip_prefix = "serde_urlencoded-0.7.0", + build_file = Label("//third_party/rust/remote:BUILD.serde_urlencoded-0.7.0.bazel"), + ) + maybe( http_archive, name = "raze__slab__0_4_2", @@ -1091,6 +1351,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.thread_local-1.0.1.bazel"), ) + maybe( + http_archive, + name = "raze__tinyvec__1_1_1", + url = "https://crates.io/api/v1/crates/tinyvec/1.1.1/download", + type = "tar.gz", + sha256 = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023", + strip_prefix = "tinyvec-1.1.1", + build_file = Label("//third_party/rust/remote:BUILD.tinyvec-1.1.1.bazel"), + ) + + maybe( + http_archive, + name = "raze__tinyvec_macros__0_1_0", + url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download", + type = "tar.gz", + sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", + strip_prefix = "tinyvec_macros-0.1.0", + build_file = Label("//third_party/rust/remote:BUILD.tinyvec_macros-0.1.0.bazel"), + ) + maybe( http_archive, name = "raze__tokio__1_0_2", @@ -1111,6 +1391,16 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.tokio-macros-1.0.0.bazel"), ) + maybe( + http_archive, + name = "raze__tokio_native_tls__0_3_0", + url = "https://crates.io/api/v1/crates/tokio-native-tls/0.3.0/download", + type = "tar.gz", + sha256 = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b", + strip_prefix = "tokio-native-tls-0.3.0", + build_file = Label("//third_party/rust/remote:BUILD.tokio-native-tls-0.3.0.bazel"), + ) + maybe( http_archive, name = "raze__tokio_stream__0_1_2", @@ -1231,6 +1521,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.try-lock-0.2.3.bazel"), ) + maybe( + http_archive, + name = "raze__unicode_bidi__0_3_4", + url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.4/download", + type = "tar.gz", + sha256 = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5", + strip_prefix = "unicode-bidi-0.3.4", + build_file = Label("//third_party/rust/remote:BUILD.unicode-bidi-0.3.4.bazel"), + ) + + maybe( + http_archive, + name = "raze__unicode_normalization__0_1_16", + url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.16/download", + type = "tar.gz", + sha256 = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606", + strip_prefix = "unicode-normalization-0.1.16", + build_file = Label("//third_party/rust/remote:BUILD.unicode-normalization-0.1.16.bazel"), + ) + maybe( http_archive, name = "raze__unicode_segmentation__1_6_0", @@ -1261,6 +1571,26 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.unicode-xid-0.2.1.bazel"), ) + maybe( + http_archive, + name = "raze__url__2_2_0", + url = "https://crates.io/api/v1/crates/url/2.2.0/download", + type = "tar.gz", + sha256 = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e", + strip_prefix = "url-2.2.0", + build_file = Label("//third_party/rust/remote:BUILD.url-2.2.0.bazel"), + ) + + maybe( + http_archive, + name = "raze__vcpkg__0_2_11", + url = "https://crates.io/api/v1/crates/vcpkg/0.2.11/download", + type = "tar.gz", + sha256 = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb", + strip_prefix = "vcpkg-0.2.11", + build_file = Label("//third_party/rust/remote:BUILD.vcpkg-0.2.11.bazel"), + ) + maybe( http_archive, name = "raze__vec_map__0_8_2", @@ -1321,6 +1651,76 @@ def raze_fetch_remote_crates(): build_file = Label("//third_party/rust/remote:BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel"), ) + maybe( + http_archive, + name = "raze__wasm_bindgen__0_2_70", + url = "https://crates.io/api/v1/crates/wasm-bindgen/0.2.70/download", + type = "tar.gz", + sha256 = "55c0f7123de74f0dab9b7d00fd614e7b19349cd1e2f5252bbe9b1754b59433be", + strip_prefix = "wasm-bindgen-0.2.70", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-0.2.70.bazel"), + ) + + maybe( + http_archive, + name = "raze__wasm_bindgen_backend__0_2_70", + url = "https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.70/download", + type = "tar.gz", + sha256 = "7bc45447f0d4573f3d65720f636bbcc3dd6ce920ed704670118650bcd47764c7", + strip_prefix = "wasm-bindgen-backend-0.2.70", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-backend-0.2.70.bazel"), + ) + + maybe( + http_archive, + name = "raze__wasm_bindgen_futures__0_4_20", + url = "https://crates.io/api/v1/crates/wasm-bindgen-futures/0.4.20/download", + type = "tar.gz", + sha256 = "3de431a2910c86679c34283a33f66f4e4abd7e0aec27b6669060148872aadf94", + strip_prefix = "wasm-bindgen-futures-0.4.20", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-futures-0.4.20.bazel"), + ) + + maybe( + http_archive, + name = "raze__wasm_bindgen_macro__0_2_70", + url = "https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.70/download", + type = "tar.gz", + sha256 = "3b8853882eef39593ad4174dd26fc9865a64e84026d223f63bb2c42affcbba2c", + strip_prefix = "wasm-bindgen-macro-0.2.70", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-macro-0.2.70.bazel"), + ) + + maybe( + http_archive, + name = "raze__wasm_bindgen_macro_support__0_2_70", + url = "https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.70/download", + type = "tar.gz", + sha256 = "4133b5e7f2a531fa413b3a1695e925038a05a71cf67e87dafa295cb645a01385", + strip_prefix = "wasm-bindgen-macro-support-0.2.70", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-macro-support-0.2.70.bazel"), + ) + + maybe( + http_archive, + name = "raze__wasm_bindgen_shared__0_2_70", + url = "https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.70/download", + type = "tar.gz", + sha256 = "dd4945e4943ae02d15c13962b38a5b1e81eadd4b71214eee75af64a4d6a4fd64", + strip_prefix = "wasm-bindgen-shared-0.2.70", + build_file = Label("//third_party/rust/remote:BUILD.wasm-bindgen-shared-0.2.70.bazel"), + ) + + maybe( + http_archive, + name = "raze__web_sys__0_3_47", + url = "https://crates.io/api/v1/crates/web-sys/0.3.47/download", + type = "tar.gz", + sha256 = "c40dc691fc48003eba817c38da7113c15698142da971298003cac3ef175680b3", + strip_prefix = "web-sys-0.3.47", + build_file = Label("//third_party/rust/remote:BUILD.web-sys-0.3.47.bazel"), + ) + maybe( http_archive, name = "raze__which__4_0_2", @@ -1370,3 +1770,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__winreg__0_7_0", + url = "https://crates.io/api/v1/crates/winreg/0.7.0/download", + type = "tar.gz", + sha256 = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69", + strip_prefix = "winreg-0.7.0", + build_file = Label("//third_party/rust/remote:BUILD.winreg-0.7.0.bazel"), + ) diff --git a/third_party/rust/remote/BUILD.bumpalo-3.6.0.bazel b/third_party/rust/remote/BUILD.bumpalo-3.6.0.bazel new file mode 100644 index 0000000000..fed3f30086 --- /dev/null +++ b/third_party/rust/remote/BUILD.bumpalo-3.6.0.bazel @@ -0,0 +1,79 @@ +""" +@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 "benches" with type "bench" omitted + +rust_library( + name = "bumpalo", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "3.6.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "alloc_fill" with type "test" omitted + +# Unsupported target "alloc_try_with" with type "test" omitted + +# Unsupported target "alloc_with" with type "test" omitted + +# Unsupported target "allocator_api" with type "test" omitted + +# Unsupported target "quickchecks" with type "test" omitted + +# Unsupported target "readme_up_to_date" with type "test" omitted + +# Unsupported target "string" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted + +# Unsupported target "try_alloc" with type "test" omitted + +# Unsupported target "try_alloc_try_with" with type "test" omitted + +# Unsupported target "try_alloc_with" with type "test" omitted + +# Unsupported target "vec" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.cc-1.0.66.bazel b/third_party/rust/remote/BUILD.cc-1.0.66.bazel new file mode 100644 index 0000000000..b3308f221f --- /dev/null +++ b/third_party/rust/remote/BUILD.cc-1.0.66.bazel @@ -0,0 +1,84 @@ +""" +@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_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_gcc_shim", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/bin/gcc-shim.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.66", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":cc", + ], +) + +rust_library( + name = "cc", + 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 = "1.0.66", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cc_env" with type "test" omitted + +# Unsupported target "cflags" with type "test" omitted + +# Unsupported target "cxxflags" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.core-foundation-0.9.1.bazel b/third_party/rust/remote/BUILD.core-foundation-0.9.1.bazel new file mode 100644 index 0000000000..589bf0e184 --- /dev/null +++ b/third_party/rust/remote/BUILD.core-foundation-0.9.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 = "core_foundation", + 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.9.1", + # buildifier: leave-alone + deps = [ + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", + ], +) + +# Unsupported target "use_macro_outside_crate" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.core-foundation-sys-0.8.2.bazel b/third_party/rust/remote/BUILD.core-foundation-sys-0.8.2.bazel new file mode 100644 index 0000000000..d9ccb17d1d --- /dev/null +++ b/third_party/rust/remote/BUILD.core-foundation-sys-0.8.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 OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "core_foundation_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.8.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.encoding_rs-0.8.26.bazel b/third_party/rust/remote/BUILD.encoding_rs-0.8.26.bazel new file mode 100644 index 0000000000..d0225e8c1b --- /dev/null +++ b/third_party/rust/remote/BUILD.encoding_rs-0.8.26.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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "encoding_rs", + 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.8.26", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__1_0_0//:cfg_if", + ], +) diff --git a/third_party/rust/remote/BUILD.foreign-types-0.3.2.bazel b/third_party/rust/remote/BUILD.foreign-types-0.3.2.bazel new file mode 100644 index 0000000000..be1b3231e9 --- /dev/null +++ b/third_party/rust/remote/BUILD.foreign-types-0.3.2.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 = "foreign_types", + 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 = [ + "@raze__foreign_types_shared__0_1_1//:foreign_types_shared", + ], +) diff --git a/third_party/rust/remote/BUILD.foreign-types-shared-0.1.1.bazel b/third_party/rust/remote/BUILD.foreign-types-shared-0.1.1.bazel new file mode 100644 index 0000000000..74bb33e711 --- /dev/null +++ b/third_party/rust/remote/BUILD.foreign-types-shared-0.1.1.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 = "foreign_types_shared", + 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.form_urlencoded-1.0.0.bazel b/third_party/rust/remote/BUILD.form_urlencoded-1.0.0.bazel new file mode 100644 index 0000000000..74436170c8 --- /dev/null +++ b/third_party/rust/remote/BUILD.form_urlencoded-1.0.0.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 OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "form_urlencoded", + 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.0.0", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", + "@raze__percent_encoding__2_1_0//:percent_encoding", + ], +) diff --git a/third_party/rust/remote/BUILD.futures-io-0.3.12.bazel b/third_party/rust/remote/BUILD.futures-io-0.3.12.bazel new file mode 100644 index 0000000000..63f092ed02 --- /dev/null +++ b/third_party/rust/remote/BUILD.futures-io-0.3.12.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_io", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.12", + # 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 index f1b11d9ec3..0cff4abd71 100644 --- a/third_party/rust/remote/BUILD.futures-task-0.3.8.bazel +++ b/third_party/rust/remote/BUILD.futures-task-0.3.8.bazel @@ -35,6 +35,8 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "alloc", + "once_cell", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -49,5 +51,6 @@ rust_library( version = "0.3.8", # buildifier: leave-alone deps = [ + "@raze__once_cell__1_5_2//:once_cell", ], ) 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 index 1ae6b2d193..ae9e9d096e 100644 --- a/third_party/rust/remote/BUILD.futures-util-0.3.8.bazel +++ b/third_party/rust/remote/BUILD.futures-util-0.3.8.bazel @@ -37,6 +37,11 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "alloc", + "futures-io", + "io", + "memchr", + "slab", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -52,8 +57,11 @@ rust_library( # buildifier: leave-alone deps = [ "@raze__futures_core__0_3_12//:futures_core", + "@raze__futures_io__0_3_12//:futures_io", "@raze__futures_task__0_3_8//:futures_task", + "@raze__memchr__2_3_4//:memchr", "@raze__pin_project__1_0_1//:pin_project", "@raze__pin_utils__0_1_0//:pin_utils", + "@raze__slab__0_4_2//:slab", ], ) diff --git a/third_party/rust/remote/BUILD.hyper-tls-0.5.0.bazel b/third_party/rust/remote/BUILD.hyper-tls-0.5.0.bazel new file mode 100644 index 0000000000..54bc6ebdcc --- /dev/null +++ b/third_party/rust/remote/BUILD.hyper-tls-0.5.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 OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "client" with type "example" omitted + +rust_library( + name = "hyper_tls", + 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.5.0", + # buildifier: leave-alone + deps = [ + "@raze__bytes__1_0_1//:bytes", + "@raze__hyper__0_14_2//:hyper", + "@raze__native_tls__0_2_7//:native_tls", + "@raze__tokio__1_0_2//:tokio", + "@raze__tokio_native_tls__0_3_0//:tokio_native_tls", + ], +) diff --git a/third_party/rust/remote/BUILD.idna-0.2.0.bazel b/third_party/rust/remote/BUILD.idna-0.2.0.bazel new file mode 100644 index 0000000000..18aa957068 --- /dev/null +++ b/third_party/rust/remote/BUILD.idna-0.2.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 OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "idna", + 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.0", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", + "@raze__unicode_bidi__0_3_4//:unicode_bidi", + "@raze__unicode_normalization__0_1_16//:unicode_normalization", + ], +) + +# Unsupported target "tests" with type "test" omitted + +# Unsupported target "unit" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.ipnet-2.3.0.bazel b/third_party/rust/remote/BUILD.ipnet-2.3.0.bazel new file mode 100644 index 0000000000..d48fae2084 --- /dev/null +++ b/third_party/rust/remote/BUILD.ipnet-2.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 OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "ipnet", + 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 = "2.3.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.js-sys-0.3.47.bazel b/third_party/rust/remote/BUILD.js-sys-0.3.47.bazel new file mode 100644 index 0000000000..bdd2885a50 --- /dev/null +++ b/third_party/rust/remote/BUILD.js-sys-0.3.47.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", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "js_sys", + 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.47", + # buildifier: leave-alone + deps = [ + "@raze__wasm_bindgen__0_2_70//:wasm_bindgen", + ], +) + +# Unsupported target "headless" with type "test" omitted + +# Unsupported target "wasm" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.matches-0.1.8.bazel b/third_party/rust/remote/BUILD.matches-0.1.8.bazel new file mode 100644 index 0000000000..982550e333 --- /dev/null +++ b/third_party/rust/remote/BUILD.matches-0.1.8.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 = "matches", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.8", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "macro_use_one" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.mime-0.3.16.bazel b/third_party/rust/remote/BUILD.mime-0.3.16.bazel new file mode 100644 index 0000000000..016f75bc51 --- /dev/null +++ b/third_party/rust/remote/BUILD.mime-0.3.16.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 "cmp" with type "bench" omitted + +# Unsupported target "fmt" with type "bench" omitted + +# Unsupported target "parse" with type "bench" omitted + +rust_library( + name = "mime", + 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.16", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.native-tls-0.2.7.bazel b/third_party/rust/remote/BUILD.native-tls-0.2.7.bazel new file mode 100644 index 0000000000..c4fa84b2af --- /dev/null +++ b/third_party/rust/remote/BUILD.native-tls-0.2.7.bazel @@ -0,0 +1,91 @@ +""" +@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 + +# Unsupported target "google-connect" with type "example" omitted + +# Unsupported target "simple-server" with type "example" omitted + +rust_library( + name = "native_tls", + 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.2.7", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + ): [ + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__libc__0_2_80//:libc", + "@raze__security_framework__2_0_0//:security_framework", + "@raze__security_framework_sys__2_0_0//:security_framework_sys", + "@raze__tempfile__3_1_0//:tempfile", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(any(target_os = "windows", target_os = "macos", target_os = "ios"))) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__log__0_4_11//:log", + "@raze__openssl__0_10_32//:openssl", + "@raze__openssl_probe__0_1_2//:openssl_probe", + "@raze__openssl_sys__0_9_60//:openssl_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__schannel__0_1_19//:schannel", + ], + "//conditions:default": [], + }), +) diff --git a/third_party/rust/remote/BUILD.once_cell-1.5.2.bazel b/third_party/rust/remote/BUILD.once_cell-1.5.2.bazel new file mode 100644 index 0000000000..cda9ea949d --- /dev/null +++ b/third_party/rust/remote/BUILD.once_cell-1.5.2.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 OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "example" omitted + +# Unsupported target "bench_acquire" with type "example" omitted + +# Unsupported target "bench_vs_lazy_static" with type "example" omitted + +# Unsupported target "lazy_static" with type "example" omitted + +# Unsupported target "reentrant_init_deadlocks" with type "example" omitted + +# Unsupported target "regex" with type "example" omitted + +# Unsupported target "test_synchronization" with type "example" omitted + +rust_library( + name = "once_cell", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.5.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "it" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.openssl-0.10.32.bazel b/third_party/rust/remote/BUILD.openssl-0.10.32.bazel new file mode 100644 index 0000000000..013da6ce15 --- /dev/null +++ b/third_party/rust/remote/BUILD.openssl-0.10.32.bazel @@ -0,0 +1,89 @@ +""" +@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" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "openssl_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.10.32", + visibility = ["//visibility:private"], + deps = [ + "@raze__openssl_sys__0_9_60//:openssl_sys", + ], +) + +# Unsupported target "mk_certs" with type "example" omitted + +rust_library( + name = "openssl", + 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.10.32", + # buildifier: leave-alone + deps = [ + ":openssl_build_script", + "@raze__bitflags__1_2_1//:bitflags", + "@raze__cfg_if__1_0_0//:cfg_if", + "@raze__foreign_types__0_3_2//:foreign_types", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__libc__0_2_80//:libc", + "@raze__openssl_sys__0_9_60//:openssl_sys", + ], +) diff --git a/third_party/rust/remote/BUILD.openssl-probe-0.1.2.bazel b/third_party/rust/remote/BUILD.openssl-probe-0.1.2.bazel new file mode 100644 index 0000000000..a2f6a514ca --- /dev/null +++ b/third_party/rust/remote/BUILD.openssl-probe-0.1.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 = "openssl_probe", + 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.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.openssl-sys-0.9.60.bazel b/third_party/rust/remote/BUILD.openssl-sys-0.9.60.bazel new file mode 100644 index 0000000000..2957dd1f17 --- /dev/null +++ b/third_party/rust/remote/BUILD.openssl-sys-0.9.60.bazel @@ -0,0 +1,101 @@ +""" +@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# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "openssl_sys_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build/main.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.60", + visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + "@raze__cc__1_0_66//:cc", + "@raze__pkg_config__0_3_19//:pkg_config", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__vcpkg__0_2_11//:vcpkg", + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "openssl_sys", + 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.9.60", + # buildifier: leave-alone + deps = [ + ":openssl_sys_build_script", + "@raze__libc__0_2_80//:libc", + ] + selects.with_or({ + # cfg(target_env = "msvc") + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) diff --git a/third_party/rust/remote/BUILD.pkg-config-0.3.19.bazel b/third_party/rust/remote/BUILD.pkg-config-0.3.19.bazel new file mode 100644 index 0000000000..3c0d0fa384 --- /dev/null +++ b/third_party/rust/remote/BUILD.pkg-config-0.3.19.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 OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "pkg_config", + 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.19", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.reqwest-0.11.0.bazel b/third_party/rust/remote/BUILD.reqwest-0.11.0.bazel new file mode 100644 index 0000000000..9d114662ae --- /dev/null +++ b/third_party/rust/remote/BUILD.reqwest-0.11.0.bazel @@ -0,0 +1,137 @@ +""" +@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 "blocking" with type "example" omitted + +# Unsupported target "form" with type "example" omitted + +# Unsupported target "json_dynamic" with type "example" omitted + +# Unsupported target "json_typed" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "tor_socks" with type "example" omitted + +rust_library( + name = "reqwest", + srcs = glob(["**/*.rs"]), + aliases = { + "@raze__native_tls__0_2_7//:native_tls": "native_tls_crate", + }, + crate_features = [ + "__tls", + "blocking", + "default", + "default-tls", + "hyper-tls", + "json", + "native-tls-crate", + "serde_json", + "tokio-native-tls", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.0", + # buildifier: leave-alone + deps = [ + "@raze__bytes__1_0_1//:bytes", + "@raze__http__0_2_1//:http", + "@raze__serde__1_0_118//:serde", + "@raze__serde_json__1_0_61//:serde_json", + "@raze__serde_urlencoded__0_7_0//:serde_urlencoded", + "@raze__url__2_2_0//:url", + ] + selects.with_or({ + # cfg(not(target_arch = "wasm32")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__base64__0_13_0//:base64", + "@raze__encoding_rs__0_8_26//:encoding_rs", + "@raze__futures_core__0_3_12//:futures_core", + "@raze__futures_util__0_3_8//:futures_util", + "@raze__http_body__0_4_0//:http_body", + "@raze__hyper__0_14_2//:hyper", + "@raze__hyper_tls__0_5_0//:hyper_tls", + "@raze__ipnet__2_3_0//:ipnet", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__log__0_4_11//:log", + "@raze__mime__0_3_16//:mime", + "@raze__native_tls__0_2_7//:native_tls", + "@raze__percent_encoding__2_1_0//:percent_encoding", + "@raze__pin_project_lite__0_2_4//:pin_project_lite", + "@raze__tokio__1_0_2//:tokio", + "@raze__tokio_native_tls__0_3_0//:tokio_native_tls", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@raze__winreg__0_7_0//:winreg", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "badssl" with type "test" omitted + +# Unsupported target "blocking" with type "test" omitted + +# Unsupported target "brotli" with type "test" omitted + +# Unsupported target "client" with type "test" omitted + +# Unsupported target "cookie" with type "test" omitted + +# Unsupported target "gzip" with type "test" omitted + +# Unsupported target "multipart" with type "test" omitted + +# Unsupported target "proxy" with type "test" omitted + +# Unsupported target "redirect" with type "test" omitted + +# Unsupported target "timeouts" with type "test" omitted + +# Unsupported target "wasm_simple" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.schannel-0.1.19.bazel b/third_party/rust/remote/BUILD.schannel-0.1.19.bazel new file mode 100644 index 0000000000..fb915303fb --- /dev/null +++ b/third_party/rust/remote/BUILD.schannel-0.1.19.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 = "schannel", + 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.19", + # buildifier: leave-alone + deps = [ + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__winapi__0_3_9//:winapi", + ], +) diff --git a/third_party/rust/remote/BUILD.security-framework-2.0.0.bazel b/third_party/rust/remote/BUILD.security-framework-2.0.0.bazel new file mode 100644 index 0000000000..c94e8a7b83 --- /dev/null +++ b/third_party/rust/remote/BUILD.security-framework-2.0.0.bazel @@ -0,0 +1,65 @@ +""" +@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 "client" with type "example" omitted + +# Unsupported target "find_internet_password" with type "example" omitted + +# Unsupported target "set_internet_password" with type "example" omitted + +rust_library( + name = "security_framework", + srcs = glob(["**/*.rs"]), + crate_features = [ + "OSX_10_9", + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.0", + # buildifier: leave-alone + deps = [ + "@raze__bitflags__1_2_1//:bitflags", + "@raze__core_foundation__0_9_1//:core_foundation", + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", + "@raze__security_framework_sys__2_0_0//:security_framework_sys", + ], +) diff --git a/third_party/rust/remote/BUILD.security-framework-sys-2.0.0.bazel b/third_party/rust/remote/BUILD.security-framework-sys-2.0.0.bazel new file mode 100644 index 0000000000..4c78e75256 --- /dev/null +++ b/third_party/rust/remote/BUILD.security-framework-sys-2.0.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 = "security_framework_sys", + srcs = glob(["**/*.rs"]), + crate_features = [ + "OSX_10_9", + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.0", + # buildifier: leave-alone + deps = [ + "@raze__core_foundation_sys__0_8_2//:core_foundation_sys", + "@raze__libc__0_2_80//:libc", + ], +) diff --git a/third_party/rust/remote/BUILD.serde_urlencoded-0.7.0.bazel b/third_party/rust/remote/BUILD.serde_urlencoded-0.7.0.bazel new file mode 100644 index 0000000000..efc09fe0e6 --- /dev/null +++ b/third_party/rust/remote/BUILD.serde_urlencoded-0.7.0.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 + +rust_library( + name = "serde_urlencoded", + 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.7.0", + # buildifier: leave-alone + deps = [ + "@raze__form_urlencoded__1_0_0//:form_urlencoded", + "@raze__itoa__0_4_6//:itoa", + "@raze__ryu__1_0_5//:ryu", + "@raze__serde__1_0_118//:serde", + ], +) + +# Unsupported target "test_deserialize" with type "test" omitted + +# Unsupported target "test_serialize" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tinyvec-1.1.1.bazel b/third_party/rust/remote/BUILD.tinyvec-1.1.1.bazel new file mode 100644 index 0000000000..d60908e0e0 --- /dev/null +++ b/third_party/rust/remote/BUILD.tinyvec-1.1.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", # Zlib from expression "Zlib OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets + +# Unsupported target "macros" with type "bench" omitted + +rust_library( + name = "tinyvec", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "tinyvec_macros", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.1", + # buildifier: leave-alone + deps = [ + "@raze__tinyvec_macros__0_1_0//:tinyvec_macros", + ], +) + +# Unsupported target "arrayvec" with type "test" omitted + +# Unsupported target "tinyvec" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.tinyvec_macros-0.1.0.bazel b/third_party/rust/remote/BUILD.tinyvec_macros-0.1.0.bazel new file mode 100644 index 0000000000..4a0f915391 --- /dev/null +++ b/third_party/rust/remote/BUILD.tinyvec_macros-0.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 OR Zlib)" +]) + +# Generated Targets + +rust_library( + name = "tinyvec_macros", + 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 = [ + ], +) diff --git a/third_party/rust/remote/BUILD.tokio-native-tls-0.3.0.bazel b/third_party/rust/remote/BUILD.tokio-native-tls-0.3.0.bazel new file mode 100644 index 0000000000..63de484c21 --- /dev/null +++ b/third_party/rust/remote/BUILD.tokio-native-tls-0.3.0.bazel @@ -0,0 +1,87 @@ +""" +@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 "download-rust-lang" with type "example" omitted + +# Unsupported target "echo" with type "example" omitted + +rust_library( + name = "tokio_native_tls", + 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.0", + # buildifier: leave-alone + deps = [ + "@raze__native_tls__0_2_7//:native_tls", + "@raze__tokio__1_0_2//:tokio", + ] + selects.with_or({ + # cfg(all(not(target_os = "macos"), not(windows), not(target_os = "ios"))) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "bad" with type "test" omitted + +# Unsupported target "google" with type "test" omitted + +# Unsupported target "smoke" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.unicode-bidi-0.3.4.bazel b/third_party/rust/remote/BUILD.unicode-bidi-0.3.4.bazel new file mode 100644 index 0000000000..81d35b4e6b --- /dev/null +++ b/third_party/rust/remote/BUILD.unicode-bidi-0.3.4.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 OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "unicode_bidi", + 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 = "0.3.4", + # buildifier: leave-alone + deps = [ + "@raze__matches__0_1_8//:matches", + ], +) diff --git a/third_party/rust/remote/BUILD.unicode-normalization-0.1.16.bazel b/third_party/rust/remote/BUILD.unicode-normalization-0.1.16.bazel new file mode 100644 index 0000000000..900f879fca --- /dev/null +++ b/third_party/rust/remote/BUILD.unicode-normalization-0.1.16.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", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "unicode_normalization", + 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.1.16", + # buildifier: leave-alone + deps = [ + "@raze__tinyvec__1_1_1//:tinyvec", + ], +) diff --git a/third_party/rust/remote/BUILD.url-2.2.0.bazel b/third_party/rust/remote/BUILD.url-2.2.0.bazel new file mode 100644 index 0000000000..848b72e303 --- /dev/null +++ b/third_party/rust/remote/BUILD.url-2.2.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 OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "parse_url" with type "bench" omitted + +rust_library( + name = "url", + 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 = "2.2.0", + # buildifier: leave-alone + deps = [ + "@raze__form_urlencoded__1_0_0//:form_urlencoded", + "@raze__idna__0_2_0//:idna", + "@raze__matches__0_1_8//:matches", + "@raze__percent_encoding__2_1_0//:percent_encoding", + ], +) diff --git a/third_party/rust/remote/BUILD.vcpkg-0.2.11.bazel b/third_party/rust/remote/BUILD.vcpkg-0.2.11.bazel new file mode 100644 index 0000000000..80cbe9c19f --- /dev/null +++ b/third_party/rust/remote/BUILD.vcpkg-0.2.11.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 = "vcpkg", + 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.11", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-0.2.70.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-0.2.70.bazel new file mode 100644 index 0000000000..7dbaac5d83 --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-0.2.70.bazel @@ -0,0 +1,78 @@ +""" +@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 = "wasm_bindgen", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "serde", + "serde-serialize", + "serde_json", + "spans", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@raze__wasm_bindgen_macro__0_2_70//:wasm_bindgen_macro", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.70", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__1_0_0//:cfg_if", + "@raze__serde__1_0_118//:serde", + "@raze__serde_json__1_0_61//:serde_json", + ], +) + +# Unsupported target "headless" with type "test" omitted + +# Unsupported target "must_use" with type "test" omitted + +# Unsupported target "non_wasm" with type "test" omitted + +# Unsupported target "std-crate-no-std-dep" with type "test" omitted + +# Unsupported target "unwrap_throw" with type "test" omitted + +# Unsupported target "wasm" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-backend-0.2.70.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-backend-0.2.70.bazel new file mode 100644 index 0000000000..7b1c6de8ab --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-backend-0.2.70.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 + +rust_library( + name = "wasm_bindgen_backend", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.70", + # buildifier: leave-alone + deps = [ + "@raze__bumpalo__3_6_0//:bumpalo", + "@raze__lazy_static__1_4_0//:lazy_static", + "@raze__log__0_4_11//:log", + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + "@raze__wasm_bindgen_shared__0_2_70//:wasm_bindgen_shared", + ], +) diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-futures-0.4.20.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-futures-0.4.20.bazel new file mode 100644 index 0000000000..4159ccc64d --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-futures-0.4.20.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", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasm_bindgen_futures", + 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.4.20", + # buildifier: leave-alone + deps = [ + "@raze__cfg_if__1_0_0//:cfg_if", + "@raze__js_sys__0_3_47//:js_sys", + "@raze__wasm_bindgen__0_2_70//:wasm_bindgen", + ], +) + +# Unsupported target "tests" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-macro-0.2.70.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-macro-0.2.70.bazel new file mode 100644 index 0000000000..64212f2323 --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-macro-0.2.70.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", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasm_bindgen_macro", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.70", + # buildifier: leave-alone + deps = [ + "@raze__quote__1_0_7//:quote", + "@raze__wasm_bindgen_macro_support__0_2_70//:wasm_bindgen_macro_support", + ], +) + +# Unsupported target "ui" with type "test" omitted diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-macro-support-0.2.70.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-macro-support-0.2.70.bazel new file mode 100644 index 0000000000..d4ecb285e3 --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-macro-support-0.2.70.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 + +rust_library( + name = "wasm_bindgen_macro_support", + srcs = glob(["**/*.rs"]), + crate_features = [ + "spans", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.70", + # buildifier: leave-alone + deps = [ + "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__quote__1_0_7//:quote", + "@raze__syn__1_0_48//:syn", + "@raze__wasm_bindgen_backend__0_2_70//:wasm_bindgen_backend", + "@raze__wasm_bindgen_shared__0_2_70//:wasm_bindgen_shared", + ], +) diff --git a/third_party/rust/remote/BUILD.wasm-bindgen-shared-0.2.70.bazel b/third_party/rust/remote/BUILD.wasm-bindgen-shared-0.2.70.bazel new file mode 100644 index 0000000000..47945835ea --- /dev/null +++ b/third_party/rust/remote/BUILD.wasm-bindgen-shared-0.2.70.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 OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "wasm_bindgen_shared", + 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.70", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/third_party/rust/remote/BUILD.web-sys-0.3.47.bazel b/third_party/rust/remote/BUILD.web-sys-0.3.47.bazel new file mode 100644 index 0000000000..4711416edf --- /dev/null +++ b/third_party/rust/remote/BUILD.web-sys-0.3.47.bazel @@ -0,0 +1,71 @@ +""" +@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 = "web_sys", + srcs = glob(["**/*.rs"]), + crate_features = [ + "Blob", + "BlobPropertyBag", + "Event", + "EventTarget", + "FormData", + "Headers", + "MessageEvent", + "Request", + "RequestInit", + "RequestMode", + "Response", + "ServiceWorkerGlobalScope", + "Window", + "Worker", + "WorkerGlobalScope", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.47", + # buildifier: leave-alone + deps = [ + "@raze__js_sys__0_3_47//:js_sys", + "@raze__wasm_bindgen__0_2_70//:wasm_bindgen", + ], +) + +# Unsupported target "wasm" with type "test" omitted 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 2ff6044598..d3bdf86d80 100644 --- a/third_party/rust/remote/BUILD.winapi-0.3.9.bazel +++ b/third_party/rust/remote/BUILD.winapi-0.3.9.bazel @@ -42,9 +42,13 @@ rust_library( "evntrace", "fileapi", "handleapi", + "impl-debug", + "impl-default", "in6addr", "inaddr", "ioapiset", + "lmcons", + "minschannel", "minwinbase", "minwindef", "mswsock", @@ -52,14 +56,21 @@ rust_library( "ntdef", "ntsecapi", "processenv", + "schannel", + "securitybaseapi", + "sspi", "std", "synchapi", + "sysinfoapi", + "timezoneapi", "winbase", "wincon", + "wincrypt", "windef", "winerror", "winioctl", "winnt", + "winreg", "winsock2", "ws2def", "ws2ipdef", diff --git a/third_party/rust/remote/BUILD.winreg-0.7.0.bazel b/third_party/rust/remote/BUILD.winreg-0.7.0.bazel new file mode 100644 index 0000000000..ec90ffeb21 --- /dev/null +++ b/third_party/rust/remote/BUILD.winreg-0.7.0.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 + +# Unsupported target "basic_usage" with type "example" omitted + +# Unsupported target "enum" with type "example" omitted + +# Unsupported target "installed_apps" with type "example" omitted + +# Unsupported target "serialization" with type "example" omitted + +# Unsupported target "transactions" with type "example" omitted + +rust_library( + name = "winreg", + 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.7.0", + # buildifier: leave-alone + deps = [ + "@raze__winapi__0_3_9//:winapi", + ], +) From a65fa715b0938d6122edf4ffb6eae74843c8dcfd Mon Sep 17 00:00:00 2001 From: William Chargin Date: Tue, 2 Feb 2021 20:18:32 -0800 Subject: [PATCH 2/3] rust: add GCS listing and reading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This patch implements the extent of the Google Cloud Storage protocol that TensorBoard needs: list objects in a bucket with a given prefix, and read partial contents of an object. It turns out to be really easy. For comparison, [TensorFlow also rolls its own GCS client][tf]. Theirs is more complex because it needs to handle writable files and support general-purpose caching patterns. By contrast, we have a simple one-pass read pattern and already assume that files are append-only, so we avoid both the complexity and pathological interactions like #1225. For now, this only serves public buckets and objects. Authentication is also easy (and doesn’t require crypto or anything complicated), but, for ease of review, we defer it to a future patch. [tf]: https://github.com/tensorflow/tensorflow/tree/r2.4/tensorflow/core/platform/cloud Test Plan: Included a simple client that supports `gsutil ls` and `gsutil cat`. Run with `RUST_LOG=debug cargo run --release --bin gsutil` and more args: - `ls tensorboard-bench-logs` to list all 33K objects in the bucket, across 34 pages of list operations (3.3s on my machine); - `ls tensorboard-bench-logs --prefix mnist/` to list just a single logdir, which should be much faster (0.1 seconds on my machine, which includes setting up the keep-alive connection); - `cat tensorboard-bench-logs mnist/README --to=11` to print the first 12 bytes (`Range: bytes=0-11` inclusive) of an object; - `cat tensorboard-bench-logs mnist/README --from=9999` to print nothing, since the object is shorter than 9999 bytes. wchargin-branch: rust-gcs-client wchargin-source: d9e404df57ecf5ee80089b810835a241084ffbc8 --- tensorboard/data/server/BUILD | 15 ++++ tensorboard/data/server/Cargo.toml | 4 + tensorboard/data/server/cli.rs | 2 +- tensorboard/data/server/gcs.rs | 20 +++++ tensorboard/data/server/gcs/client.rs | 116 ++++++++++++++++++++++++++ tensorboard/data/server/gcs/gsutil.rs | 88 +++++++++++++++++++ tensorboard/data/server/lib.rs | 5 ++ 7 files changed, 249 insertions(+), 1 deletion(-) create mode 100644 tensorboard/data/server/gcs.rs create mode 100644 tensorboard/data/server/gcs/client.rs create mode 100644 tensorboard/data/server/gcs/gsutil.rs diff --git a/tensorboard/data/server/BUILD b/tensorboard/data/server/BUILD index 41d3cdf994..408f6aca38 100644 --- a/tensorboard/data/server/BUILD +++ b/tensorboard/data/server/BUILD @@ -32,6 +32,8 @@ rust_library( "data_compat.rs", "downsample.rs", "event_file.rs", + "gcs.rs", + "gcs/client.rs", "logdir.rs", "masked_crc.rs", "reservoir.rs", @@ -56,6 +58,7 @@ rust_library( "//third_party/rust:rand", "//third_party/rust:rand_chacha", "//third_party/rust:rayon", + "//third_party/rust:reqwest", "//third_party/rust:serde", "//third_party/rust:serde_json", "//third_party/rust:thiserror", @@ -87,6 +90,18 @@ rust_binary( ], ) +rust_binary( + name = "gsutil", + srcs = ["gcs/gsutil.rs"], + edition = "2018", + deps = [ + ":rustboard_core", + "//third_party/rust:clap", + "//third_party/rust:env_logger", + "//third_party/rust:log", + ], +) + rust_doc_test( name = "rustboard_core_doc_test", dep = ":rustboard_core", diff --git a/tensorboard/data/server/Cargo.toml b/tensorboard/data/server/Cargo.toml index 21fc6cfe38..25bd5e60e8 100644 --- a/tensorboard/data/server/Cargo.toml +++ b/tensorboard/data/server/Cargo.toml @@ -59,6 +59,10 @@ path = "main.rs" name = "bench" path = "bench.rs" +[[bin]] +name = "gsutil" +path = "gcs/gsutil.rs" + [lib] name = "rustboard_core" path = "lib.rs" diff --git a/tensorboard/data/server/cli.rs b/tensorboard/data/server/cli.rs index 8c23e95852..3dc7b6eeda 100644 --- a/tensorboard/data/server/cli.rs +++ b/tensorboard/data/server/cli.rs @@ -36,7 +36,7 @@ use crate::server::DataProviderHandler; use data::tensor_board_data_provider_server::TensorBoardDataProviderServer; #[derive(Clap, Debug)] -#[clap(name = "rustboard", version = "0.3.0-alpha.0")] +#[clap(name = "rustboard", version = crate::VERSION)] struct Opts { /// Log directory to load /// diff --git a/tensorboard/data/server/gcs.rs b/tensorboard/data/server/gcs.rs new file mode 100644 index 0000000000..bbf6727211 --- /dev/null +++ b/tensorboard/data/server/gcs.rs @@ -0,0 +1,20 @@ +/* Copyright 2021 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. +==============================================================================*/ + +//! Google Cloud Storage interop. + +mod client; + +pub use client::Client; diff --git a/tensorboard/data/server/gcs/client.rs b/tensorboard/data/server/gcs/client.rs new file mode 100644 index 0000000000..cbc6d59bcc --- /dev/null +++ b/tensorboard/data/server/gcs/client.rs @@ -0,0 +1,116 @@ +/* Copyright 2021 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. +==============================================================================*/ + +//! Client for listing and reading GCS files. + +use log::debug; +use reqwest::{blocking::Client as HttpClient, StatusCode, Url}; +use std::ops::RangeInclusive; + +/// Base URL for direct object reads. +const STORAGE_BASE: &str = "https://storage.googleapis.com"; +/// Base URL for JSON API access. +const API_BASE: &str = "https://www.googleapis.com/storage/v1"; + +/// GCS client. +pub struct Client { + http: HttpClient, +} + +impl Client { + /// Creates a new GCS client. + /// + /// May fail if constructing the underlying HTTP client fails. + pub fn new() -> reqwest::Result { + let http = HttpClient::builder() + .user_agent(format!("tensorboard-data-server/{}", crate::VERSION)) + .build()?; + Ok(Self { http }) + } +} + +/// Response from the `/b//o` object listing API. +#[derive(serde::Deserialize)] +#[serde(rename_all = "camelCase")] +struct ListResponse { + /// Continuation token; only present when there is more data. + next_page_token: Option, + /// List of objects, sorted by name. + items: Vec, +} +#[derive(serde::Deserialize)] +#[serde(rename_all = "camelCase")] +struct ListResponseItem { + /// Full GCS object name, possibly including slashes, but not including the bucket. + name: String, +} + +impl Client { + /// Lists all objects in a bucket matching the given prefix. + pub fn list(&self, bucket: &str, prefix: &str) -> reqwest::Result> { + let mut base_url = Url::parse(API_BASE).unwrap(); + base_url + .path_segments_mut() + .unwrap() + .extend(&["b", bucket, "o"]); + base_url + .query_pairs_mut() + .append_pair("prefix", prefix) + .append_pair("prettyPrint", "false") + .append_pair("fields", "nextPageToken,items/name"); + let mut results = Vec::new(); + let mut page_token: Option = None; + for page in 1.. { + let mut url = base_url.clone(); + if let Some(t) = page_token { + url.query_pairs_mut().append_pair("pageToken", t.as_str()); + } + debug!( + "Listing page {} of bucket {:?} (prefix={:?})", + page, bucket, prefix + ); + let res: ListResponse = self.http.get(url).send()?.error_for_status()?.json()?; + results.extend(res.items.into_iter().map(|i| i.name)); + if res.next_page_token.is_none() { + break; + } + page_token = res.next_page_token; + } + Ok(results) + } + + /// Reads partial content of an object. (To read the whole thing, pass `0..=u64::MAX`.) + /// + /// If the `range` is partially past the end of the object, the result may be shorter than + /// expected. If it's entirely past the end, the result is an empty vector. + pub fn read( + &self, + bucket: &str, + object: &str, + range: RangeInclusive, + ) -> reqwest::Result> { + let mut url = Url::parse(STORAGE_BASE).unwrap(); + url.path_segments_mut().unwrap().extend(&[bucket, object]); + // With "Range: bytes=a-b", if `b >= 2**63` then GCS ignores the range entirely. + let max_max = (1 << 63) - 1; + let range = format!("bytes={}-{}", range.start(), range.end().min(&max_max)); + let res = self.http.get(url).header("Range", range).send()?; + if res.status() == StatusCode::RANGE_NOT_SATISFIABLE { + return Ok(Vec::new()); + } + let body = res.error_for_status()?.bytes()?; + Ok(body.to_vec()) + } +} diff --git a/tensorboard/data/server/gcs/gsutil.rs b/tensorboard/data/server/gcs/gsutil.rs new file mode 100644 index 0000000000..41bede5c4a --- /dev/null +++ b/tensorboard/data/server/gcs/gsutil.rs @@ -0,0 +1,88 @@ +/* Copyright 2021 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. +==============================================================================*/ + +//! CLI for testing GCS integration. + +use clap::Clap; +use std::io::Write; + +use rustboard_core::gcs; + +#[clap(name = "gsutil")] +#[derive(Clap, Debug)] +struct Opts { + #[clap(long, default_value = "info")] + log_level: String, + #[clap(subcommand)] + subcmd: Subcommand, +} + +#[derive(Clap, Debug)] +enum Subcommand { + /// List objects in a bucket. + Ls(LsOpts), + /// Print (partial) object contents. + Cat(CatOpts), +} + +#[derive(Clap, Debug)] +struct LsOpts { + bucket: String, + #[clap(long, default_value = "", setting(clap::ArgSettings::AllowEmptyValues))] + prefix: String, +} + +#[derive(Clap, Debug)] +struct CatOpts { + bucket: String, + object: String, + /// Initial byte offset, inclusive [default: start of object]. + #[clap(long)] + from: Option, + /// Final byte offset, inclusive [default: end of object]. + #[clap(long)] + to: Option, +} + +fn main() { + let opts: Opts = Opts::parse(); + init_logging(&opts); + + let client = gcs::Client::new().unwrap(); + match opts.subcmd { + Subcommand::Ls(opts) => { + log::info!("ENTER gcs::Client::list"); + let objects = client.list(&opts.bucket, &opts.prefix); + log::info!("LEAVE gcs::Client::list"); + for name in objects.unwrap() { + println!("{}", name); + } + } + Subcommand::Cat(opts) => { + log::info!("ENTER gcs::Client::read"); + let range = (opts.from.unwrap_or(0))..=(opts.to.unwrap_or(u64::MAX)); + let buf = client.read(&opts.bucket, &opts.object, range); + log::info!("LEAVE gcs::Client::read"); + std::io::stdout().write_all(&buf.unwrap()).unwrap(); + } + } +} + +fn init_logging(opts: &Opts) { + use env_logger::{Builder, Env}; + Builder::from_env(Env::default().default_filter_or(&opts.log_level)) + .format_timestamp_micros() + .init(); +} diff --git a/tensorboard/data/server/lib.rs b/tensorboard/data/server/lib.rs index 38db533e32..11f0c0dfbd 100644 --- a/tensorboard/data/server/lib.rs +++ b/tensorboard/data/server/lib.rs @@ -17,12 +17,17 @@ limitations under the License. #![allow(clippy::needless_update)] // https://github.com/rust-lang/rust-clippy/issues/6323 +/// Package version. Keep in sync with `Cargo.toml`. We don't use `env!("CARGO_PKG_VERSION")` +/// because of . +pub(crate) const VERSION: &str = "0.3.0-alpha.0"; + pub mod blob_key; pub mod cli; pub mod commit; pub mod data_compat; pub mod downsample; pub mod event_file; +pub mod gcs; pub mod logdir; pub mod masked_crc; pub mod reservoir; From 61240d19bda92540353509557cf51e781848f153 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Wed, 3 Feb 2021 11:20:33 -0800 Subject: [PATCH 3/3] [rust-gcs-client: handle no-items case] wchargin-branch: rust-gcs-client wchargin-source: 48943e73d17f4dadaeb7aa83b6eeaa3ec8f78707 --- tensorboard/data/server/gcs/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorboard/data/server/gcs/client.rs b/tensorboard/data/server/gcs/client.rs index cbc6d59bcc..7c567df7fb 100644 --- a/tensorboard/data/server/gcs/client.rs +++ b/tensorboard/data/server/gcs/client.rs @@ -48,6 +48,7 @@ struct ListResponse { /// Continuation token; only present when there is more data. next_page_token: Option, /// List of objects, sorted by name. + #[serde(default)] // `items` omitted entirely when there are no results items: Vec, } #[derive(serde::Deserialize)]