From f46e1d1b2d363ec86a5ee98cb14218f1efdfe6bb Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 11 Jul 2022 08:44:19 -0700 Subject: [PATCH 1/6] Updated `tools/rust_analyzer` to use `crate_universe`. --- WORKSPACE.bazel | 4 +- docs/rust_analyzer.vm | 4 +- .../rust_analyzer_test_runner.sh | 4 +- tools/rust_analyzer/3rdparty/BUILD.bazel | 55 +++++++++++++++++++ tools/rust_analyzer/BUILD.bazel | 21 ++++--- tools/rust_analyzer/deps.bzl | 10 ++-- 6 files changed, 77 insertions(+), 21 deletions(-) create mode 100644 tools/rust_analyzer/3rdparty/BUILD.bazel diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index fef8fda903..7afa1dc219 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -24,9 +24,9 @@ rust_bindgen_dependencies() rust_bindgen_register_toolchains() -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_deps") +load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") -rust_analyzer_deps() +rust_analyzer_dependencies() load("@rules_rust//util/import:deps.bzl", "import_deps") diff --git a/docs/rust_analyzer.vm b/docs/rust_analyzer.vm index e3669603c1..5ddc04155d 100644 --- a/docs/rust_analyzer.vm +++ b/docs/rust_analyzer.vm @@ -11,9 +11,9 @@ such a file. First, add the following to the `WORKSPACE` file: ```python -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_deps") +load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") -rust_analyzer_deps() +rust_analyzer_dependencies() ``` Next, add the following lines to the `.bazelrc` file of your workspace: diff --git a/test/rust_analyzer/rust_analyzer_test_runner.sh b/test/rust_analyzer/rust_analyzer_test_runner.sh index cca9125491..781fd34c50 100755 --- a/test/rust_analyzer/rust_analyzer_test_runner.sh +++ b/test/rust_analyzer/rust_analyzer_test_runner.sh @@ -29,8 +29,8 @@ local_repository( ) load("@rules_rust//rust:repositories.bzl", "rust_repositories") rust_repositories(include_rustc_srcs = True) -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_deps") -rust_analyzer_deps() +load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") +rust_analyzer_dependencies() EOF cat << EOF > "${new_workspace}/.bazelrc" diff --git a/tools/rust_analyzer/3rdparty/BUILD.bazel b/tools/rust_analyzer/3rdparty/BUILD.bazel new file mode 100644 index 0000000000..59986159cd --- /dev/null +++ b/tools/rust_analyzer/3rdparty/BUILD.bazel @@ -0,0 +1,55 @@ +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") +load("//crate_universe:defs.bzl", "crate", "crates_vendor") + +crates_vendor( + name = "crates_vendor", + cargo_lockfile = "Cargo.Bazel.lock", + mode = "remote", + packages = { + "anyhow": crate.spec( + version = "1.0.58", + ), + "env_logger": crate.spec( + version = "0.9.0", + ), + "itertools": crate.spec( + version = "0.10.3", + ), + "log": crate.spec( + version = "0.4.17", + ), + "serde": crate.spec( + features = ["derive"], + version = "1.0.139", + ), + "serde_json": crate.spec( + version = "1.0.82", + ), + "structopt": crate.spec( + version = "0.3.26", + ), + }, + repository_name = "rules_rust_rust_analyzer", + tags = ["manual"], +) + +bzl_library( + name = "bzl_lib", + srcs = glob(["**/*.bzl"]) + [ + "//tools/rust_analyzer/3rdparty/crates:defs.bzl", + "//tools/rust_analyzer/3rdparty/crates:crates.bzl", + ], + visibility = ["//tools/rust_analyzer:__pkg__"], +) + +filegroup( + name = "distro", + srcs = glob([ + "*.bzl", + "*.bazel", + ]) + [ + "Cargo.Bazel.lock", + "//tools/rust_analyzer/3rdparty/crates:srcs", + ], + visibility = ["//tools/rust_analyzer:__pkg__"], +) diff --git a/tools/rust_analyzer/BUILD.bazel b/tools/rust_analyzer/BUILD.bazel index 6c87604340..102d358eca 100644 --- a/tools/rust_analyzer/BUILD.bazel +++ b/tools/rust_analyzer/BUILD.bazel @@ -11,10 +11,10 @@ rust_binary( visibility = ["//visibility:public"], deps = [ ":gen_rust_project_lib", - "//tools/rust_analyzer/raze:anyhow", - "//tools/rust_analyzer/raze:env_logger", - "//tools/rust_analyzer/raze:log", - "//tools/rust_analyzer/raze:structopt", + "//tools/rust_analyzer/3rdparty/crates:anyhow", + "//tools/rust_analyzer/3rdparty/crates:env_logger", + "//tools/rust_analyzer/3rdparty/crates:log", + "//tools/rust_analyzer/3rdparty/crates:structopt", "//util/label", ], ) @@ -31,10 +31,10 @@ rust_library( edition = "2018", deps = [ "//tools/runfiles", - "//tools/rust_analyzer/raze:anyhow", - "//tools/rust_analyzer/raze:log", - "//tools/rust_analyzer/raze:serde", - "//tools/rust_analyzer/raze:serde_json", + "//tools/rust_analyzer/3rdparty/crates:anyhow", + "//tools/rust_analyzer/3rdparty/crates:log", + "//tools/rust_analyzer/3rdparty/crates:serde", + "//tools/rust_analyzer/3rdparty/crates:serde_json", ], ) @@ -42,7 +42,7 @@ rust_test( name = "gen_rust_project_lib_test", crate = ":gen_rust_project_lib", deps = [ - "//tools/rust_analyzer/raze:itertools", + "//tools/rust_analyzer/3rdparty/crates:itertools", ], ) @@ -61,8 +61,7 @@ filegroup( "*.bzl", "**/*.rs", ]) + [ - "//tools/rust_analyzer/raze:srcs", - "//tools/rust_analyzer/raze/remote:srcs", + "//tools/rust_analyzer/3rdparty:distro", "BUILD.bazel", ], visibility = ["//:__subpackages__"], diff --git a/tools/rust_analyzer/deps.bzl b/tools/rust_analyzer/deps.bzl index 0d2b4a5dc3..c957340679 100644 --- a/tools/rust_analyzer/deps.bzl +++ b/tools/rust_analyzer/deps.bzl @@ -2,10 +2,12 @@ The dependencies for running the gen_rust_project binary. """ -load("//tools/rust_analyzer/raze:crates.bzl", "rules_rust_tools_rust_analyzer_fetch_remote_crates") +load("//tools/rust_analyzer/3rdparty/crates:defs.bzl", "crate_repositories") -def rust_analyzer_deps(): - rules_rust_tools_rust_analyzer_fetch_remote_crates() +def rust_analyzer_dependencies(): + """Define dependencies of the `rust_analyzer` Bazel tools""" + crate_repositories() # For legacy support -gen_rust_project_dependencies = rust_analyzer_deps +gen_rust_project_dependencies = rust_analyzer_dependencies +rust_analyzer_deps = rust_analyzer_dependencies From 47f43a8f9ddbb9027aec81c0f3b32c2d32964091 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 11 Jul 2022 08:45:57 -0700 Subject: [PATCH 2/6] Regenerate documentation --- docs/rust_analyzer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rust_analyzer.md b/docs/rust_analyzer.md index 274284c872..82c4fc0bd6 100644 --- a/docs/rust_analyzer.md +++ b/docs/rust_analyzer.md @@ -16,9 +16,9 @@ such a file. First, add the following to the `WORKSPACE` file: ```python -load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_deps") +load("@rules_rust//tools/rust_analyzer:deps.bzl", "rust_analyzer_dependencies") -rust_analyzer_deps() +rust_analyzer_dependencies() ``` Next, add the following lines to the `.bazelrc` file of your workspace: From f9a4d7ca0939508b3675b2c30417167eba7d1d01 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 11 Jul 2022 08:44:38 -0700 Subject: [PATCH 3/6] Updated generated files. --- tools/rust_analyzer/3rdparty/Cargo.Bazel.lock | 379 +++++++++ .../crates/BUILD.aho-corasick-0.7.18.bazel | 93 ++ .../crates/BUILD.ansi_term-0.12.1.bazel | 100 +++ .../3rdparty/crates/BUILD.anyhow-1.0.58.bazel | 178 ++++ .../3rdparty/crates/BUILD.atty-0.2.14.bazel | 132 +++ .../rust_analyzer/3rdparty/crates/BUILD.bazel | 72 ++ .../crates/BUILD.bitflags-1.3.2.bazel | 91 ++ .../3rdparty/crates/BUILD.cfg-if-1.0.0.bazel | 90 ++ .../3rdparty/crates/BUILD.clap-2.34.0.bazel | 139 +++ .../3rdparty/crates/BUILD.either-1.7.0.bazel | 90 ++ .../crates/BUILD.env_logger-0.9.0.bazel | 100 +++ .../3rdparty/crates/BUILD.heck-0.3.3.bazel | 91 ++ .../crates/BUILD.hermit-abi-0.1.19.bazel | 92 ++ .../crates/BUILD.humantime-2.1.0.bazel | 90 ++ .../crates/BUILD.itertools-0.10.3.bazel | 94 ++ .../3rdparty/crates/BUILD.itoa-1.0.2.bazel | 90 ++ .../crates/BUILD.lazy_static-1.4.0.bazel | 90 ++ .../3rdparty/crates/BUILD.libc-0.2.126.bazel | 174 ++++ .../3rdparty/crates/BUILD.log-0.4.17.bazel | 177 ++++ .../3rdparty/crates/BUILD.memchr-2.5.0.bazel | 178 ++++ .../crates/BUILD.proc-macro-error-1.0.4.bazel | 185 ++++ .../BUILD.proc-macro-error-attr-1.0.4.bazel | 177 ++++ .../crates/BUILD.proc-macro2-1.0.40.bazel | 179 ++++ .../3rdparty/crates/BUILD.quote-1.0.20.bazel | 179 ++++ .../3rdparty/crates/BUILD.regex-1.6.0.bazel | 101 +++ .../crates/BUILD.regex-syntax-0.6.27.bazel | 90 ++ .../3rdparty/crates/BUILD.ryu-1.0.10.bazel | 90 ++ .../3rdparty/crates/BUILD.serde-1.0.139.bazel | 183 ++++ .../crates/BUILD.serde_derive-1.0.139.bazel | 179 ++++ .../crates/BUILD.serde_json-1.0.82.bazel | 181 ++++ .../3rdparty/crates/BUILD.strsim-0.8.0.bazel | 90 ++ .../crates/BUILD.structopt-0.3.26.bazel | 94 ++ .../BUILD.structopt-derive-0.4.18.bazel | 95 +++ .../3rdparty/crates/BUILD.syn-1.0.98.bazel | 193 +++++ .../crates/BUILD.termcolor-1.1.3.bazel | 100 +++ .../crates/BUILD.textwrap-0.11.0.bazel | 91 ++ .../crates/BUILD.unicode-ident-1.0.1.bazel | 90 ++ .../BUILD.unicode-segmentation-1.9.0.bazel | 90 ++ .../crates/BUILD.unicode-width-0.1.9.bazel | 91 ++ .../3rdparty/crates/BUILD.vec_map-0.8.2.bazel | 90 ++ .../crates/BUILD.version_check-0.9.4.bazel | 90 ++ .../3rdparty/crates/BUILD.winapi-0.3.9.bazel | 208 +++++ ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 174 ++++ .../crates/BUILD.winapi-util-0.1.5.bazel | 100 +++ ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 174 ++++ .../rust_analyzer/3rdparty/crates/crates.bzl | 25 + tools/rust_analyzer/3rdparty/crates/defs.bzl | 804 ++++++++++++++++++ 47 files changed, 6683 insertions(+) create mode 100644 tools/rust_analyzer/3rdparty/Cargo.Bazel.lock create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.aho-corasick-0.7.18.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.ansi_term-0.12.1.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.anyhow-1.0.58.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.atty-0.2.14.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.bitflags-1.3.2.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.clap-2.34.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.either-1.7.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.env_logger-0.9.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.heck-0.3.3.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.humantime-2.1.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.itertools-0.10.3.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.itoa-1.0.2.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.libc-0.2.126.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.log-0.4.17.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.memchr-2.5.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-1.0.4.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-attr-1.0.4.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.quote-1.0.20.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.regex-1.6.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.ryu-1.0.10.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.139.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.serde_json-1.0.82.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.strsim-0.8.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.structopt-0.3.26.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.structopt-derive-0.4.18.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.syn-1.0.98.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.termcolor-1.1.3.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.textwrap-0.11.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.unicode-segmentation-1.9.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.unicode-width-0.1.9.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.vec_map-0.8.2.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.version_check-0.9.4.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.winapi-0.3.9.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.winapi-util-0.1.5.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel create mode 100644 tools/rust_analyzer/3rdparty/crates/crates.bzl create mode 100644 tools/rust_analyzer/3rdparty/crates/defs.bzl diff --git a/tools/rust_analyzer/3rdparty/Cargo.Bazel.lock b/tools/rust_analyzer/3rdparty/Cargo.Bazel.lock new file mode 100644 index 0000000000..8caf8c5bde --- /dev/null +++ b/tools/rust_analyzer/3rdparty/Cargo.Bazel.lock @@ -0,0 +1,379 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "aho-corasick" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +dependencies = [ + "memchr", +] + +[[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi", +] + +[[package]] +name = "anyhow" +version = "1.0.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "2.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +dependencies = [ + "ansi_term", + "atty", + "bitflags", + "strsim", + "textwrap", + "unicode-width", + "vec_map", +] + +[[package]] +name = "direct-cargo-bazel-deps" +version = "0.0.1" +dependencies = [ + "anyhow", + "env_logger", + "itertools", + "log", + "serde", + "serde_json", + "structopt", +] + +[[package]] +name = "either" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" + +[[package]] +name = "env_logger" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "itertools" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" + +[[package]] +name = "log" +version = "0.4.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "regex" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.6.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" + +[[package]] +name = "ryu" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" + +[[package]] +name = "serde" +version = "1.0.139" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.139" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.82" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + +[[package]] +name = "structopt" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" +dependencies = [ + "clap", + "lazy_static", + "structopt-derive", +] + +[[package]] +name = "structopt-derive" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" +dependencies = [ + "heck", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "syn" +version = "1.0.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "termcolor" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "unicode-ident" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" + +[[package]] +name = "unicode-segmentation" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" + +[[package]] +name = "unicode-width" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" + +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.aho-corasick-0.7.18.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.aho-corasick-0.7.18.bazel new file mode 100644 index 0000000000..27abe2206c --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.aho-corasick-0.7.18.bazel @@ -0,0 +1,93 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense/MIT +# ]) + +rust_library( + name = "aho_corasick", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.18", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__memchr-2.5.0//:memchr", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.ansi_term-0.12.1.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.ansi_term-0.12.1.bazel new file mode 100644 index 0000000000..e87706cc0b --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.ansi_term-0.12.1.bazel @@ -0,0 +1,100 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "ansi_term", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.12.1", + deps = [ + ] + select_with_or({ + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__winapi-0.3.9//:winapi", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.anyhow-1.0.58.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.anyhow-1.0.58.bazel new file mode 100644 index 0000000000..7ddb72acb9 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.anyhow-1.0.58.bazel @@ -0,0 +1,178 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "anyhow", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.58", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__anyhow-1.0.58//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "anyhow_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.58", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "anyhow_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.atty-0.2.14.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.atty-0.2.14.bazel new file mode 100644 index 0000000000..5735d73f2f --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.atty-0.2.14.bazel @@ -0,0 +1,132 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "atty", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.14", + deps = [ + ] + select_with_or({ + # cfg(target_os = "hermit") + # + # No supported platform triples for cfg: 'cfg(target_os = "hermit")' + # Skipped dependencies: [{"id":"hermit-abi 0.1.19","target":"hermit_abi"}] + # + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:armv7-linux-androideabi", + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__libc-0.2.126//:libc", + + # Common Deps + ], + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__winapi-0.3.9//:winapi", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.bazel new file mode 100644 index 0000000000..089689f220 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.bazel @@ -0,0 +1,72 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +package(default_visibility = ["//visibility:public"]) + +exports_files( + [ + "cargo-bazel.json", + "defs.bzl", + "crates.bzl", + ] + glob([ + "*.bazel", + ]), +) + +filegroup( + name = "srcs", + srcs = glob([ + "*.bazel", + "*.bzl", + ]), +) + +# Workspace Member Dependencies +alias( + name = "anyhow", + actual = "@rules_rust_rust_analyzer__anyhow-1.0.58//:anyhow", + tags = ["manual"], +) + +alias( + name = "env_logger", + actual = "@rules_rust_rust_analyzer__env_logger-0.9.0//:env_logger", + tags = ["manual"], +) + +alias( + name = "itertools", + actual = "@rules_rust_rust_analyzer__itertools-0.10.3//:itertools", + tags = ["manual"], +) + +alias( + name = "log", + actual = "@rules_rust_rust_analyzer__log-0.4.17//:log", + tags = ["manual"], +) + +alias( + name = "serde", + actual = "@rules_rust_rust_analyzer__serde-1.0.139//:serde", + tags = ["manual"], +) + +alias( + name = "serde_json", + actual = "@rules_rust_rust_analyzer__serde_json-1.0.82//:serde_json", + tags = ["manual"], +) + +alias( + name = "structopt", + actual = "@rules_rust_rust_analyzer__structopt-0.3.26//:structopt", + tags = ["manual"], +) + +# Binaries diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.bitflags-1.3.2.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 0000000000..7c25f320ef --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "bitflags", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.3.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 0000000000..20256bfcc0 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "cfg_if", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.clap-2.34.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.clap-2.34.0.bazel new file mode 100644 index 0000000000..2a1d62c914 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.clap-2.34.0.bazel @@ -0,0 +1,139 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "clap", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "ansi_term", + "atty", + "color", + "default", + "strsim", + "suggestions", + "vec_map", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.34.0", + deps = [ + ] + select_with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-ios-sim", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:armv7-linux-androideabi", + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__ansi_term-0.12.1//:ansi_term", + + # Common Deps + "@rules_rust_rust_analyzer__atty-0.2.14//:atty", + "@rules_rust_rust_analyzer__bitflags-1.3.2//:bitflags", + "@rules_rust_rust_analyzer__strsim-0.8.0//:strsim", + "@rules_rust_rust_analyzer__textwrap-0.11.0//:textwrap", + "@rules_rust_rust_analyzer__unicode-width-0.1.9//:unicode_width", + "@rules_rust_rust_analyzer__vec_map-0.8.2//:vec_map", + ], + "//conditions:default": [ + "@rules_rust_rust_analyzer__atty-0.2.14//:atty", + "@rules_rust_rust_analyzer__bitflags-1.3.2//:bitflags", + "@rules_rust_rust_analyzer__strsim-0.8.0//:strsim", + "@rules_rust_rust_analyzer__textwrap-0.11.0//:textwrap", + "@rules_rust_rust_analyzer__unicode-width-0.1.9//:unicode_width", + "@rules_rust_rust_analyzer__vec_map-0.8.2//:vec_map", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.either-1.7.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.either-1.7.0.bazel new file mode 100644 index 0000000000..ea68acaf5f --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.either-1.7.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "either", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.7.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.env_logger-0.9.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.env_logger-0.9.0.bazel new file mode 100644 index 0000000000..5067e58507 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.env_logger-0.9.0.bazel @@ -0,0 +1,100 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "env_logger", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "atty", + "default", + "humantime", + "regex", + "termcolor", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__atty-0.2.14//:atty", + "@rules_rust_rust_analyzer__humantime-2.1.0//:humantime", + "@rules_rust_rust_analyzer__log-0.4.17//:log", + "@rules_rust_rust_analyzer__regex-1.6.0//:regex", + "@rules_rust_rust_analyzer__termcolor-1.1.3//:termcolor", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.heck-0.3.3.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.heck-0.3.3.bazel new file mode 100644 index 0000000000..6d3623e661 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.heck-0.3.3.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "heck", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__unicode-segmentation-1.9.0//:unicode_segmentation", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel new file mode 100644 index 0000000000..1bbda726fe --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.hermit-abi-0.1.19.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "hermit_abi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.19", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__libc-0.2.126//:libc", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.humantime-2.1.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.humantime-2.1.0.bazel new file mode 100644 index 0000000000..af2f5ef4b0 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.humantime-2.1.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "humantime", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.1.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.itertools-0.10.3.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.itertools-0.10.3.bazel new file mode 100644 index 0000000000..e67106285f --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.itertools-0.10.3.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "itertools", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "use_alloc", + "use_std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.10.3", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__either-1.7.0//:either", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.itoa-1.0.2.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.itoa-1.0.2.bazel new file mode 100644 index 0000000000..18cf46730d --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.itoa-1.0.2.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "itoa", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 0000000000..edfa281eaa --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "lazy_static", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.libc-0.2.126.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.libc-0.2.126.bazel new file mode 100644 index 0000000000..3b302544ba --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.libc-0.2.126.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "libc", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.126", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__libc-0.2.126//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "libc_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.2.126", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "libc_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.log-0.4.17.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.log-0.4.17.bazel new file mode 100644 index 0000000000..ef5fcb9a8d --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.log-0.4.17.bazel @@ -0,0 +1,177 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "log", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.17", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__cfg-if-1.0.0//:cfg_if", + "@rules_rust_rust_analyzer__log-0.4.17//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "log_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.17", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "log_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.memchr-2.5.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.memchr-2.5.0.bazel new file mode 100644 index 0000000000..8e7106345a --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.memchr-2.5.0.bazel @@ -0,0 +1,178 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense/MIT +# ]) + +rust_library( + name = "memchr", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.5.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__memchr-2.5.0//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "memchr_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "2.5.0", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "memchr_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-1.0.4.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-1.0.4.bazel new file mode 100644 index 0000000000..030a606f46 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-1.0.4.bazel @@ -0,0 +1,185 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "proc_macro_error", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "syn", + "syn-error", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro-error-attr-1.0.4//:proc_macro_error_attr", + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro-error-1.0.4//:build_script_build", + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:quote", + "@rules_rust_rust_analyzer__syn-1.0.98//:syn", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "proc-macro-error_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "syn", + "syn-error", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.4", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__version_check-0.9.4//:version_check", + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "proc-macro-error_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-attr-1.0.4.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-attr-1.0.4.bazel new file mode 100644 index 0000000000..45a9cb5dfe --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro-error-attr-1.0.4.bazel @@ -0,0 +1,177 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_proc_macro", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "proc_macro_error_attr", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro-error-attr-1.0.4//:build_script_build", + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:quote", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "proc-macro-error-attr_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.4", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__version_check-0.9.4//:version_check", + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "proc-macro-error-attr_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel new file mode 100644 index 0000000000..d9889ecb71 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.proc-macro2-1.0.40.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "proc_macro2", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.40", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:build_script_build", + "@rules_rust_rust_analyzer__unicode-ident-1.0.1//:unicode_ident", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "proc-macro2_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "proc-macro", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.40", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "proc-macro2_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.quote-1.0.20.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.quote-1.0.20.bazel new file mode 100644 index 0000000000..9b5f5485bb --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.quote-1.0.20.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "quote", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.20", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "quote_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "proc-macro", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.20", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "quote_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.regex-1.6.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.regex-1.6.0.bazel new file mode 100644 index 0000000000..84fba50510 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.regex-1.6.0.bazel @@ -0,0 +1,101 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "regex", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "aho-corasick", + "memchr", + "perf", + "perf-cache", + "perf-dfa", + "perf-inline", + "perf-literal", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.6.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__aho-corasick-0.7.18//:aho_corasick", + "@rules_rust_rust_analyzer__memchr-2.5.0//:memchr", + "@rules_rust_rust_analyzer__regex-syntax-0.6.27//:regex_syntax", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel new file mode 100644 index 0000000000..edd66d7c20 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.regex-syntax-0.6.27.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "regex_syntax", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.27", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.ryu-1.0.10.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.ryu-1.0.10.bazel new file mode 100644 index 0000000000..ea6e126a9c --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.ryu-1.0.10.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR BSL-1.0 +# ]) + +rust_library( + name = "ryu", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.10", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.139.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.139.bazel new file mode 100644 index 0000000000..d31617e1cd --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.serde-1.0.139.bazel @@ -0,0 +1,183 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "serde", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__serde_derive-1.0.139//:serde_derive", + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.139", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__serde-1.0.139//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "serde_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.139", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "serde_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel new file mode 100644 index 0000000000..3be28caabf --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.serde_derive-1.0.139.bazel @@ -0,0 +1,179 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_proc_macro", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "serde_derive", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.139", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:quote", + "@rules_rust_rust_analyzer__serde_derive-1.0.139//:build_script_build", + "@rules_rust_rust_analyzer__syn-1.0.98//:syn", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "serde_derive_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.139", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "serde_derive_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.serde_json-1.0.82.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.serde_json-1.0.82.bazel new file mode 100644 index 0000000000..9039e2b22f --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.serde_json-1.0.82.bazel @@ -0,0 +1,181 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "serde_json", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.82", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__itoa-1.0.2//:itoa", + "@rules_rust_rust_analyzer__ryu-1.0.10//:ryu", + "@rules_rust_rust_analyzer__serde-1.0.139//:serde", + "@rules_rust_rust_analyzer__serde_json-1.0.82//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "serde_json_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.82", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "serde_json_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.strsim-0.8.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.strsim-0.8.0.bazel new file mode 100644 index 0000000000..0b61d55e91 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.strsim-0.8.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "strsim", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-0.3.26.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-0.3.26.bazel new file mode 100644 index 0000000000..6be5fe2ea9 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-0.3.26.bazel @@ -0,0 +1,94 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) + +rust_library( + name = "structopt", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__structopt-derive-0.4.18//:structopt_derive", + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.26", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__clap-2.34.0//:clap", + "@rules_rust_rust_analyzer__lazy_static-1.4.0//:lazy_static", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-derive-0.4.18.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-derive-0.4.18.bazel new file mode 100644 index 0000000000..58b574add8 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.structopt-derive-0.4.18.bazel @@ -0,0 +1,95 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_proc_macro", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0/MIT +# ]) + +rust_proc_macro( + name = "structopt_derive", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.18", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__heck-0.3.3//:heck", + "@rules_rust_rust_analyzer__proc-macro-error-1.0.4//:proc_macro_error", + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:quote", + "@rules_rust_rust_analyzer__syn-1.0.98//:syn", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.syn-1.0.98.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.syn-1.0.98.bazel new file mode 100644 index 0000000000..136ffd0acf --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.syn-1.0.98.bazel @@ -0,0 +1,193 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "syn", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "clone-impls", + "default", + "derive", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.98", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__proc-macro2-1.0.40//:proc_macro2", + "@rules_rust_rust_analyzer__quote-1.0.20//:quote", + "@rules_rust_rust_analyzer__syn-1.0.98//:build_script_build", + "@rules_rust_rust_analyzer__unicode-ident-1.0.1//:unicode_ident", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "syn_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "clone-impls", + "default", + "derive", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "1.0.98", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "syn_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.termcolor-1.1.3.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.termcolor-1.1.3.bazel new file mode 100644 index 0000000000..09ff98bd29 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.termcolor-1.1.3.bazel @@ -0,0 +1,100 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "termcolor", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.3", + deps = [ + ] + select_with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__winapi-util-0.1.5//:winapi_util", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.textwrap-0.11.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.textwrap-0.11.0.bazel new file mode 100644 index 0000000000..277990179f --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.textwrap-0.11.0.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "textwrap", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.11.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__unicode-width-0.1.9//:unicode_width", + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel new file mode 100644 index 0000000000..a2ca28c814 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-ident-1.0.1.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "unicode_ident", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.1", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-segmentation-1.9.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-segmentation-1.9.0.bazel new file mode 100644 index 0000000000..e6ec00af12 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-segmentation-1.9.0.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "unicode_segmentation", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.9.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-width-0.1.9.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-width-0.1.9.bazel new file mode 100644 index 0000000000..fa3baced79 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.unicode-width-0.1.9.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "unicode_width", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.9", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.vec_map-0.8.2.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.vec_map-0.8.2.bazel new file mode 100644 index 0000000000..21c1f77bf3 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.vec_map-0.8.2.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "vec_map", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.2", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.version_check-0.9.4.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.version_check-0.9.4.bazel new file mode 100644 index 0000000000..d277e71fd6 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.version_check-0.9.4.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "version_check", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.4", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-0.3.9.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-0.3.9.bazel new file mode 100644 index 0000000000..fb790017e3 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,208 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "winapi", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "handleapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.9", + deps = [ + ] + select_with_or({ + # i686-pc-windows-gnu + # + # No supported platform triples for cfg: 'i686-pc-windows-gnu' + # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}] + # + # x86_64-pc-windows-gnu + # + # No supported platform triples for cfg: 'x86_64-pc-windows-gnu' + # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}] + # + "//conditions:default": [ + "@rules_rust_rust_analyzer__winapi-0.3.9//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "winapi_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "handleapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "winapi_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..a6680abfb2 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "winapi_i686_pc_windows_gnu", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__winapi-i686-pc-windows-gnu-0.4.0//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "winapi-i686-pc-windows-gnu_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "winapi-i686-pc-windows-gnu_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-util-0.1.5.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-util-0.1.5.bazel new file mode 100644 index 0000000000..4c0fd1a48b --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-util-0.1.5.bazel @@ -0,0 +1,100 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense/MIT +# ]) + +rust_library( + name = "winapi_util", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2018", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.5", + deps = [ + ] + select_with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + # Target Deps + "@rules_rust_rust_analyzer__winapi-0.3.9//:winapi", + + # Common Deps + ], + "//conditions:default": [ + ], + }), +) diff --git a/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 0000000000..a62ba1ecc4 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,174 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### + +load( + "@bazel_skylib//lib:selects.bzl", + "selects", +) +load( + "@rules_rust//cargo:defs.bzl", + "cargo_build_script", +) + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or") +load( + "@rules_rust//rust:defs.bzl", + "rust_library", +) + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "winapi_x86_64_pc_windows_gnu", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ) + select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.0", + deps = [ + ] + select_with_or({ + "//conditions:default": [ + "@rules_rust_rust_analyzer__winapi-x86_64-pc-windows-gnu-0.4.0//:build_script_build", + ], + }), +) + +cargo_build_script( + # See comment associated with alias. Do not change this name + name = "winapi-x86_64-pc-windows-gnu_build_script", + srcs = glob( + include = [ + "**/*.rs", + ], + exclude = [ + ], + ), + aliases = selects.with_or({ + "//conditions:default": { + }, + }), + build_script_env = { + }, + compile_data = select_with_or({ + "//conditions:default": [ + ], + }), + crate_features = [ + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob(["**"]) + select_with_or({ + "//conditions:default": [ + ], + }), + edition = "2015", + proc_macro_deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), + rustc_env = { + }, + rustc_env_files = select_with_or({ + "//conditions:default": [ + ], + }), + rustc_flags = [ + # In most cases, warnings in 3rd party crates are not interesting as + # they're out of the control of consumers. The flag here silences + # warnings. For more details see: + # https://doc.rust-lang.org/rustc/lints/levels.html + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "manual", + "noclippy", + "norustfmt", + ], + tools = select_with_or({ + "//conditions:default": [ + ], + }), + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ] + select_with_or({ + "//conditions:default": [ + ], + }), +) + +alias( + # Because `cargo_build_script` does some invisible target name mutating to + # determine the package and crate name for a build script, the Bazel + # target namename of any build script cannot be the Cargo canonical name + # of `build_script_build` without losing out on having certain Cargo + # environment variables set. + name = "build_script_build", + actual = "winapi-x86_64-pc-windows-gnu_build_script", + tags = [ + "manual", + ], +) diff --git a/tools/rust_analyzer/3rdparty/crates/crates.bzl b/tools/rust_analyzer/3rdparty/crates/crates.bzl new file mode 100644 index 0000000000..db2780799b --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/crates.bzl @@ -0,0 +1,25 @@ +############################################################################### +# @generated +# This file is auto-generated by the cargo-bazel tool. +# +# DO NOT MODIFY: Local changes may be replaced in future executions. +############################################################################### +"""Rules for defining repositories for remote `crates_vendor` repositories""" + +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") + +# buildifier: disable=bzl-visibility +load("@rules_rust//tools/rust_analyzer/3rdparty/crates:defs.bzl", _crate_repositories = "crate_repositories") + +def crate_repositories(): + maybe( + crates_vendor_remote_repository, + name = "rules_rust_rust_analyzer", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.bazel"), + defs_module = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:defs.bzl"), + ) + + _crate_repositories() diff --git a/tools/rust_analyzer/3rdparty/crates/defs.bzl b/tools/rust_analyzer/3rdparty/crates/defs.bzl new file mode 100644 index 0000000000..da633c28e6 --- /dev/null +++ b/tools/rust_analyzer/3rdparty/crates/defs.bzl @@ -0,0 +1,804 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //tools/rust_analyzer/3rdparty:crates_vendor +############################################################################### +""" +# `crates_repository` API + +- [aliases](#aliases) +- [crate_deps](#crate_deps) +- [all_crate_deps](#all_crate_deps) +- [crate_repositories](#crate_repositories) + +""" + +load("@bazel_skylib//lib:selects.bzl", "selects") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +############################################################################### +# MACROS API +############################################################################### + +# An identifier that represent common dependencies (unconditional). +_COMMON_CONDITION = "" + +def _flatten_dependency_maps(all_dependency_maps): + """Flatten a list of dependency maps into one dictionary. + + Dependency maps have the following structure: + + ```python + DEPENDENCIES_MAP = { + # The first key in the map is a Bazel package + # name of the workspace this file is defined in. + "workspace_member_package": { + + # Not all dependnecies are supported for all platforms. + # the condition key is the condition required to be true + # on the host platform. + "condition": { + + # An alias to a crate target. # The label of the crate target the + # Aliases are only crate names. # package name refers to. + "package_name": "@full//:label", + } + } + } + ``` + + Args: + all_dependency_maps (list): A list of dicts as described above + + Returns: + dict: A dictionary as described above + """ + dependencies = {} + + for workspace_deps_map in all_dependency_maps: + for pkg_name, conditional_deps_map in workspace_deps_map.items(): + if pkg_name not in dependencies: + non_frozen_map = dict() + for key, values in conditional_deps_map.items(): + non_frozen_map.update({key: dict(values.items())}) + dependencies.setdefault(pkg_name, non_frozen_map) + continue + + for condition, deps_map in conditional_deps_map.items(): + # If the condition has not been recorded, do so and continue + if condition not in dependencies[pkg_name]: + dependencies[pkg_name].setdefault(condition, dict(deps_map.items())) + continue + + # Alert on any miss-matched dependencies + inconsistent_entries = [] + for crate_name, crate_label in deps_map.items(): + existing = dependencies[pkg_name][condition].get(crate_name) + if existing and existing != crate_label: + inconsistent_entries.append((crate_name, existing, crate_label)) + dependencies[pkg_name][condition].update({crate_name: crate_label}) + + return dependencies + +def crate_deps(deps, package_name = None): + """Finds the fully qualified label of the requested crates for the package where this macro is called. + + Args: + deps (list): The desired list of crate targets. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()`. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if not deps: + return [] + + if package_name == None: + package_name = native.package_name() + + # Join both sets of dependencies + dependencies = _flatten_dependency_maps([ + _NORMAL_DEPENDENCIES, + _NORMAL_DEV_DEPENDENCIES, + _PROC_MACRO_DEPENDENCIES, + _PROC_MACRO_DEV_DEPENDENCIES, + _BUILD_DEPENDENCIES, + _BUILD_PROC_MACRO_DEPENDENCIES, + ]).pop(package_name, {}) + + # Combine all conditional packages so we can easily index over a flat list + # TODO: Perhaps this should actually return select statements and maintain + # the conditionals of the dependencies + flat_deps = {} + for deps_set in dependencies.values(): + for crate_name, crate_label in deps_set.items(): + flat_deps.update({crate_name: crate_label}) + + missing_crates = [] + crate_targets = [] + for crate_target in deps: + if crate_target not in flat_deps: + missing_crates.append(crate_target) + else: + crate_targets.append(flat_deps[crate_target]) + + if missing_crates: + fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format( + missing_crates, + package_name, + dependencies, + )) + + return crate_targets + +def all_crate_deps( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Finds the fully qualified label of all requested direct crate dependencies \ + for the package where this macro is called. + + If no parameters are set, all normal dependencies are returned. Setting any one flag will + otherwise impact the contents of the returned list. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normla dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_dependency_maps = [] + if normal: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + if normal_dev: + all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES) + if proc_macro: + all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES) + if proc_macro_dev: + all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES) + if build: + all_dependency_maps.append(_BUILD_DEPENDENCIES) + if build_proc_macro: + all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES) + + # Default to always using normal dependencies + if not all_dependency_maps: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + + dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None) + + if not dependencies: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + return [] + + crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values()) + for condition, deps in dependencies.items(): + crate_deps += selects.with_or({_CONDITIONS[condition]: deps.values()}) + + return crate_deps + +def aliases( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Produces a map of Crate alias names to their original label + + If no dependency kinds are specified, `normal` and `proc_macro` are used by default. + Setting any one flag will otherwise determine the contents of the returned dict. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normla dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + dict: The aliases of all associated packages + """ + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_aliases_maps = [] + if normal: + all_aliases_maps.append(_NORMAL_ALIASES) + if normal_dev: + all_aliases_maps.append(_NORMAL_DEV_ALIASES) + if proc_macro: + all_aliases_maps.append(_PROC_MACRO_ALIASES) + if proc_macro_dev: + all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES) + if build: + all_aliases_maps.append(_BUILD_ALIASES) + if build_proc_macro: + all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES) + + # Default to always using normal aliases + if not all_aliases_maps: + all_aliases_maps.append(_NORMAL_ALIASES) + all_aliases_maps.append(_PROC_MACRO_ALIASES) + + aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None) + + if not aliases: + return dict() + + common_items = aliases.pop(_COMMON_CONDITION, {}).items() + + # If there are only common items in the dictionary, immediately return them + if not len(aliases.keys()) == 1: + return dict(common_items) + + # Build a single select statement where each conditional has accounted for the + # common set of aliases. + crate_aliases = {"//conditions:default": common_items} + for condition, deps in aliases.items(): + condition_triples = _CONDITIONS[condition] + if condition_triples in crate_aliases: + crate_aliases[condition_triples].update(deps) + else: + crate_aliases.update({_CONDITIONS[condition]: dict(deps.items() + common_items)}) + + return selects.with_or(crate_aliases) + +############################################################################### +# WORKSPACE MEMBER DEPS AND ALIASES +############################################################################### + +_NORMAL_DEPENDENCIES = { + "": { + _COMMON_CONDITION: { + "anyhow": "@rules_rust_rust_analyzer__anyhow-1.0.58//:anyhow", + "env_logger": "@rules_rust_rust_analyzer__env_logger-0.9.0//:env_logger", + "itertools": "@rules_rust_rust_analyzer__itertools-0.10.3//:itertools", + "log": "@rules_rust_rust_analyzer__log-0.4.17//:log", + "serde": "@rules_rust_rust_analyzer__serde-1.0.139//:serde", + "serde_json": "@rules_rust_rust_analyzer__serde_json-1.0.82//:serde_json", + "structopt": "@rules_rust_rust_analyzer__structopt-0.3.26//:structopt", + }, + }, +} + +_NORMAL_ALIASES = { + "": { + _COMMON_CONDITION: { + }, + }, +} + +_NORMAL_DEV_DEPENDENCIES = { + "": { + }, +} + +_NORMAL_DEV_ALIASES = { + "": { + }, +} + +_PROC_MACRO_DEPENDENCIES = { + "": { + }, +} + +_PROC_MACRO_ALIASES = { + "": { + }, +} + +_PROC_MACRO_DEV_DEPENDENCIES = { + "": { + }, +} + +_PROC_MACRO_DEV_ALIASES = { + "": { + }, +} + +_BUILD_DEPENDENCIES = { + "": { + }, +} + +_BUILD_ALIASES = { + "": { + }, +} + +_BUILD_PROC_MACRO_DEPENDENCIES = { + "": { + }, +} + +_BUILD_PROC_MACRO_ALIASES = { + "": { + }, +} + +_CONDITIONS = { + "cfg(not(windows))": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "riscv32imc-unknown-none-elf", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"], + "cfg(target_os = \"hermit\")": [], + "cfg(target_os = \"windows\")": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"], + "cfg(unix)": ["aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-linux-androideabi", "armv7-unknown-linux-gnueabi", "i686-apple-darwin", "i686-linux-android", "i686-unknown-freebsd", "i686-unknown-linux-gnu", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "x86_64-unknown-linux-gnu"], + "cfg(windows)": ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc"], + "i686-pc-windows-gnu": [], + "x86_64-pc-windows-gnu": [], +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "rules_rust_rust_analyzer__aho-corasick-0.7.18", + sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/aho-corasick/0.7.18/download"], + strip_prefix = "aho-corasick-0.7.18", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.aho-corasick-0.7.18.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__ansi_term-0.12.1", + sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/ansi_term/0.12.1/download"], + strip_prefix = "ansi_term-0.12.1", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.ansi_term-0.12.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__anyhow-1.0.58", + sha256 = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/anyhow/1.0.58/download"], + strip_prefix = "anyhow-1.0.58", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.anyhow-1.0.58.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__atty-0.2.14", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/atty/0.2.14/download"], + strip_prefix = "atty-0.2.14", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__bitflags-1.3.2", + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/bitflags/1.3.2/download"], + strip_prefix = "bitflags-1.3.2", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__cfg-if-1.0.0", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/cfg-if/1.0.0/download"], + strip_prefix = "cfg-if-1.0.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__clap-2.34.0", + sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/clap/2.34.0/download"], + strip_prefix = "clap-2.34.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.clap-2.34.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__either-1.7.0", + sha256 = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/either/1.7.0/download"], + strip_prefix = "either-1.7.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.either-1.7.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__env_logger-0.9.0", + sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/env_logger/0.9.0/download"], + strip_prefix = "env_logger-0.9.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.env_logger-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__heck-0.3.3", + sha256 = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/heck/0.3.3/download"], + strip_prefix = "heck-0.3.3", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.heck-0.3.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__hermit-abi-0.1.19", + sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/hermit-abi/0.1.19/download"], + strip_prefix = "hermit-abi-0.1.19", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.hermit-abi-0.1.19.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__humantime-2.1.0", + sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/humantime/2.1.0/download"], + strip_prefix = "humantime-2.1.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.humantime-2.1.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__itertools-0.10.3", + sha256 = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/itertools/0.10.3/download"], + strip_prefix = "itertools-0.10.3", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.itertools-0.10.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__itoa-1.0.2", + sha256 = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/itoa/1.0.2/download"], + strip_prefix = "itoa-1.0.2", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.itoa-1.0.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__lazy_static-1.4.0", + sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/lazy_static/1.4.0/download"], + strip_prefix = "lazy_static-1.4.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__libc-0.2.126", + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/libc/0.2.126/download"], + strip_prefix = "libc-0.2.126", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.libc-0.2.126.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__log-0.4.17", + sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/log/0.4.17/download"], + strip_prefix = "log-0.4.17", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.log-0.4.17.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__memchr-2.5.0", + sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/memchr/2.5.0/download"], + strip_prefix = "memchr-2.5.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.memchr-2.5.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__proc-macro-error-1.0.4", + sha256 = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/proc-macro-error/1.0.4/download"], + strip_prefix = "proc-macro-error-1.0.4", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro-error-1.0.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__proc-macro-error-attr-1.0.4", + sha256 = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/proc-macro-error-attr/1.0.4/download"], + strip_prefix = "proc-macro-error-attr-1.0.4", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro-error-attr-1.0.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__proc-macro2-1.0.40", + sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/proc-macro2/1.0.40/download"], + strip_prefix = "proc-macro2-1.0.40", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.proc-macro2-1.0.40.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__quote-1.0.20", + sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/quote/1.0.20/download"], + strip_prefix = "quote-1.0.20", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.quote-1.0.20.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__regex-1.6.0", + sha256 = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/regex/1.6.0/download"], + strip_prefix = "regex-1.6.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.regex-1.6.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__regex-syntax-0.6.27", + sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/regex-syntax/0.6.27/download"], + strip_prefix = "regex-syntax-0.6.27", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.regex-syntax-0.6.27.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__ryu-1.0.10", + sha256 = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/ryu/1.0.10/download"], + strip_prefix = "ryu-1.0.10", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.ryu-1.0.10.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__serde-1.0.139", + sha256 = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/serde/1.0.139/download"], + strip_prefix = "serde-1.0.139", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde-1.0.139.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__serde_derive-1.0.139", + sha256 = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/serde_derive/1.0.139/download"], + strip_prefix = "serde_derive-1.0.139", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde_derive-1.0.139.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__serde_json-1.0.82", + sha256 = "82c2c1fdcd807d1098552c5b9a36e425e42e9fbd7c6a37a8425f390f781f7fa7", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/serde_json/1.0.82/download"], + strip_prefix = "serde_json-1.0.82", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.serde_json-1.0.82.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__strsim-0.8.0", + sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/strsim/0.8.0/download"], + strip_prefix = "strsim-0.8.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.strsim-0.8.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__structopt-0.3.26", + sha256 = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/structopt/0.3.26/download"], + strip_prefix = "structopt-0.3.26", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.structopt-0.3.26.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__structopt-derive-0.4.18", + sha256 = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/structopt-derive/0.4.18/download"], + strip_prefix = "structopt-derive-0.4.18", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.structopt-derive-0.4.18.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__syn-1.0.98", + sha256 = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/syn/1.0.98/download"], + strip_prefix = "syn-1.0.98", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.syn-1.0.98.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__termcolor-1.1.3", + sha256 = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/termcolor/1.1.3/download"], + strip_prefix = "termcolor-1.1.3", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.termcolor-1.1.3.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__textwrap-0.11.0", + sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/textwrap/0.11.0/download"], + strip_prefix = "textwrap-0.11.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.textwrap-0.11.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__unicode-ident-1.0.1", + sha256 = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-ident/1.0.1/download"], + strip_prefix = "unicode-ident-1.0.1", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.unicode-ident-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__unicode-segmentation-1.9.0", + sha256 = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-segmentation/1.9.0/download"], + strip_prefix = "unicode-segmentation-1.9.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.unicode-segmentation-1.9.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__unicode-width-0.1.9", + sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/unicode-width/0.1.9/download"], + strip_prefix = "unicode-width-0.1.9", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.unicode-width-0.1.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__vec_map-0.8.2", + sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/vec_map/0.8.2/download"], + strip_prefix = "vec_map-0.8.2", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.vec_map-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__version_check-0.9.4", + sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/version_check/0.9.4/download"], + strip_prefix = "version_check-0.9.4", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.version_check-0.9.4.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__winapi-0.3.9", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi/0.3.9/download"], + strip_prefix = "winapi-0.3.9", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__winapi-i686-pc-windows-gnu-0.4.0", + sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download"], + strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__winapi-util-0.1.5", + sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi-util/0.1.5/download"], + strip_prefix = "winapi-util-0.1.5", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-util-0.1.5.bazel"), + ) + + maybe( + http_archive, + name = "rules_rust_rust_analyzer__winapi-x86_64-pc-windows-gnu-0.4.0", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + type = "tar.gz", + urls = ["https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + build_file = Label("@rules_rust//tools/rust_analyzer/3rdparty/crates:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) From 3c28aaad90b2b6ebdc23b1d39bd15eae97889333 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 18 Jul 2022 08:21:04 -0700 Subject: [PATCH 4/6] Deleted tools/rust_analyzer/raze --- tools/rust_analyzer/raze/BUILD.bazel | 94 ---- tools/rust_analyzer/raze/Cargo.raze.lock | 377 --------------- tools/rust_analyzer/raze/Cargo.toml | 26 -- tools/rust_analyzer/raze/crates.bzl | 442 ------------------ .../remote/BUILD.aho-corasick-0.7.18.bazel | 57 --- .../raze/remote/BUILD.ansi_term-0.11.0.bazel | 67 --- .../raze/remote/BUILD.anyhow-1.0.45.bazel | 114 ----- .../raze/remote/BUILD.atty-0.2.14.bazel | 90 ---- tools/rust_analyzer/raze/remote/BUILD.bazel | 17 - .../raze/remote/BUILD.bitflags-1.3.2.bazel | 59 --- .../raze/remote/BUILD.cfg-if-1.0.0.bazel | 56 --- .../raze/remote/BUILD.clap-2.33.3.bazel | 94 ---- .../raze/remote/BUILD.either-1.6.1.bazel | 54 --- .../raze/remote/BUILD.env_logger-0.9.0.bazel | 72 --- .../raze/remote/BUILD.heck-0.3.3.bazel | 55 --- .../raze/remote/BUILD.hermit-abi-0.1.19.bazel | 56 --- .../raze/remote/BUILD.humantime-2.1.0.bazel | 58 --- .../raze/remote/BUILD.itertools-0.10.1.bazel | 100 ---- .../raze/remote/BUILD.itoa-0.4.8.bazel | 58 --- .../raze/remote/BUILD.lazy_static-1.4.0.bazel | 58 --- .../raze/remote/BUILD.libc-0.2.107.bazel | 86 ---- .../raze/remote/BUILD.log-0.4.14.bazel | 93 ---- .../raze/remote/BUILD.memchr-2.4.1.bazel | 88 ---- .../remote/BUILD.proc-macro-error-1.0.4.bazel | 103 ---- .../BUILD.proc-macro-error-attr-1.0.4.bazel | 87 ---- .../remote/BUILD.proc-macro2-1.0.32.bazel | 99 ---- .../raze/remote/BUILD.quote-1.0.10.bazel | 63 --- .../raze/remote/BUILD.regex-1.5.4.bazel | 95 ---- .../remote/BUILD.regex-syntax-0.6.25.bazel | 56 --- .../raze/remote/BUILD.ryu-1.0.5.bazel | 102 ---- .../raze/remote/BUILD.serde-1.0.130.bazel | 95 ---- .../remote/BUILD.serde_derive-1.0.130.bazel | 89 ---- .../raze/remote/BUILD.serde_json-1.0.69.bazel | 91 ---- .../raze/remote/BUILD.strsim-0.8.0.bazel | 58 --- .../raze/remote/BUILD.structopt-0.3.25.bazel | 156 ------- .../BUILD.structopt-derive-0.4.18.bazel | 59 --- .../raze/remote/BUILD.syn-1.0.81.bazel | 159 ------- .../raze/remote/BUILD.termcolor-1.1.2.bazel | 65 --- .../raze/remote/BUILD.textwrap-0.11.0.bazel | 63 --- .../BUILD.unicode-segmentation-1.8.0.bazel | 60 --- .../remote/BUILD.unicode-width-0.1.9.bazel | 55 --- .../raze/remote/BUILD.unicode-xid-0.2.2.bazel | 59 --- .../raze/remote/BUILD.vec_map-0.8.2.bazel | 54 --- .../remote/BUILD.version_check-0.9.3.bazel | 54 --- .../raze/remote/BUILD.winapi-0.3.9.bazel | 106 ----- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 84 ---- .../raze/remote/BUILD.winapi-util-0.1.5.bazel | 65 --- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 84 ---- 48 files changed, 4332 deletions(-) delete mode 100644 tools/rust_analyzer/raze/BUILD.bazel delete mode 100644 tools/rust_analyzer/raze/Cargo.raze.lock delete mode 100644 tools/rust_analyzer/raze/Cargo.toml delete mode 100644 tools/rust_analyzer/raze/crates.bzl delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.aho-corasick-0.7.18.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.ansi_term-0.11.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.anyhow-1.0.45.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.atty-0.2.14.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.bitflags-1.3.2.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.cfg-if-1.0.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.clap-2.33.3.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.either-1.6.1.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.env_logger-0.9.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.heck-0.3.3.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.hermit-abi-0.1.19.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.humantime-2.1.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.itertools-0.10.1.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.itoa-0.4.8.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.lazy_static-1.4.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.libc-0.2.107.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.log-0.4.14.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.memchr-2.4.1.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-1.0.4.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-attr-1.0.4.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.proc-macro2-1.0.32.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.quote-1.0.10.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.regex-1.5.4.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.regex-syntax-0.6.25.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.ryu-1.0.5.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.serde-1.0.130.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.serde_derive-1.0.130.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.serde_json-1.0.69.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.strsim-0.8.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.structopt-0.3.25.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.structopt-derive-0.4.18.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.syn-1.0.81.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.termcolor-1.1.2.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.textwrap-0.11.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.unicode-segmentation-1.8.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.unicode-width-0.1.9.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.unicode-xid-0.2.2.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.vec_map-0.8.2.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.version_check-0.9.3.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.winapi-0.3.9.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.winapi-util-0.1.5.bazel delete mode 100644 tools/rust_analyzer/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel diff --git a/tools/rust_analyzer/raze/BUILD.bazel b/tools/rust_analyzer/raze/BUILD.bazel deleted file mode 100644 index a6c8e59b51..0000000000 --- a/tools/rust_analyzer/raze/BUILD.bazel +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -package(default_visibility = ["//visibility:public"]) - -licenses([ - "notice", # See individual crates for specific licenses -]) - -# Aliased targets -alias( - name = "anyhow", - actual = "@rules_rust_tools_rust_analyzer__anyhow__1_0_45//:anyhow", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "env_logger", - actual = "@rules_rust_tools_rust_analyzer__env_logger__0_9_0//:env_logger", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "itertools", - actual = "@rules_rust_tools_rust_analyzer__itertools__0_10_1//:itertools", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "log", - actual = "@rules_rust_tools_rust_analyzer__log__0_4_14//:log", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "serde", - actual = "@rules_rust_tools_rust_analyzer__serde__1_0_130//:serde", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "serde_json", - actual = "@rules_rust_tools_rust_analyzer__serde_json__1_0_69//:serde_json", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "structopt", - actual = "@rules_rust_tools_rust_analyzer__structopt__0_3_25//:structopt", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/tools/rust_analyzer/raze/Cargo.raze.lock b/tools/rust_analyzer/raze/Cargo.raze.lock deleted file mode 100644 index d78e906ea7..0000000000 --- a/tools/rust_analyzer/raze/Cargo.raze.lock +++ /dev/null @@ -1,377 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "aho-corasick" -version = "0.7.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" -dependencies = [ - "memchr", -] - -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" -dependencies = [ - "winapi", -] - -[[package]] -name = "anyhow" -version = "1.0.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7" - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi", - "libc", - "winapi", -] - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "clap" -version = "2.33.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" -dependencies = [ - "ansi_term", - "atty", - "bitflags", - "strsim", - "textwrap", - "unicode-width", - "vec_map", -] - -[[package]] -name = "compile_with_bazel" -version = "0.0.0" -dependencies = [ - "anyhow", - "env_logger", - "itertools", - "log", - "serde", - "serde_json", - "structopt", -] - -[[package]] -name = "either" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" - -[[package]] -name = "env_logger" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" -dependencies = [ - "atty", - "humantime", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "itertools" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.107" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219" - -[[package]] -name = "log" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "memchr" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - -[[package]] -name = "proc-macro2" -version = "1.0.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "quote" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "regex" -version = "1.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.6.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" - -[[package]] -name = "ryu" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" - -[[package]] -name = "serde" -version = "1.0.130" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.130" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e466864e431129c7e0d3476b92f20458e5879919a0596c6472738d9fa2d342f8" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - -[[package]] -name = "structopt" -version = "0.3.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c" -dependencies = [ - "clap", - "lazy_static", - "structopt-derive", -] - -[[package]] -name = "structopt-derive" -version = "0.4.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" -dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "syn" -version = "1.0.81" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "termcolor" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - -[[package]] -name = "unicode-segmentation" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" - -[[package]] -name = "unicode-width" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" - -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - -[[package]] -name = "version_check" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/tools/rust_analyzer/raze/Cargo.toml b/tools/rust_analyzer/raze/Cargo.toml deleted file mode 100644 index 4a9b0ee88c..0000000000 --- a/tools/rust_analyzer/raze/Cargo.toml +++ /dev/null @@ -1,26 +0,0 @@ -[package] -name = "compile_with_bazel" -version = "0.0.0" -edition="2018" - -[lib] -path = "fake_lib.rs" - -[dependencies] -anyhow = "1.0" -log = "0.4" -env_logger = "0.9" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -structopt = "0.3" - -[dev-dependencies] -itertools = "0.10" - -[package.metadata.raze] -genmode = "Remote" -workspace_path = "//tools/rust_analyzer/raze" -gen_workspace_prefix = "rules_rust_tools_rust_analyzer" -rust_rules_workspace_name = "rules_rust" -package_aliases_dir = "." -default_gen_buildrs = true diff --git a/tools/rust_analyzer/raze/crates.bzl b/tools/rust_analyzer/raze/crates.bzl deleted file mode 100644 index 336972e919..0000000000 --- a/tools/rust_analyzer/raze/crates.bzl +++ /dev/null @@ -1,442 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load - -def rules_rust_tools_rust_analyzer_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__aho_corasick__0_7_18", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download", - type = "tar.gz", - sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f", - strip_prefix = "aho-corasick-0.7.18", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.aho-corasick-0.7.18.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__ansi_term__0_11_0", - url = "https://crates.io/api/v1/crates/ansi_term/0.11.0/download", - type = "tar.gz", - sha256 = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b", - strip_prefix = "ansi_term-0.11.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.ansi_term-0.11.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__anyhow__1_0_45", - url = "https://crates.io/api/v1/crates/anyhow/1.0.45/download", - type = "tar.gz", - sha256 = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7", - strip_prefix = "anyhow-1.0.45", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.anyhow-1.0.45.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__atty__0_2_14", - url = "https://crates.io/api/v1/crates/atty/0.2.14/download", - type = "tar.gz", - sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", - strip_prefix = "atty-0.2.14", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.atty-0.2.14.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__bitflags__1_3_2", - url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", - type = "tar.gz", - sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", - strip_prefix = "bitflags-1.3.2", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.bitflags-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__cfg_if__1_0_0", - url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", - type = "tar.gz", - sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", - strip_prefix = "cfg-if-1.0.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__clap__2_33_3", - url = "https://crates.io/api/v1/crates/clap/2.33.3/download", - type = "tar.gz", - sha256 = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002", - strip_prefix = "clap-2.33.3", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.clap-2.33.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__either__1_6_1", - url = "https://crates.io/api/v1/crates/either/1.6.1/download", - type = "tar.gz", - sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", - strip_prefix = "either-1.6.1", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.either-1.6.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__env_logger__0_9_0", - url = "https://crates.io/api/v1/crates/env_logger/0.9.0/download", - type = "tar.gz", - sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3", - strip_prefix = "env_logger-0.9.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.env_logger-0.9.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__heck__0_3_3", - url = "https://crates.io/api/v1/crates/heck/0.3.3/download", - type = "tar.gz", - sha256 = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c", - strip_prefix = "heck-0.3.3", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.heck-0.3.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__hermit_abi__0_1_19", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", - type = "tar.gz", - sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", - strip_prefix = "hermit-abi-0.1.19", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.hermit-abi-0.1.19.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__humantime__2_1_0", - url = "https://crates.io/api/v1/crates/humantime/2.1.0/download", - type = "tar.gz", - sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", - strip_prefix = "humantime-2.1.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.humantime-2.1.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__itertools__0_10_1", - url = "https://crates.io/api/v1/crates/itertools/0.10.1/download", - type = "tar.gz", - sha256 = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf", - strip_prefix = "itertools-0.10.1", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.itertools-0.10.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__itoa__0_4_8", - url = "https://crates.io/api/v1/crates/itoa/0.4.8/download", - type = "tar.gz", - sha256 = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4", - strip_prefix = "itoa-0.4.8", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.itoa-0.4.8.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__lazy_static__1_4_0", - url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", - type = "tar.gz", - sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", - strip_prefix = "lazy_static-1.4.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.lazy_static-1.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__libc__0_2_107", - url = "https://crates.io/api/v1/crates/libc/0.2.107/download", - type = "tar.gz", - sha256 = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219", - strip_prefix = "libc-0.2.107", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.libc-0.2.107.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__log__0_4_14", - url = "https://crates.io/api/v1/crates/log/0.4.14/download", - type = "tar.gz", - sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710", - strip_prefix = "log-0.4.14", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.log-0.4.14.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__memchr__2_4_1", - url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", - type = "tar.gz", - sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", - strip_prefix = "memchr-2.4.1", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.memchr-2.4.1.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__proc_macro_error__1_0_4", - url = "https://crates.io/api/v1/crates/proc-macro-error/1.0.4/download", - type = "tar.gz", - sha256 = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c", - strip_prefix = "proc-macro-error-1.0.4", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.proc-macro-error-1.0.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__proc_macro_error_attr__1_0_4", - url = "https://crates.io/api/v1/crates/proc-macro-error-attr/1.0.4/download", - type = "tar.gz", - sha256 = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869", - strip_prefix = "proc-macro-error-attr-1.0.4", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.proc-macro-error-attr-1.0.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__proc_macro2__1_0_32", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.32/download", - type = "tar.gz", - sha256 = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43", - strip_prefix = "proc-macro2-1.0.32", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.proc-macro2-1.0.32.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__quote__1_0_10", - url = "https://crates.io/api/v1/crates/quote/1.0.10/download", - type = "tar.gz", - sha256 = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05", - strip_prefix = "quote-1.0.10", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.quote-1.0.10.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__regex__1_5_4", - url = "https://crates.io/api/v1/crates/regex/1.5.4/download", - type = "tar.gz", - sha256 = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461", - strip_prefix = "regex-1.5.4", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.regex-1.5.4.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__regex_syntax__0_6_25", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download", - type = "tar.gz", - sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b", - strip_prefix = "regex-syntax-0.6.25", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.regex-syntax-0.6.25.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__ryu__1_0_5", - url = "https://crates.io/api/v1/crates/ryu/1.0.5/download", - type = "tar.gz", - sha256 = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e", - strip_prefix = "ryu-1.0.5", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.ryu-1.0.5.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__serde__1_0_130", - url = "https://crates.io/api/v1/crates/serde/1.0.130/download", - type = "tar.gz", - sha256 = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913", - strip_prefix = "serde-1.0.130", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.serde-1.0.130.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__serde_derive__1_0_130", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.130/download", - type = "tar.gz", - sha256 = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b", - strip_prefix = "serde_derive-1.0.130", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.serde_derive-1.0.130.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__serde_json__1_0_69", - url = "https://crates.io/api/v1/crates/serde_json/1.0.69/download", - type = "tar.gz", - sha256 = "e466864e431129c7e0d3476b92f20458e5879919a0596c6472738d9fa2d342f8", - strip_prefix = "serde_json-1.0.69", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.serde_json-1.0.69.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__strsim__0_8_0", - url = "https://crates.io/api/v1/crates/strsim/0.8.0/download", - type = "tar.gz", - sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", - strip_prefix = "strsim-0.8.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.strsim-0.8.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__structopt__0_3_25", - url = "https://crates.io/api/v1/crates/structopt/0.3.25/download", - type = "tar.gz", - sha256 = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c", - strip_prefix = "structopt-0.3.25", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.structopt-0.3.25.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__structopt_derive__0_4_18", - url = "https://crates.io/api/v1/crates/structopt-derive/0.4.18/download", - type = "tar.gz", - sha256 = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0", - strip_prefix = "structopt-derive-0.4.18", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.structopt-derive-0.4.18.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__syn__1_0_81", - url = "https://crates.io/api/v1/crates/syn/1.0.81/download", - type = "tar.gz", - sha256 = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966", - strip_prefix = "syn-1.0.81", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.syn-1.0.81.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__termcolor__1_1_2", - url = "https://crates.io/api/v1/crates/termcolor/1.1.2/download", - type = "tar.gz", - sha256 = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4", - strip_prefix = "termcolor-1.1.2", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.termcolor-1.1.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__textwrap__0_11_0", - url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", - type = "tar.gz", - sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", - strip_prefix = "textwrap-0.11.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.textwrap-0.11.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__unicode_segmentation__1_8_0", - url = "https://crates.io/api/v1/crates/unicode-segmentation/1.8.0/download", - type = "tar.gz", - sha256 = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b", - strip_prefix = "unicode-segmentation-1.8.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.unicode-segmentation-1.8.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__unicode_width__0_1_9", - url = "https://crates.io/api/v1/crates/unicode-width/0.1.9/download", - type = "tar.gz", - sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", - strip_prefix = "unicode-width-0.1.9", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.unicode-width-0.1.9.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__unicode_xid__0_2_2", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", - type = "tar.gz", - sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", - strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.unicode-xid-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__vec_map__0_8_2", - url = "https://crates.io/api/v1/crates/vec_map/0.8.2/download", - type = "tar.gz", - sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", - strip_prefix = "vec_map-0.8.2", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.vec_map-0.8.2.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__version_check__0_9_3", - url = "https://crates.io/api/v1/crates/version_check/0.9.3/download", - type = "tar.gz", - sha256 = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe", - strip_prefix = "version_check-0.9.3", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.version_check-0.9.3.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__winapi__0_3_9", - url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", - type = "tar.gz", - sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", - strip_prefix = "winapi-0.3.9", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.winapi-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", - strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__winapi_util__0_1_5", - url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", - type = "tar.gz", - sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", - strip_prefix = "winapi-util-0.1.5", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.winapi-util-0.1.5.bazel"), - ) - - maybe( - http_archive, - name = "rules_rust_tools_rust_analyzer__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", - strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//tools/rust_analyzer/raze/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), - ) diff --git a/tools/rust_analyzer/raze/remote/BUILD.aho-corasick-0.7.18.bazel b/tools/rust_analyzer/raze/remote/BUILD.aho-corasick-0.7.18.bazel deleted file mode 100644 index f8672a2e6d..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.aho-corasick-0.7.18.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "aho_corasick", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=aho_corasick", - "manual", - ], - version = "0.7.18", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__memchr__2_4_1//:memchr", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.ansi_term-0.11.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.ansi_term-0.11.0.bazel deleted file mode 100644 index f13bb1d0f7..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.ansi_term-0.11.0.bazel +++ /dev/null @@ -1,67 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "colours" with type "example" omitted - -rust_library( - name = "ansi_term", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ansi_term", - "manual", - ], - version = "0.11.0", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_tools_rust_analyzer__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.anyhow-1.0.45.bazel b/tools/rust_analyzer/raze/remote/BUILD.anyhow-1.0.45.bazel deleted file mode 100644 index 9d2a9ecd92..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.anyhow-1.0.45.bazel +++ /dev/null @@ -1,114 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.45", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "anyhow", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=anyhow", - "manual", - ], - version = "1.0.45", - # buildifier: leave-alone - deps = [ - ":anyhow_build_script", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_autotrait" with type "test" omitted - -# Unsupported target "test_backtrace" with type "test" omitted - -# Unsupported target "test_boxed" with type "test" omitted - -# Unsupported target "test_chain" with type "test" omitted - -# Unsupported target "test_context" with type "test" omitted - -# Unsupported target "test_convert" with type "test" omitted - -# Unsupported target "test_downcast" with type "test" omitted - -# Unsupported target "test_ffi" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted - -# Unsupported target "test_macros" with type "test" omitted - -# Unsupported target "test_repr" with type "test" omitted - -# Unsupported target "test_source" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.atty-0.2.14.bazel b/tools/rust_analyzer/raze/remote/BUILD.atty-0.2.14.bazel deleted file mode 100644 index 9a79d96409..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.atty-0.2.14.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "atty" with type "example" omitted - -rust_library( - name = "atty", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=atty", - "manual", - ], - version = "0.2.14", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@rules_rust_tools_rust_analyzer__libc__0_2_107//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_tools_rust_analyzer__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.bazel b/tools/rust_analyzer/raze/remote/BUILD.bazel deleted file mode 100644 index b49fb68667..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.bazel +++ /dev/null @@ -1,17 +0,0 @@ -# Export file for Stardoc support -exports_files( - glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) - -filegroup( - name = "srcs", - srcs = glob([ - "**/*.bazel", - "**/*.bzl", - ]), - visibility = ["//visibility:public"], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.bitflags-1.3.2.bazel b/tools/rust_analyzer/raze/remote/BUILD.bitflags-1.3.2.bazel deleted file mode 100644 index cad68d8910..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.bitflags-1.3.2.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "bitflags", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=bitflags", - "manual", - ], - version = "1.3.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "basic" with type "test" omitted - -# Unsupported target "compile" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.cfg-if-1.0.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.cfg-if-1.0.0.bazel deleted file mode 100644 index 36ff91f551..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.cfg-if-1.0.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "cfg_if", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cfg-if", - "manual", - ], - version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.clap-2.33.3.bazel b/tools/rust_analyzer/raze/remote/BUILD.clap-2.33.3.bazel deleted file mode 100644 index 263a837a3a..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.clap-2.33.3.bazel +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "clap", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "ansi_term", - "atty", - "color", - "default", - "strsim", - "suggestions", - "vec_map", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=clap", - "manual", - ], - version = "2.33.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__atty__0_2_14//:atty", - "@rules_rust_tools_rust_analyzer__bitflags__1_3_2//:bitflags", - "@rules_rust_tools_rust_analyzer__strsim__0_8_0//:strsim", - "@rules_rust_tools_rust_analyzer__textwrap__0_11_0//:textwrap", - "@rules_rust_tools_rust_analyzer__unicode_width__0_1_9//:unicode_width", - "@rules_rust_tools_rust_analyzer__vec_map__0_8_2//:vec_map", - ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@rules_rust_tools_rust_analyzer__ansi_term__0_11_0//:ansi_term", - ], - "//conditions:default": [], - }), -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.either-1.6.1.bazel b/tools/rust_analyzer/raze/remote/BUILD.either-1.6.1.bazel deleted file mode 100644 index d26d3bfd94..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.either-1.6.1.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "either", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=either", - "manual", - ], - version = "1.6.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.env_logger-0.9.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.env_logger-0.9.0.bazel deleted file mode 100644 index df654ef6a8..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.env_logger-0.9.0.bazel +++ /dev/null @@ -1,72 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "env_logger", - srcs = glob(["**/*.rs"]), - crate_features = [ - "atty", - "default", - "humantime", - "regex", - "termcolor", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=env_logger", - "manual", - ], - version = "0.9.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__atty__0_2_14//:atty", - "@rules_rust_tools_rust_analyzer__humantime__2_1_0//:humantime", - "@rules_rust_tools_rust_analyzer__log__0_4_14//:log", - "@rules_rust_tools_rust_analyzer__regex__1_5_4//:regex", - "@rules_rust_tools_rust_analyzer__termcolor__1_1_2//:termcolor", - ], -) - -# Unsupported target "init-twice-retains-filter" with type "test" omitted - -# Unsupported target "log-in-log" with type "test" omitted - -# Unsupported target "log_tls_dtors" with type "test" omitted - -# Unsupported target "regexp_filter" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.heck-0.3.3.bazel b/tools/rust_analyzer/raze/remote/BUILD.heck-0.3.3.bazel deleted file mode 100644 index 7bb41cac47..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.heck-0.3.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "heck", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=heck", - "manual", - ], - version = "0.3.3", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__unicode_segmentation__1_8_0//:unicode_segmentation", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.hermit-abi-0.1.19.bazel b/tools/rust_analyzer/raze/remote/BUILD.hermit-abi-0.1.19.bazel deleted file mode 100644 index 3c041c3683..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.hermit-abi-0.1.19.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "hermit_abi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=hermit-abi", - "manual", - ], - version = "0.1.19", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__libc__0_2_107//:libc", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.humantime-2.1.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.humantime-2.1.0.bazel deleted file mode 100644 index 98effaea4b..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.humantime-2.1.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "datetime_format" with type "bench" omitted - -# Unsupported target "datetime_parse" with type "bench" omitted - -rust_library( - name = "humantime", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=humantime", - "manual", - ], - version = "2.1.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.itertools-0.10.1.bazel b/tools/rust_analyzer/raze/remote/BUILD.itertools-0.10.1.bazel deleted file mode 100644 index 6e7cf534d4..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.itertools-0.10.1.bazel +++ /dev/null @@ -1,100 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "bench1" with type "bench" omitted - -# Unsupported target "combinations" with type "bench" omitted - -# Unsupported target "combinations_with_replacement" with type "bench" omitted - -# Unsupported target "fold_specialization" with type "bench" omitted - -# Unsupported target "powerset" with type "bench" omitted - -# Unsupported target "tree_fold1" with type "bench" omitted - -# Unsupported target "tuple_combinations" with type "bench" omitted - -# Unsupported target "tuples" with type "bench" omitted - -# Unsupported target "iris" with type "example" omitted - -rust_library( - name = "itertools", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "use_alloc", - "use_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=itertools", - "manual", - ], - version = "0.10.1", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__either__1_6_1//:either", - ], -) - -# Unsupported target "adaptors_no_collect" with type "test" omitted - -# Unsupported target "flatten_ok" with type "test" omitted - -# Unsupported target "fold_specialization" with type "test" omitted - -# Unsupported target "macros_hygiene" with type "test" omitted - -# Unsupported target "merge_join" with type "test" omitted - -# Unsupported target "peeking_take_while" with type "test" omitted - -# Unsupported target "quick" with type "test" omitted - -# Unsupported target "specializations" with type "test" omitted - -# Unsupported target "test_core" with type "test" omitted - -# Unsupported target "test_std" with type "test" omitted - -# Unsupported target "tuples" with type "test" omitted - -# Unsupported target "zip" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.itoa-0.4.8.bazel b/tools/rust_analyzer/raze/remote/BUILD.itoa-0.4.8.bazel deleted file mode 100644 index 845b2df096..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.itoa-0.4.8.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "itoa", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=itoa", - "manual", - ], - version = "0.4.8", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "test" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.lazy_static-1.4.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.lazy_static-1.4.0.bazel deleted file mode 100644 index 70b651b04e..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.lazy_static-1.4.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "lazy_static", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=lazy_static", - "manual", - ], - version = "1.4.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "no_std" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.libc-0.2.107.bazel b/tools/rust_analyzer/raze/remote/BUILD.libc-0.2.107.bazel deleted file mode 100644 index e1567902e1..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.libc-0.2.107.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "libc_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.2.107", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "libc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=libc", - "manual", - ], - version = "0.2.107", - # buildifier: leave-alone - deps = [ - ":libc_build_script", - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.log-0.4.14.bazel b/tools/rust_analyzer/raze/remote/BUILD.log-0.4.14.bazel deleted file mode 100644 index 0556dd75ac..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.log-0.4.14.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "log_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.14", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "value" with type "bench" omitted - -rust_library( - name = "log", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=log", - "manual", - ], - version = "0.4.14", - # buildifier: leave-alone - deps = [ - ":log_build_script", - "@rules_rust_tools_rust_analyzer__cfg_if__1_0_0//:cfg_if", - ], -) - -# Unsupported target "filters" with type "test" omitted - -# Unsupported target "macros" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.memchr-2.4.1.bazel b/tools/rust_analyzer/raze/remote/BUILD.memchr-2.4.1.bazel deleted file mode 100644 index 5178d9e974..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.memchr-2.4.1.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "memchr_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.4.1", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "memchr", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=memchr", - "manual", - ], - version = "2.4.1", - # buildifier: leave-alone - deps = [ - ":memchr_build_script", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-1.0.4.bazel b/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-1.0.4.bazel deleted file mode 100644 index 4289adc8c7..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-1.0.4.bazel +++ /dev/null @@ -1,103 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro_error_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "syn", - "syn-error", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.4", - visibility = ["//visibility:private"], - deps = [ - "@rules_rust_tools_rust_analyzer__version_check__0_9_3//:version_check", - ], -) - -rust_library( - name = "proc_macro_error", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "syn", - "syn-error", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - proc_macro_deps = [ - "@rules_rust_tools_rust_analyzer__proc_macro_error_attr__1_0_4//:proc_macro_error_attr", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro-error", - "manual", - ], - version = "1.0.4", - # buildifier: leave-alone - deps = [ - ":proc_macro_error_build_script", - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - "@rules_rust_tools_rust_analyzer__quote__1_0_10//:quote", - "@rules_rust_tools_rust_analyzer__syn__1_0_81//:syn", - ], -) - -# Unsupported target "macro-errors" with type "test" omitted - -# Unsupported target "ok" with type "test" omitted - -# Unsupported target "runtime-errors" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-attr-1.0.4.bazel b/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-attr-1.0.4.bazel deleted file mode 100644 index 73646e22b7..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.proc-macro-error-attr-1.0.4.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro_error_attr_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.4", - visibility = ["//visibility:private"], - deps = [ - "@rules_rust_tools_rust_analyzer__version_check__0_9_3//:version_check", - ], -) - -rust_proc_macro( - name = "proc_macro_error_attr", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro-error-attr", - "manual", - ], - version = "1.0.4", - # buildifier: leave-alone - deps = [ - ":proc_macro_error_attr_build_script", - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - "@rules_rust_tools_rust_analyzer__quote__1_0_10//:quote", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.proc-macro2-1.0.32.bazel b/tools/rust_analyzer/raze/remote/BUILD.proc-macro2-1.0.32.bazel deleted file mode 100644 index df16c0c289..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.proc-macro2-1.0.32.bazel +++ /dev/null @@ -1,99 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro2_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.32", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "proc_macro2", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro2", - "manual", - ], - version = "1.0.32", - # buildifier: leave-alone - deps = [ - ":proc_macro2_build_script", - "@rules_rust_tools_rust_analyzer__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "comments" with type "test" omitted - -# Unsupported target "features" with type "test" omitted - -# Unsupported target "marker" with type "test" omitted - -# Unsupported target "test" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.quote-1.0.10.bazel b/tools/rust_analyzer/raze/remote/BUILD.quote-1.0.10.bazel deleted file mode 100644 index cd31d9b0c7..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.quote-1.0.10.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "quote", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=quote", - "manual", - ], - version = "1.0.10", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.regex-1.5.4.bazel b/tools/rust_analyzer/raze/remote/BUILD.regex-1.5.4.bazel deleted file mode 100644 index c65a13a762..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.regex-1.5.4.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "shootout-regex-dna" with type "example" omitted - -# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted - -# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted - -# Unsupported target "shootout-regex-dna-replace" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted - -rust_library( - name = "regex", - srcs = glob(["**/*.rs"]), - crate_features = [ - "aho-corasick", - "memchr", - "perf", - "perf-cache", - "perf-dfa", - "perf-inline", - "perf-literal", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex", - "manual", - ], - version = "1.5.4", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__aho_corasick__0_7_18//:aho_corasick", - "@rules_rust_tools_rust_analyzer__memchr__2_4_1//:memchr", - "@rules_rust_tools_rust_analyzer__regex_syntax__0_6_25//:regex_syntax", - ], -) - -# Unsupported target "backtrack" with type "test" omitted - -# Unsupported target "backtrack-bytes" with type "test" omitted - -# Unsupported target "backtrack-utf8bytes" with type "test" omitted - -# Unsupported target "crates-regex" with type "test" omitted - -# Unsupported target "default" with type "test" omitted - -# Unsupported target "default-bytes" with type "test" omitted - -# Unsupported target "nfa" with type "test" omitted - -# Unsupported target "nfa-bytes" with type "test" omitted - -# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.regex-syntax-0.6.25.bazel b/tools/rust_analyzer/raze/remote/BUILD.regex-syntax-0.6.25.bazel deleted file mode 100644 index 15d27be17c..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.regex-syntax-0.6.25.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "regex_syntax", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex-syntax", - "manual", - ], - version = "0.6.25", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.ryu-1.0.5.bazel b/tools/rust_analyzer/raze/remote/BUILD.ryu-1.0.5.bazel deleted file mode 100644 index 71562f7e67..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.ryu-1.0.5.bazel +++ /dev/null @@ -1,102 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR BSL-1.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "ryu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.5", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "upstream_benchmark" with type "example" omitted - -rust_library( - name = "ryu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ryu", - "manual", - ], - version = "1.0.5", - # buildifier: leave-alone - deps = [ - ":ryu_build_script", - ], -) - -# Unsupported target "common_test" with type "test" omitted - -# Unsupported target "d2s_table_test" with type "test" omitted - -# Unsupported target "d2s_test" with type "test" omitted - -# Unsupported target "exhaustive" with type "test" omitted - -# Unsupported target "f2s_test" with type "test" omitted - -# Unsupported target "s2d_test" with type "test" omitted - -# Unsupported target "s2f_test" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.serde-1.0.130.bazel b/tools/rust_analyzer/raze/remote/BUILD.serde-1.0.130.bazel deleted file mode 100644 index 42bc6bf714..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.serde-1.0.130.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "derive", - "serde_derive", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.130", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "serde", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "derive", - "serde_derive", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - proc_macro_deps = [ - "@rules_rust_tools_rust_analyzer__serde_derive__1_0_130//:serde_derive", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde", - "manual", - ], - version = "1.0.130", - # buildifier: leave-alone - deps = [ - ":serde_build_script", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.serde_derive-1.0.130.bazel b/tools/rust_analyzer/raze/remote/BUILD.serde_derive-1.0.130.bazel deleted file mode 100644 index cd3a2fdd7e..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.serde_derive-1.0.130.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_derive_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.130", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_proc_macro( - name = "serde_derive", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde_derive", - "manual", - ], - version = "1.0.130", - # buildifier: leave-alone - deps = [ - ":serde_derive_build_script", - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - "@rules_rust_tools_rust_analyzer__quote__1_0_10//:quote", - "@rules_rust_tools_rust_analyzer__syn__1_0_81//:syn", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.serde_json-1.0.69.bazel b/tools/rust_analyzer/raze/remote/BUILD.serde_json-1.0.69.bazel deleted file mode 100644 index 251a737364..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.serde_json-1.0.69.bazel +++ /dev/null @@ -1,91 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_json_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.69", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "serde_json", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde_json", - "manual", - ], - version = "1.0.69", - # buildifier: leave-alone - deps = [ - ":serde_json_build_script", - "@rules_rust_tools_rust_analyzer__itoa__0_4_8//:itoa", - "@rules_rust_tools_rust_analyzer__ryu__1_0_5//:ryu", - "@rules_rust_tools_rust_analyzer__serde__1_0_130//:serde", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.strsim-0.8.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.strsim-0.8.0.bazel deleted file mode 100644 index d7dd532060..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.strsim-0.8.0.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "benches" with type "bench" omitted - -rust_library( - name = "strsim", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=strsim", - "manual", - ], - version = "0.8.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "lib" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.structopt-0.3.25.bazel b/tools/rust_analyzer/raze/remote/BUILD.structopt-0.3.25.bazel deleted file mode 100644 index 1de213cffe..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.structopt-0.3.25.bazel +++ /dev/null @@ -1,156 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "after_help" with type "example" omitted - -# Unsupported target "at_least_two" with type "example" omitted - -# Unsupported target "basic" with type "example" omitted - -# Unsupported target "deny_missing_docs" with type "example" omitted - -# Unsupported target "doc_comments" with type "example" omitted - -# Unsupported target "enum_in_args" with type "example" omitted - -# Unsupported target "enum_in_args_with_strum" with type "example" omitted - -# Unsupported target "enum_tuple" with type "example" omitted - -# Unsupported target "env" with type "example" omitted - -# Unsupported target "example" with type "example" omitted - -# Unsupported target "flatten" with type "example" omitted - -# Unsupported target "gen_completions" with type "example" omitted - -# Unsupported target "git" with type "example" omitted - -# Unsupported target "group" with type "example" omitted - -# Unsupported target "keyvalue" with type "example" omitted - -# Unsupported target "negative_flag" with type "example" omitted - -# Unsupported target "no_version" with type "example" omitted - -# Unsupported target "rename_all" with type "example" omitted - -# Unsupported target "required_if" with type "example" omitted - -# Unsupported target "skip" with type "example" omitted - -# Unsupported target "subcommand_aliases" with type "example" omitted - -# Unsupported target "true_or_false" with type "example" omitted - -rust_library( - name = "structopt", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - proc_macro_deps = [ - "@rules_rust_tools_rust_analyzer__structopt_derive__0_4_18//:structopt_derive", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=structopt", - "manual", - ], - version = "0.3.25", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__clap__2_33_3//:clap", - "@rules_rust_tools_rust_analyzer__lazy_static__1_4_0//:lazy_static", - ], -) - -# Unsupported target "argument_naming" with type "test" omitted - -# Unsupported target "arguments" with type "test" omitted - -# Unsupported target "author_version_about" with type "test" omitted - -# Unsupported target "custom-string-parsers" with type "test" omitted - -# Unsupported target "default_value" with type "test" omitted - -# Unsupported target "deny-warnings" with type "test" omitted - -# Unsupported target "doc-comments-help" with type "test" omitted - -# Unsupported target "explicit_name_no_renaming" with type "test" omitted - -# Unsupported target "flags" with type "test" omitted - -# Unsupported target "flatten" with type "test" omitted - -# Unsupported target "generics" with type "test" omitted - -# Unsupported target "issues" with type "test" omitted - -# Unsupported target "macro-errors" with type "test" omitted - -# Unsupported target "nested-subcommands" with type "test" omitted - -# Unsupported target "non_literal_attributes" with type "test" omitted - -# Unsupported target "options" with type "test" omitted - -# Unsupported target "privacy" with type "test" omitted - -# Unsupported target "raw_bool_literal" with type "test" omitted - -# Unsupported target "raw_idents" with type "test" omitted - -# Unsupported target "regressions" with type "test" omitted - -# Unsupported target "rename_all_env" with type "test" omitted - -# Unsupported target "skip" with type "test" omitted - -# Unsupported target "special_types" with type "test" omitted - -# Unsupported target "subcommands" with type "test" omitted - -# Unsupported target "utils" with type "test" omitted - -# Unsupported target "we_need_syn_full" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.structopt-derive-0.4.18.bazel b/tools/rust_analyzer/raze/remote/BUILD.structopt-derive-0.4.18.bazel deleted file mode 100644 index c90f7a9632..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.structopt-derive-0.4.18.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_proc_macro( - name = "structopt_derive", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=structopt-derive", - "manual", - ], - version = "0.4.18", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__heck__0_3_3//:heck", - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - "@rules_rust_tools_rust_analyzer__proc_macro_error__1_0_4//:proc_macro_error", - "@rules_rust_tools_rust_analyzer__quote__1_0_10//:quote", - "@rules_rust_tools_rust_analyzer__syn__1_0_81//:syn", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.syn-1.0.81.bazel b/tools/rust_analyzer/raze/remote/BUILD.syn-1.0.81.bazel deleted file mode 100644 index c2bf1d6976..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.syn-1.0.81.bazel +++ /dev/null @@ -1,159 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "syn_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "clone-impls", - "default", - "derive", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.81", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "file" with type "bench" omitted - -# Unsupported target "rust" with type "bench" omitted - -rust_library( - name = "syn", - srcs = glob(["**/*.rs"]), - crate_features = [ - "clone-impls", - "default", - "derive", - "full", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=syn", - "manual", - ], - version = "1.0.81", - # buildifier: leave-alone - deps = [ - ":syn_build_script", - "@rules_rust_tools_rust_analyzer__proc_macro2__1_0_32//:proc_macro2", - "@rules_rust_tools_rust_analyzer__quote__1_0_10//:quote", - "@rules_rust_tools_rust_analyzer__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "test_asyncness" with type "test" omitted - -# Unsupported target "test_attribute" with type "test" omitted - -# Unsupported target "test_derive_input" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_grouping" with type "test" omitted - -# Unsupported target "test_ident" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted - -# Unsupported target "test_iterators" with type "test" omitted - -# Unsupported target "test_lit" with type "test" omitted - -# Unsupported target "test_meta" with type "test" omitted - -# Unsupported target "test_parse_buffer" with type "test" omitted - -# Unsupported target "test_parse_stream" with type "test" omitted - -# Unsupported target "test_pat" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_precedence" with type "test" omitted - -# Unsupported target "test_receiver" with type "test" omitted - -# Unsupported target "test_round_trip" with type "test" omitted - -# Unsupported target "test_shebang" with type "test" omitted - -# Unsupported target "test_should_parse" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted - -# Unsupported target "test_stmt" with type "test" omitted - -# Unsupported target "test_token_trees" with type "test" omitted - -# Unsupported target "test_ty" with type "test" omitted - -# Unsupported target "test_visibility" with type "test" omitted - -# Unsupported target "zzz_stable" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.termcolor-1.1.2.bazel b/tools/rust_analyzer/raze/remote/BUILD.termcolor-1.1.2.bazel deleted file mode 100644 index 4739e51ecb..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.termcolor-1.1.2.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "termcolor", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=termcolor", - "manual", - ], - version = "1.1.2", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_tools_rust_analyzer__winapi_util__0_1_5//:winapi_util", - ], - "//conditions:default": [], - }), -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.textwrap-0.11.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.textwrap-0.11.0.bazel deleted file mode 100644 index 44bf08a552..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.textwrap-0.11.0.bazel +++ /dev/null @@ -1,63 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "linear" with type "bench" omitted - -# Unsupported target "layout" with type "example" omitted - -# Unsupported target "termwidth" with type "example" omitted - -rust_library( - name = "textwrap", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=textwrap", - "manual", - ], - version = "0.11.0", - # buildifier: leave-alone - deps = [ - "@rules_rust_tools_rust_analyzer__unicode_width__0_1_9//:unicode_width", - ], -) - -# Unsupported target "version-numbers" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.unicode-segmentation-1.8.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.unicode-segmentation-1.8.0.bazel deleted file mode 100644 index d6b80b4fee..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.unicode-segmentation-1.8.0.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "graphemes" with type "bench" omitted - -# Unsupported target "unicode_words" with type "bench" omitted - -# Unsupported target "word_bounds" with type "bench" omitted - -rust_library( - name = "unicode_segmentation", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-segmentation", - "manual", - ], - version = "1.8.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.unicode-width-0.1.9.bazel b/tools/rust_analyzer/raze/remote/BUILD.unicode-width-0.1.9.bazel deleted file mode 100644 index 53a1e14e1c..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.unicode-width-0.1.9.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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_width", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-width", - "manual", - ], - version = "0.1.9", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.unicode-xid-0.2.2.bazel b/tools/rust_analyzer/raze/remote/BUILD.unicode-xid-0.2.2.bazel deleted file mode 100644 index e40756a9ca..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.unicode-xid-0.2.2.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 "xid" with type "bench" omitted - -rust_library( - name = "unicode_xid", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-xid", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/tools/rust_analyzer/raze/remote/BUILD.vec_map-0.8.2.bazel b/tools/rust_analyzer/raze/remote/BUILD.vec_map-0.8.2.bazel deleted file mode 100644 index 7161d7f08b..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.vec_map-0.8.2.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "vec_map", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=vec_map", - "manual", - ], - version = "0.8.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.version_check-0.9.3.bazel b/tools/rust_analyzer/raze/remote/BUILD.version_check-0.9.3.bazel deleted file mode 100644 index bcc03d92a9..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.version_check-0.9.3.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", 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 = "version_check", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=version_check", - "manual", - ], - version = "0.9.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.winapi-0.3.9.bazel b/tools/rust_analyzer/raze/remote/BUILD.winapi-0.3.9.bazel deleted file mode 100644 index 2bb594ae9e..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.winapi-0.3.9.bazel +++ /dev/null @@ -1,106 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "consoleapi", - "errhandlingapi", - "fileapi", - "minwinbase", - "minwindef", - "processenv", - "std", - "winbase", - "wincon", - "winerror", - "winnt", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.9", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "consoleapi", - "errhandlingapi", - "fileapi", - "minwinbase", - "minwindef", - "processenv", - "std", - "winbase", - "wincon", - "winerror", - "winnt", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi", - "manual", - ], - version = "0.3.9", - # buildifier: leave-alone - deps = [ - ":winapi_build_script", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 04c985c167..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_i686_pc_windows_gnu_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.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_i686_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-i686-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_i686_pc_windows_gnu_build_script", - ], -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.winapi-util-0.1.5.bazel b/tools/rust_analyzer/raze/remote/BUILD.winapi-util-0.1.5.bazel deleted file mode 100644 index 16301645c2..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.winapi-util-0.1.5.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "winapi_util", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-util", - "manual", - ], - version = "0.1.5", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@rules_rust_tools_rust_analyzer__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/tools/rust_analyzer/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/tools/rust_analyzer/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 8e8d0aba1e..0000000000 --- a/tools/rust_analyzer/raze/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//tools/rust_analyzer/raze", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_x86_64_pc_windows_gnu_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.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_x86_64_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-x86_64-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_x86_64_pc_windows_gnu_build_script", - ], -) From 765059d8d68e41b90cc264e8dc521fb73c6bb4c1 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 18 Jul 2022 08:26:35 -0700 Subject: [PATCH 5/6] Add missing bzl_lib target --- tools/rust_analyzer/BUILD.bazel | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/rust_analyzer/BUILD.bazel b/tools/rust_analyzer/BUILD.bazel index 102d358eca..25b15b993f 100644 --- a/tools/rust_analyzer/BUILD.bazel +++ b/tools/rust_analyzer/BUILD.bazel @@ -1,3 +1,4 @@ +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") load("//rust:defs.bzl", "rust_binary", "rust_clippy", "rust_library", "rust_test") load("//tools:tool_utils.bzl", "aspect_repository") @@ -55,6 +56,13 @@ rust_clippy( ], ) +bzl_library( + name = "bzl_lib", + srcs = glob(["**/*.bzl"]), + deps = ["//tools/rust_analyzer/3rdparty:bzl_lib"], + visibility = ["//visibility:public"], +) + filegroup( name = "distro", srcs = glob([ From f2c0ac1c9be5a171096d066a0eaca7c8ab536781 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Mon, 18 Jul 2022 08:35:36 -0700 Subject: [PATCH 6/6] Ran buildifier --- tools/rust_analyzer/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rust_analyzer/BUILD.bazel b/tools/rust_analyzer/BUILD.bazel index 25b15b993f..01059098d9 100644 --- a/tools/rust_analyzer/BUILD.bazel +++ b/tools/rust_analyzer/BUILD.bazel @@ -59,8 +59,8 @@ rust_clippy( bzl_library( name = "bzl_lib", srcs = glob(["**/*.bzl"]), - deps = ["//tools/rust_analyzer/3rdparty:bzl_lib"], visibility = ["//visibility:public"], + deps = ["//tools/rust_analyzer/3rdparty:bzl_lib"], ) filegroup(