From 31281eda59f614d8a9576b41a294084048af4d4b Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Fri, 16 Aug 2024 13:30:41 +0000 Subject: [PATCH 1/4] Update rules_rust Signed-off-by: Keith Mattix II --- bazel/external/rules_rust.patch | 11 +++++------ bazel/repositories.bzl | 8 +++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch index 67689bec2..0f3e0d487 100644 --- a/bazel/external/rules_rust.patch +++ b/bazel/external/rules_rust.patch @@ -1,13 +1,12 @@ # https://github.com/bazelbuild/rules_rust/pull/1315 - diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl -index 6cdbefeb..284d4afa 100644 +index bfd96ed9..d7e38658 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl -@@ -1024,7 +1024,7 @@ def rustc_compile_action( - ), - ] - +@@ -1507,7 +1507,7 @@ def rustc_compile_action( + }) + crate_info = rust_common.create_crate_info(**crate_info_dict) + - if crate_info.type in ["staticlib", "cdylib"]: + if crate_info.type in ["staticlib", "cdylib"] and not out_binary: # These rules are not supposed to be depended on by other rust targets, and diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 79e2fd59d..a22c3b687 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -90,17 +90,19 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", ) + # Keep at 0.42 one because https://github.com/bazelbuild/rules_rust/issues/2665 + # manifests at 0.43 maybe( http_archive, name = "rules_rust", - sha256 = "e3fe2a255589d128c5e59e407ee57c832533f25ce14cc23605d368cf507ce08d", - strip_prefix = "rules_rust-0.24.1", + integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.24.1.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz", patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], patch_args = ["-p1"], ) + # Core deps. Keep them updated. # Note: we depend on Abseil via rules_fuzzing. Remove this pin when we update that. From 0fd7cd2fde6a3cfc871b031c6e679af5dd7462d5 Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Fri, 16 Aug 2024 16:24:06 +0000 Subject: [PATCH 2/4] Update rust and vendor Signed-off-by: Keith Mattix II --- .../remote/BUILD.ansi_term-0.12.1.bazel | 15 +- .../wasmsign/remote/BUILD.anyhow-1.0.86.bazel | 26 +- .../wasmsign/remote/BUILD.atty-0.2.14.bazel | 24 +- bazel/cargo/wasmsign/remote/BUILD.bazel | 16 +- .../remote/BUILD.bitflags-1.3.2.bazel | 15 +- .../remote/BUILD.byteorder-1.5.0.bazel | 15 +- .../wasmsign/remote/BUILD.cfg-if-1.0.0.bazel | 15 +- .../wasmsign/remote/BUILD.clap-2.34.0.bazel | 24 +- .../remote/BUILD.ct-codecs-1.1.1.bazel | 15 +- .../remote/BUILD.ed25519-compact-1.0.16.bazel | 15 +- .../remote/BUILD.getrandom-0.2.15.bazel | 24 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 15 +- .../remote/BUILD.hmac-sha512-1.1.5.bazel | 15 +- .../wasmsign/remote/BUILD.libc-0.2.155.bazel | 26 +- .../remote/BUILD.parity-wasm-0.42.2.bazel | 15 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 26 +- .../wasmsign/remote/BUILD.quote-1.0.36.bazel | 15 +- .../wasmsign/remote/BUILD.strsim-0.8.0.bazel | 15 +- .../wasmsign/remote/BUILD.syn-2.0.72.bazel | 15 +- .../remote/BUILD.textwrap-0.11.0.bazel | 15 +- .../remote/BUILD.thiserror-1.0.63.bazel | 26 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 15 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 15 +- .../remote/BUILD.unicode-width-0.1.13.bazel | 15 +- .../wasmsign/remote/BUILD.vec_map-0.8.2.bazel | 15 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 15 +- .../remote/BUILD.wasmsign-0.1.2.bazel | 22 +- .../wasmsign/remote/BUILD.winapi-0.3.9.bazel | 32 +-- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 26 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 26 +- bazel/cargo/wasmsign/remote/alias_rules.bzl | 47 ++++ bazel/cargo/wasmsign/remote/crates.bzl | 9 +- bazel/cargo/wasmsign/remote/defs.bzl | 52 +++- .../remote/BUILD.addr2line-0.19.0.bazel | 15 +- .../wasmtime/remote/BUILD.ahash-0.8.11.bazel | 41 ++-- .../remote/BUILD.aho-corasick-1.1.3.bazel | 15 +- .../wasmtime/remote/BUILD.anyhow-1.0.86.bazel | 26 +- .../remote/BUILD.arbitrary-1.3.2.bazel | 15 +- .../wasmtime/remote/BUILD.autocfg-1.3.0.bazel | 15 +- bazel/cargo/wasmtime/remote/BUILD.bazel | 16 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 15 +- .../remote/BUILD.bitflags-1.3.2.bazel | 15 +- .../remote/BUILD.bitflags-2.6.0.bazel | 15 +- .../remote/BUILD.bumpalo-3.16.0.bazel | 15 +- .../remote/BUILD.byteorder-1.5.0.bazel | 15 +- .../wasmtime/remote/BUILD.cc-1.1.6.bazel | 15 +- .../wasmtime/remote/BUILD.cfg-if-1.0.0.bazel | 15 +- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 26 +- .../BUILD.cranelift-bforest-0.96.4.bazel | 15 +- .../BUILD.cranelift-codegen-0.96.4.bazel | 26 +- .../BUILD.cranelift-codegen-meta-0.96.4.bazel | 15 +- ...UILD.cranelift-codegen-shared-0.96.4.bazel | 15 +- .../BUILD.cranelift-control-0.96.4.bazel | 15 +- .../BUILD.cranelift-entity-0.96.4.bazel | 15 +- .../BUILD.cranelift-frontend-0.96.4.bazel | 15 +- .../remote/BUILD.cranelift-isle-0.96.4.bazel | 26 +- .../BUILD.cranelift-native-0.96.4.bazel | 15 +- .../remote/BUILD.cranelift-wasm-0.96.4.bazel | 15 +- .../remote/BUILD.crc32fast-1.4.2.bazel | 15 +- .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 15 +- .../wasmtime/remote/BUILD.either-1.13.0.bazel | 15 +- .../remote/BUILD.env_logger-0.10.2.bazel | 15 +- .../wasmtime/remote/BUILD.errno-0.3.9.bazel | 24 +- .../BUILD.fallible-iterator-0.2.0.bazel | 15 +- .../remote/BUILD.form_urlencoded-1.2.1.bazel | 15 +- .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 15 +- ...BUILD.fxprof-processed-profile-0.6.0.bazel | 15 +- .../remote/BUILD.getrandom-0.2.15.bazel | 24 +- .../wasmtime/remote/BUILD.gimli-0.27.3.bazel | 15 +- .../remote/BUILD.hashbrown-0.12.3.bazel | 15 +- .../remote/BUILD.hashbrown-0.13.2.bazel | 15 +- .../remote/BUILD.hermit-abi-0.3.9.bazel | 15 +- .../remote/BUILD.humantime-2.1.0.bazel | 15 +- .../wasmtime/remote/BUILD.idna-0.5.0.bazel | 15 +- .../remote/BUILD.indexmap-1.9.3.bazel | 26 +- .../remote/BUILD.io-lifetimes-1.0.11.bazel | 35 ++- .../remote/BUILD.is-terminal-0.4.12.bazel | 24 +- .../remote/BUILD.itertools-0.10.5.bazel | 15 +- .../wasmtime/remote/BUILD.itoa-1.0.11.bazel | 15 +- .../wasmtime/remote/BUILD.libc-0.2.155.bazel | 222 +++++++++++++++++- .../remote/BUILD.linux-raw-sys-0.3.8.bazel | 41 +++- .../remote/BUILD.linux-raw-sys-0.4.14.bazel | 49 +++- .../wasmtime/remote/BUILD.log-0.4.22.bazel | 15 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 15 +- .../wasmtime/remote/BUILD.memchr-2.7.4.bazel | 15 +- .../wasmtime/remote/BUILD.memfd-0.6.4.bazel | 15 +- .../remote/BUILD.memoffset-0.8.0.bazel | 26 +- .../wasmtime/remote/BUILD.object-0.30.4.bazel | 15 +- .../remote/BUILD.once_cell-1.19.0.bazel | 15 +- .../wasmtime/remote/BUILD.paste-1.0.15.bazel | 26 +- .../remote/BUILD.percent-encoding-2.3.1.bazel | 15 +- .../remote/BUILD.ppv-lite86-0.2.17.bazel | 15 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 26 +- .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 26 +- .../wasmtime/remote/BUILD.quote-1.0.36.bazel | 15 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 24 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 15 +- .../remote/BUILD.rand_core-0.6.4.bazel | 15 +- .../remote/BUILD.regalloc2-0.8.1.bazel | 15 +- .../wasmtime/remote/BUILD.regex-1.10.5.bazel | 15 +- .../remote/BUILD.regex-automata-0.4.7.bazel | 15 +- .../remote/BUILD.regex-syntax-0.8.4.bazel | 15 +- .../remote/BUILD.rustc-demangle-0.1.24.bazel | 15 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 15 +- .../remote/BUILD.rustix-0.37.27.bazel | 41 +++- .../remote/BUILD.rustix-0.38.34.bazel | 57 ++--- .../wasmtime/remote/BUILD.ryu-1.0.18.bazel | 15 +- .../wasmtime/remote/BUILD.serde-1.0.204.bazel | 26 +- .../remote/BUILD.serde_derive-1.0.204.bazel | 15 +- .../remote/BUILD.serde_json-1.0.120.bazel | 26 +- .../remote/BUILD.slice-group-by-0.3.1.bazel | 15 +- .../remote/BUILD.smallvec-1.13.2.bazel | 15 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 15 +- .../wasmtime/remote/BUILD.syn-2.0.72.bazel | 15 +- .../remote/BUILD.target-lexicon-0.12.15.bazel | 26 +- .../remote/BUILD.termcolor-1.4.1.bazel | 15 +- .../remote/BUILD.thiserror-1.0.63.bazel | 26 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 15 +- .../wasmtime/remote/BUILD.tinyvec-1.8.0.bazel | 15 +- .../remote/BUILD.tinyvec_macros-0.1.1.bazel | 15 +- .../remote/BUILD.unicode-bidi-0.3.15.bazel | 15 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 15 +- .../BUILD.unicode-normalization-0.1.23.bazel | 15 +- .../wasmtime/remote/BUILD.url-2.5.2.bazel | 15 +- .../wasmtime/remote/BUILD.uuid-1.10.0.bazel | 15 +- .../remote/BUILD.version_check-0.9.5.bazel | 15 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 15 +- .../remote/BUILD.wasmparser-0.103.0.bazel | 15 +- .../remote/BUILD.wasmtime-9.0.4.bazel | 26 +- .../BUILD.wasmtime-asm-macros-9.0.4.bazel | 15 +- .../BUILD.wasmtime-c-api-macros-0.0.0.bazel | 11 +- .../BUILD.wasmtime-cranelift-9.0.4.bazel | 15 +- ...UILD.wasmtime-cranelift-shared-9.0.4.bazel | 15 +- .../remote/BUILD.wasmtime-environ-9.0.4.bazel | 15 +- .../remote/BUILD.wasmtime-jit-9.0.4.bazel | 15 +- .../BUILD.wasmtime-jit-debug-9.0.4.bazel | 15 +- ....wasmtime-jit-icache-coherence-9.0.4.bazel | 21 +- .../remote/BUILD.wasmtime-runtime-9.0.4.bazel | 35 ++- .../remote/BUILD.wasmtime-types-9.0.4.bazel | 15 +- .../remote/BUILD.winapi-util-0.1.8.bazel | 15 +- .../remote/BUILD.windows-sys-0.48.0.bazel | 20 +- .../remote/BUILD.windows-sys-0.52.0.bazel | 15 +- .../remote/BUILD.windows-targets-0.48.5.bazel | 18 +- .../remote/BUILD.windows-targets-0.52.6.bazel | 18 +- ...BUILD.windows_aarch64_gnullvm-0.48.5.bazel | 26 +- ...BUILD.windows_aarch64_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_aarch64_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_aarch64_msvc-0.52.6.bazel | 26 +- .../BUILD.windows_i686_gnu-0.48.5.bazel | 26 +- .../BUILD.windows_i686_gnu-0.52.6.bazel | 26 +- .../BUILD.windows_i686_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_i686_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_i686_msvc-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_gnu-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_gnu-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_gnullvm-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_msvc-0.52.6.bazel | 26 +- .../remote/BUILD.zerocopy-0.7.35.bazel | 15 +- .../remote/BUILD.zerocopy-derive-0.7.35.bazel | 15 +- bazel/cargo/wasmtime/remote/alias_rules.bzl | 47 ++++ bazel/cargo/wasmtime/remote/crates.bzl | 9 +- bazel/cargo/wasmtime/remote/defs.bzl | 80 +++++-- bazel/dependencies.bzl | 6 +- bazel/external/rules_rust.patch | 1 + bazel/repositories.bzl | 1 - 167 files changed, 2371 insertions(+), 1139 deletions(-) create mode 100644 bazel/cargo/wasmsign/remote/alias_rules.bzl create mode 100644 bazel/cargo/wasmtime/remote/alias_rules.bzl diff --git a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel index 22faf8df9..c9b94b758 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ansi_term", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ansi_term", diff --git a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel index d717277e6..6c6cb4127 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=anyhow", @@ -49,8 +52,11 @@ rust_library( ) cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), + name = "anyhow_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -59,8 +65,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -84,6 +92,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "anyhow_build_script", + actual = ":anyhow_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel index e7fd10f0f..041f36f9e 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "atty", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=atty", @@ -60,6 +63,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -111,6 +120,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.bazel b/bazel/cargo/wasmsign/remote/BUILD.bazel index fb08489fd..87eba7241 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bazel @@ -13,15 +13,21 @@ exports_files( "cargo-bazel.json", "crates.bzl", "defs.bzl", - ] + glob(["*.bazel"]), + ] + glob( + include = ["*.bazel"], + allow_empty = True, + ), ) filegroup( name = "srcs", - srcs = glob([ - "*.bazel", - "*.bzl", - ]), + srcs = glob( + include = [ + "*.bazel", + "*.bzl", + ], + allow_empty = True, + ), ) # Workspace Member Dependencies diff --git a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel index d701e4c60..653792564 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel index ac3e5c8a2..fd6870278 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "byteorder", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=byteorder", diff --git a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel index 21e4cbeb9..e7c34e5d4 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cfg-if", diff --git a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel index 66427b8a4..ed355234f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "clap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=clap", @@ -73,6 +76,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], @@ -136,6 +145,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], diff --git a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel index fee8bd3b8..a0cbb9f65 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ct_codecs", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ct-codecs", diff --git a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel index 3806ebe7b..f0da91e4f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ed25519_compact", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ed25519-compact", diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel index dd7de9c9b..619a612bd 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "getrandom", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=getrandom", @@ -59,6 +62,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -107,6 +116,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel index 3990cb368..2be88f2ce 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hermit-abi", diff --git a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel index 774e5bd54..c6f58d5ae 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # ISC -# ]) - rust_library( name = "hmac_sha512", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hmac-sha512", diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel index f822abc3f..61bb833b9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=libc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), + name = "libc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "libc_build_script", + actual = ":libc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel index f9e1e34aa..ad79a67a5 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "parity_wasm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=parity-wasm", diff --git a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel index c8ffa5c4b..072a238b8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=proc-macro2", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "proc-macro2_build_script", - srcs = glob(["**/*.rs"]), + name = "proc-macro2_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "proc-macro", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "proc-macro2_build_script", + actual = ":proc-macro2_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel index 308d43ad6..554f71a78 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=quote", diff --git a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel index 6ad9b2043..928090c3d 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "strsim", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=strsim", diff --git a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel index 9bf397bd2..0ac5ed93c 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -37,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=syn", diff --git a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel index ede0b609b..49e49e09e 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "textwrap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=textwrap", diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel index 9ca648959..588c5d5c2 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "thiserror", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__thiserror-impl-1.0.63//:thiserror_impl", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror", @@ -48,14 +51,19 @@ rust_library( ) cargo_build_script( - name = "thiserror_build_script", - srcs = glob(["**/*.rs"]), + name = "thiserror_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "thiserror_build_script", + actual = ":thiserror_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel index 142b16b2f..fc2cf7141 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -10,17 +10,18 @@ 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 = "thiserror_impl", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror-impl", diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel index 894836db8..caed93c98 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 -# ]) - rust_library( name = "unicode_ident", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-ident", diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel index 90c33b0aa..449da1a99 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "unicode_width", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-width", diff --git a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel index 0f0b8933c..21fe8eee8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=vec_map", diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 13fbda125..b5ff1e516 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "wasi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasi", diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel index 3a21d33ca..07b49f69b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel @@ -16,11 +16,16 @@ package(default_visibility = ["//visibility:public"]) rust_library( name = "wasmsign", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +34,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmsign", @@ -51,11 +58,16 @@ rust_library( rust_binary( name = "wasmsign__bin", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -64,7 +76,9 @@ rust_binary( ), crate_root = "src/bin/wasmsign.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmsign", diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel index 0f41daaf1..02f57bf83 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,9 +31,6 @@ rust_library( ), crate_features = [ "consoleapi", - "errhandlingapi", - "fileapi", - "handleapi", "minwinbase", "minwindef", "processenv", @@ -40,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi", @@ -55,13 +55,13 @@ rust_library( ) cargo_build_script( - name = "winapi_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "consoleapi", - "errhandlingapi", - "fileapi", - "handleapi", "minwinbase", "minwindef", "processenv", @@ -71,8 +71,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -96,6 +98,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi_build_script", + actual = ":winapi_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 782b8d021..c1fb3c90b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-i686-pc-windows-gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "winapi-i686-pc-windows-gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi-i686-pc-windows-gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi-i686-pc-windows-gnu_build_script", + actual = ":winapi-i686-pc-windows-gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index e67d33cf9..3468dd114 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-x86_64-pc-windows-gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "winapi-x86_64-pc-windows-gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi-x86_64-pc-windows-gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi-x86_64-pc-windows-gnu_build_script", + actual = ":winapi-x86_64-pc-windows-gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/alias_rules.bzl b/bazel/cargo/wasmsign/remote/alias_rules.bzl new file mode 100644 index 000000000..14b04c127 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/alias_rules.bzl @@ -0,0 +1,47 @@ +"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable.""" + +load("@rules_cc//cc:defs.bzl", "CcInfo") +load("@rules_rust//rust:rust_common.bzl", "COMMON_PROVIDERS") + +def _transition_alias_impl(ctx): + # `ctx.attr.actual` is a list of 1 item due to the transition + providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS] + if CcInfo in ctx.attr.actual[0]: + providers.append(ctx.attr.actual[0][CcInfo]) + return providers + +def _change_compilation_mode(compilation_mode): + def _change_compilation_mode_impl(_settings, _attr): + return { + "//command_line_option:compilation_mode": compilation_mode, + } + + return transition( + implementation = _change_compilation_mode_impl, + inputs = [], + outputs = [ + "//command_line_option:compilation_mode", + ], + ) + +def _transition_alias_rule(compilation_mode): + return rule( + implementation = _transition_alias_impl, + provides = COMMON_PROVIDERS, + attrs = { + "actual": attr.label( + mandatory = True, + doc = "`rust_library()` target to transition to `compilation_mode=opt`.", + providers = COMMON_PROVIDERS, + cfg = _change_compilation_mode(compilation_mode), + ), + "_allowlist_function_transition": attr.label( + default = "@bazel_tools//tools/allowlists/function_transition_allowlist", + ), + }, + doc = "Transitions a Rust library crate to the `compilation_mode=opt`.", + ) + +transition_alias_dbg = _transition_alias_rule("dbg") +transition_alias_fastbuild = _transition_alias_rule("fastbuild") +transition_alias_opt = _transition_alias_rule("opt") diff --git a/bazel/cargo/wasmsign/remote/crates.bzl b/bazel/cargo/wasmsign/remote/crates.bzl index 49dc5c122..b91fb21aa 100644 --- a/bazel/cargo/wasmsign/remote/crates.bzl +++ b/bazel/cargo/wasmsign/remote/crates.bzl @@ -15,6 +15,11 @@ load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl", _crate_reposi load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") def crate_repositories(): + """Generates repositories for vendored crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( crates_vendor_remote_repository, name = "cu", @@ -22,4 +27,6 @@ def crate_repositories(): defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl"), ) - _crate_repositories() + direct_deps = [struct(repo = "cu", is_dev_dep = False)] + direct_deps.extend(_crate_repositories()) + return direct_deps diff --git a/bazel/cargo/wasmsign/remote/defs.bzl b/bazel/cargo/wasmsign/remote/defs.bzl index 89c4e2d02..57a80662e 100644 --- a/bazel/cargo/wasmsign/remote/defs.bzl +++ b/bazel/cargo/wasmsign/remote/defs.bzl @@ -296,7 +296,7 @@ def aliases( _NORMAL_DEPENDENCIES = { "bazel/cargo/wasmsign": { _COMMON_CONDITION: { - "wasmsign": "@cu__wasmsign-0.1.2//:wasmsign", + "wasmsign": Label("@cu__wasmsign-0.1.2//:wasmsign"), }, }, } @@ -359,20 +359,58 @@ _BUILD_PROC_MACRO_ALIASES = { } _CONDITIONS = { - "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-fuchsia", "@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:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-none"], + "aarch64-apple-darwin": ["@rules_rust//rust/platform:aarch64-apple-darwin"], + "aarch64-apple-ios": ["@rules_rust//rust/platform:aarch64-apple-ios"], + "aarch64-apple-ios-sim": ["@rules_rust//rust/platform:aarch64-apple-ios-sim"], + "aarch64-fuchsia": ["@rules_rust//rust/platform:aarch64-fuchsia"], + "aarch64-linux-android": ["@rules_rust//rust/platform:aarch64-linux-android"], + "aarch64-pc-windows-msvc": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], + "aarch64-unknown-linux-gnu": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu"], + "aarch64-unknown-nixos-gnu": ["@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"], + "aarch64-unknown-nto-qnx710": ["@rules_rust//rust/platform:aarch64-unknown-nto-qnx710"], + "arm-unknown-linux-gnueabi": ["@rules_rust//rust/platform:arm-unknown-linux-gnueabi"], + "armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"], + "armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"], + "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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(target_os = \"hermit\")": [], "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], - "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-fuchsia", "@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-fuchsia", "@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"], + "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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-apple-darwin": ["@rules_rust//rust/platform:i686-apple-darwin"], + "i686-linux-android": ["@rules_rust//rust/platform:i686-linux-android"], "i686-pc-windows-gnu": [], + "i686-pc-windows-msvc": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], + "i686-unknown-freebsd": ["@rules_rust//rust/platform:i686-unknown-freebsd"], + "i686-unknown-linux-gnu": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "powerpc-unknown-linux-gnu": ["@rules_rust//rust/platform:powerpc-unknown-linux-gnu"], + "riscv32imc-unknown-none-elf": ["@rules_rust//rust/platform:riscv32imc-unknown-none-elf"], + "riscv64gc-unknown-none-elf": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf"], + "s390x-unknown-linux-gnu": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"], + "thumbv7em-none-eabi": ["@rules_rust//rust/platform:thumbv7em-none-eabi"], + "thumbv8m.main-none-eabi": ["@rules_rust//rust/platform:thumbv8m.main-none-eabi"], + "wasm32-unknown-unknown": ["@rules_rust//rust/platform:wasm32-unknown-unknown"], + "wasm32-wasi": ["@rules_rust//rust/platform:wasm32-wasi"], + "x86_64-apple-darwin": ["@rules_rust//rust/platform:x86_64-apple-darwin"], + "x86_64-apple-ios": ["@rules_rust//rust/platform:x86_64-apple-ios"], + "x86_64-fuchsia": ["@rules_rust//rust/platform:x86_64-fuchsia"], + "x86_64-linux-android": ["@rules_rust//rust/platform:x86_64-linux-android"], "x86_64-pc-windows-gnu": [], + "x86_64-pc-windows-msvc": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "x86_64-unknown-freebsd": ["@rules_rust//rust/platform:x86_64-unknown-freebsd"], + "x86_64-unknown-linux-gnu": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "x86_64-unknown-nixos-gnu": ["@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "x86_64-unknown-none": ["@rules_rust//rust/platform:x86_64-unknown-none"], } ############################################################################### def crate_repositories(): - """A macro for defining repositories for all generated crates""" + """A macro for defining repositories for all generated crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( http_archive, name = "cu__ansi_term-0.12.1", @@ -626,7 +664,7 @@ def crate_repositories(): maybe( new_git_repository, name = "cu__wasmsign-0.1.2", - branch = "master", + commit = "6a6ef1c6f99063a5bd4ef9efc2ee41c5ea8f4f96", init_submodules = True, remote = "https://github.com/jedisct1/wasmsign", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.wasmsign-0.1.2.bazel"), @@ -661,3 +699,7 @@ def crate_repositories(): strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) + + return [ + struct(repo = "cu__wasmsign-0.1.2", is_dev_dep = False), + ] diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel index 3b5e7fffa..ff529c9e8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "addr2line", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=addr2line", diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel index 6cfdf16c9..3efe4bb2b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "ahash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ahash", @@ -65,6 +68,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -101,12 +110,6 @@ rust_library( "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) - ], "@rules_rust//rust/platform:wasm32-unknown-unknown": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -134,6 +137,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -142,14 +148,19 @@ rust_library( ) cargo_build_script( - name = "ahash_build_script", - srcs = glob(["**/*.rs"]), + name = "ahash_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -176,6 +187,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "ahash_build_script", + actual = ":ahash_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel index 939e218b2..193a2843c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "aho_corasick", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=aho-corasick", diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel index a4de9913a..3021b737f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=anyhow", @@ -49,8 +52,11 @@ rust_library( ) cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), + name = "anyhow_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -59,8 +65,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -84,6 +92,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "anyhow_build_script", + actual = ":anyhow_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel index eb21041cc..d36ba3e9a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "arbitrary", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=arbitrary", diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel index 8a2d2ca08..291ad98c6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "autocfg", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=autocfg", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel index 5692002a8..59ac51f8d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bazel @@ -13,15 +13,21 @@ exports_files( "cargo-bazel.json", "crates.bzl", "defs.bzl", - ] + glob(["*.bazel"]), + ] + glob( + include = ["*.bazel"], + allow_empty = True, + ), ) filegroup( name = "srcs", - srcs = glob([ - "*.bazel", - "*.bzl", - ]), + srcs = glob( + include = [ + "*.bazel", + "*.bzl", + ], + allow_empty = True, + ), ) # Workspace Member Dependencies diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index bd63e9685..2287a26f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "bincode", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bincode", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel index d397df700..e8fde40cb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel index 3a06e3e85..cb8de7812 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "bitflags", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel index db1052dfa..2dd737714 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "bumpalo", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bumpalo", diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel index e307c0c58..a2e358ed0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "byteorder", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=byteorder", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel index 4ad7c0707..64ef363ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "cc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cc", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel index e71505481..f9019274b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cfg-if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel index ed4332ae6..b9f77aaaa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "cpp_demangle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cpp_demangle", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "cpp_demangle_build_script", - srcs = glob(["**/*.rs"]), + name = "cpp_demangle_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cpp_demangle_build_script", + actual = ":cpp_demangle_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel index 32c38d05d..afd0429ad 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_bforest", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-bforest", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel index 3daf430f7..c4e2ce3a5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen", @@ -62,8 +65,11 @@ rust_library( ) cargo_build_script( - name = "cranelift-codegen_build_script", - srcs = glob(["**/*.rs"]), + name = "cranelift-codegen_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "gimli", @@ -74,8 +80,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -103,6 +111,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cranelift-codegen_build_script", + actual = ":cranelift-codegen_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel index de05c99c0..3a2667b6c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen_meta", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen-meta", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel index 2eede82e6..ee874dbbe 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen_shared", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen-shared", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel index 057a08c8d..1acdd26f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_control", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-control", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel index bf32eaccc..46fb0d85b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_entity", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-entity", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel index 8a7e192f4..e579e72ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_frontend", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-frontend", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel index 1f0c2d4aa..4565c4841 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_isle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-isle", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "cranelift-isle_build_script", - srcs = glob(["**/*.rs"]), + name = "cranelift-isle_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -82,6 +90,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cranelift-isle_build_script", + actual = ":cranelift-isle_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel index 8364dcc10..eab2947a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_native", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-native", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel index b6a036ef8..e3ee293fd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_wasm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-wasm", diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel index 72a755bcf..063a0afb7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "crc32fast", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=crc32fast", diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel index 3ade906f8..770421fd9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 -# ]) - rust_library( name = "debugid", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=debugid", diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel index f9ca9c23e..043006849 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "either", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=either", diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel index 2d0e975a1..ce9eb6262 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "env_logger", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=env_logger", diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel index 36bd149f5..904e5aba0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "errno", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=errno", @@ -63,6 +66,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -117,6 +126,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel index 79b2a7153..dc1e8ed17 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "fallible_iterator", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fallible-iterator", diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel index fcf6118f6..4a84a5c66 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "form_urlencoded", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=form_urlencoded", diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel index 5b9dc4e8e..bcbd8d053 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "fxhash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel index 5cd5c59de..fe14db14b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "fxprof_processed_profile", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fxprof-processed-profile", diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel index 5fe182d17..cda329e87 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "getrandom", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=getrandom", @@ -62,6 +65,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -110,6 +119,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel index 7402b72b3..730e42927 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "gimli", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=gimli", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index 94ea8b698..afbc39185 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hashbrown", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hashbrown", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel index 2d7bbdc20..be9008e31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hashbrown", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hashbrown", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel index ec7338bb5..75dff9155 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hermit_abi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hermit-abi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel index fd41b6708..d1691cafd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=humantime", diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel index 210e3b8bb..76739ff91 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "idna", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=idna", diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel index 46639af74..bc6860693 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "indexmap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=indexmap", @@ -52,8 +55,11 @@ rust_library( ) cargo_build_script( - name = "indexmap_build_script", - srcs = glob(["**/*.rs"]), + name = "indexmap_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "serde", "serde-1", @@ -63,8 +69,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -91,6 +99,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "indexmap_build_script", + actual = ":indexmap_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel index 481e6ca9f..a56d0f5ef 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "io_lifetimes", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=io-lifetimes", @@ -69,6 +72,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], @@ -138,6 +147,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], @@ -146,8 +158,11 @@ rust_library( ) cargo_build_script( - name = "io-lifetimes_build_script", - srcs = glob(["**/*.rs"]), + name = "io-lifetimes_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "close", "hermit-abi", @@ -158,8 +173,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -183,6 +200,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "io-lifetimes_build_script", + actual = ":io-lifetimes_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel index 1cfd6291f..84a3f0fb0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "is_terminal", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=is-terminal", @@ -60,6 +63,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], @@ -114,6 +123,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 03377bdeb..467ee0e92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=itertools", diff --git a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel index c874e7d4e..71c5cae88 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=itoa", diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel index 3154b9dc9..a776bec66 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,12 +31,108 @@ rust_library( ), crate_features = [ "default", - "extra_traits", "std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "extra_traits", # aarch64-apple-darwin + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "extra_traits", # aarch64-apple-ios + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "extra_traits", # aarch64-apple-ios-sim + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "extra_traits", # aarch64-fuchsia + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "extra_traits", # aarch64-linux-android + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "extra_traits", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "extra_traits", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "extra_traits", # aarch64-unknown-nto-qnx710 + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "extra_traits", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "extra_traits", # armv7-linux-androideabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "extra_traits", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "extra_traits", # i686-apple-darwin + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "extra_traits", # i686-linux-android + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "extra_traits", # i686-unknown-freebsd + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "extra_traits", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "extra_traits", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "extra_traits", # riscv32imc-unknown-none-elf + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "extra_traits", # riscv64gc-unknown-none-elf + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "extra_traits", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "extra_traits", # thumbv7em-none-eabi + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "extra_traits", # thumbv8m.main-none-eabi + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "extra_traits", # wasm32-unknown-unknown + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "extra_traits", # wasm32-wasi + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "extra_traits", # x86_64-apple-darwin + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "extra_traits", # x86_64-apple-ios + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "extra_traits", # x86_64-fuchsia + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "extra_traits", # x86_64-linux-android + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "extra_traits", # x86_64-unknown-freebsd + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "extra_traits", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "extra_traits", # x86_64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "extra_traits", # x86_64-unknown-none + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=libc", @@ -50,19 +147,118 @@ rust_library( ) cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), + name = "libc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", - "extra_traits", "std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "extra_traits", # aarch64-apple-darwin + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "extra_traits", # aarch64-apple-ios + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "extra_traits", # aarch64-apple-ios-sim + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "extra_traits", # aarch64-fuchsia + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "extra_traits", # aarch64-linux-android + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "extra_traits", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "extra_traits", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "extra_traits", # aarch64-unknown-nto-qnx710 + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "extra_traits", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "extra_traits", # armv7-linux-androideabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "extra_traits", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "extra_traits", # i686-apple-darwin + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "extra_traits", # i686-linux-android + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "extra_traits", # i686-unknown-freebsd + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "extra_traits", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "extra_traits", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "extra_traits", # riscv32imc-unknown-none-elf + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "extra_traits", # riscv64gc-unknown-none-elf + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "extra_traits", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "extra_traits", # thumbv7em-none-eabi + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "extra_traits", # thumbv8m.main-none-eabi + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "extra_traits", # wasm32-unknown-unknown + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "extra_traits", # wasm32-wasi + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "extra_traits", # x86_64-apple-darwin + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "extra_traits", # x86_64-apple-ios + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "extra_traits", # x86_64-fuchsia + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "extra_traits", # x86_64-linux-android + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "extra_traits", # x86_64-unknown-freebsd + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "extra_traits", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "extra_traits", # x86_64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "extra_traits", # x86_64-unknown-none + ], + "//conditions:default": [], + }), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -86,6 +282,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "libc_build_script", + actual = ":libc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel index a1634a238..97edbe88e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "linux_raw_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -28,14 +29,38 @@ rust_library( ], ), crate_features = [ - "errno", "general", "ioctl", "no_std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "errno", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "errno", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "errno", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "errno", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "errno", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "errno", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "errno", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=linux-raw-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel index ee7a2dab1..733fee359 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "linux_raw_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -28,15 +29,45 @@ rust_library( ], ), crate_features = [ - "elf", - "errno", "general", "ioctl", "no_std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "elf", # aarch64-unknown-linux-gnu + "errno", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "elf", # aarch64-unknown-nixos-gnu + "errno", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "elf", # arm-unknown-linux-gnueabi + "errno", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "elf", # armv7-unknown-linux-gnueabi + "errno", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "elf", # i686-unknown-linux-gnu + "errno", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "elf", # x86_64-unknown-linux-gnu + "errno", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "elf", # x86_64-unknown-nixos-gnu + "errno", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=linux-raw-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel index 99c9f5a62..7afd4d234 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=log", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index f35ca4838..287bf9f10 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause -# ]) - rust_library( name = "mach", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=mach", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel index f86724640..bee4bd07c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "memchr", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel index 6963c36c9..db840ec0d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "memfd", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memfd", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel index 22e1bdf74..bbe30d36d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "memoffset", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memoffset", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "memoffset_build_script", - srcs = glob(["**/*.rs"]), + name = "memoffset_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "memoffset_build_script", + actual = ":memoffset_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel index c7cff2b5e..1ed53c2aa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "object", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -43,7 +44,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=object", diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel index 61c6d4df9..d4155cdc0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "once_cell", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=once_cell", diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel index a16962b72..aa2c97e31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel @@ -11,17 +11,18 @@ 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 = "paste", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=paste", @@ -45,14 +48,19 @@ rust_proc_macro( ) cargo_build_script( - name = "paste_build_script", - srcs = glob(["**/*.rs"]), + name = "paste_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "paste_build_script", + actual = ":paste_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel index 5296e610d..abd37dbdb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "percent_encoding", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=percent-encoding", diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel index 92d543535..8c821bdcd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "ppv_lite86", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ppv-lite86", diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel index 4b3c2ab99..f5ffa7899 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=proc-macro2", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "proc-macro2_build_script", - srcs = glob(["**/*.rs"]), + name = "proc-macro2_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "proc-macro", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "proc-macro2_build_script", + actual = ":proc-macro2_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index 32976f245..f7cdddb5c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "psm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=psm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "psm_build_script", - srcs = glob(["**/*.rs"]), + name = "psm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "psm_build_script", + actual = ":psm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel index 0b42ba304..3ad108f8f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=quote", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 851a20a96..b9067b104 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand", @@ -70,6 +73,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -115,6 +124,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index a93e8f636..90a0195e3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand_chacha", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand_chacha", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index 993ff0b8c..b89c60f80 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand_core", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand_core", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel index 19ca0fe4f..b31ecd423 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "regalloc2", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regalloc2", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel index 0f1ae96e0..efdf89bd0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel index e0c48ef50..da56abc92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "regex_automata", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -44,7 +45,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex-automata", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel index 513239e82..36b411c94 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex-syntax", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel index b18377f67..dcb8e9d6a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "rustc_demangle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustc-demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index 0ca3c2402..7bcaa5a87 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "rustc_hash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustc-hash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel index ba217f9cf..01df1d783 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel @@ -11,13 +11,12 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "rustix", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), aliases = select({ "@rules_rust//rust/platform:aarch64-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) @@ -37,6 +36,9 @@ rust_library( "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) }, + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, "@rules_rust//rust/platform:armv7-linux-androideabi": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) }, @@ -101,8 +103,10 @@ rust_library( }), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -119,7 +123,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustix", @@ -162,6 +168,14 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) @@ -259,6 +273,10 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) @@ -268,8 +286,11 @@ rust_library( ) cargo_build_script( - name = "rustix_build_script", - srcs = glob(["**/*.rs"]), + name = "rustix_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "io-lifetimes", @@ -282,8 +303,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -307,6 +330,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "rustix_build_script", + actual = ":rustix_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel index 6cc42ac8a..ffe2b64ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel @@ -11,13 +11,12 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "rustix", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), aliases = select({ "@rules_rust//rust/platform:aarch64-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) @@ -37,18 +36,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) }, - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, "@rules_rust//rust/platform:armv7-linux-androideabi": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:i686-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -61,9 +54,6 @@ rust_library( "@rules_rust//rust/platform:i686-unknown-freebsd": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:i686-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -106,9 +96,6 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:x86_64-unknown-none": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -116,8 +103,10 @@ rust_library( }), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -134,7 +123,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustix", @@ -173,11 +164,16 @@ rust_library( "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) ], "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:armv7-linux-androideabi": [ @@ -186,7 +182,6 @@ rust_library( "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:i686-apple-darwin": [ @@ -207,7 +202,6 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ @@ -270,7 +264,9 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:x86_64-unknown-none": [ @@ -282,8 +278,11 @@ rust_library( ) cargo_build_script( - name = "rustix_build_script", - srcs = glob(["**/*.rs"]), + name = "rustix_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "alloc", "default", @@ -296,8 +295,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -321,6 +322,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "rustix_build_script", + actual = ":rustix_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel index 5119d6444..59399d34a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ryu", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel index 5633e65e1..a71502593 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( proc_macro_deps = [ "@cu__serde_derive-1.0.204//:serde_derive", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde", @@ -54,8 +57,11 @@ rust_library( ) cargo_build_script( - name = "serde_build_script", - srcs = glob(["**/*.rs"]), + name = "serde_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "derive", @@ -66,8 +72,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -91,6 +99,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "serde_build_script", + actual = ":serde_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel index c7966111d..ef5fe8588 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_proc_macro( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde_derive", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel index 39d294432..9d19ca094 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel @@ -11,17 +11,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde_json", @@ -52,8 +55,11 @@ rust_library( ) cargo_build_script( - name = "serde_json_build_script", - srcs = glob(["**/*.rs"]), + name = "serde_json_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -62,8 +68,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -87,6 +95,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "serde_json_build_script", + actual = ":serde_json_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel index 4921aa1db..8f7e3cdc9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "slice_group_by", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=slice-group-by", diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel index 3397610de..f078ae453 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "smallvec", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=smallvec", diff --git a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index c074b9ff4..1555e8f62 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "stable_deref_trait", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=stable_deref_trait", diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel index 91be9241e..0d8dd09e2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -37,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=syn", diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel index c9c6e9199..475bad918 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "target_lexicon", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=target-lexicon", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "target-lexicon_build_script", - srcs = glob(["**/*.rs"]), + name = "target-lexicon_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "std", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -82,6 +90,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "target-lexicon_build_script", + actual = ":target-lexicon_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel index 1854121b3..ccdaaf3f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "termcolor", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=termcolor", diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel index 1fa72ecfb..075c39ee8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "thiserror", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__thiserror-impl-1.0.63//:thiserror_impl", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror", @@ -48,14 +51,19 @@ rust_library( ) cargo_build_script( - name = "thiserror_build_script", - srcs = glob(["**/*.rs"]), + name = "thiserror_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "thiserror_build_script", + actual = ":thiserror_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel index 2d98dc3c9..827631585 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -10,17 +10,18 @@ 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 = "thiserror_impl", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror-impl", diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel index d8ac774ee..ef4c698ca 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Zlib OR Apache-2.0 OR MIT -# ]) - rust_library( name = "tinyvec", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=tinyvec", diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel index 32fcacff9..52641b700 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 OR Zlib -# ]) - rust_library( name = "tinyvec_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=tinyvec_macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel index ff6b2ee31..a48d6d3d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "unicode_bidi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-bidi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel index 5c19c50be..e21e8cd07 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 -# ]) - rust_library( name = "unicode_ident", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-ident", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel index ea0dd99a2..b7d71a5eb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "unicode_normalization", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-normalization", diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel index 7c854205c..cdbc74f57 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "url", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=url", diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel index 3e2371588..747c240ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "uuid", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=uuid", diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel index 7a4157987..e24cea268 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel @@ -10,17 +10,18 @@ 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(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=version_check", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 19e04194d..3eccac75f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "wasi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel index 655f9e3e0..16aa1860f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmparser", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmparser", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel index 7cb296dcf..c4ae22def 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( proc_macro_deps = [ "@cu__paste-1.0.15//:paste", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime", @@ -81,8 +84,11 @@ rust_library( ) cargo_build_script( - name = "wasmtime_build_script", - srcs = glob(["**/*.rs"]), + name = "wasmtime_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "cranelift", ], @@ -90,8 +96,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -115,6 +123,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "wasmtime_build_script", + actual = ":wasmtime_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel index b8eeabdb4..0a6c533c4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_asm_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-asm-macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index 062fd2f86..f2f8f3489 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -12,11 +12,16 @@ package(default_visibility = ["//visibility:public"]) rust_proc_macro( name = "wasmtime_c_api_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -25,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-c-api-macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel index b2056cf48..38458b9dc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_cranelift", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-cranelift", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel index 2d1352338..f588a1bb2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_cranelift_shared", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-cranelift-shared", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel index 1e53a6044..933d5a71f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_environ", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-environ", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel index 60934b449..d8ad49538 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel index 83b67e1c4..fdc0e6aa4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit_debug", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit-debug", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel index 68e105ed2..fe0d52a76 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit_icache_coherence", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit-icache-coherence", @@ -53,6 +56,9 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], @@ -98,6 +104,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel index 809be273f..0e699d624 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_runtime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__paste-1.0.15//:paste", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-runtime", @@ -78,6 +81,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], @@ -131,19 +140,27 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], "//conditions:default": [], }), ) cargo_build_script( - name = "wasmtime-runtime_build_script", - srcs = glob(["**/*.rs"]), + name = "wasmtime-runtime_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -170,6 +187,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "wasmtime-runtime_build_script", + actual = ":wasmtime-runtime_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel index 1c9b5511e..971ecd7d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_types", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-types", diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel index 30665d6b9..7df210fa1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "winapi_util", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-util", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel index d1a45ce0f..1b88e46d6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,17 +31,12 @@ rust_library( crate_features = [ "Win32", "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", - "Win32_System_IO", "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_SystemInformation", @@ -49,7 +45,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel index cb2b42460..df8b32ead 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -46,7 +47,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel index f6235e823..3d68ef606 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_targets", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-targets", @@ -54,6 +57,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel index 8b886b963..eddc343ce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_targets", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-targets", @@ -54,6 +57,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__windows_x86_64_gnu-0.52.6//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__windows_x86_64_gnu-0.52.6//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel index 2d0821395..3ce452b92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_gnullvm_build_script", + actual = ":windows_aarch64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel index a8a97f5d6..ec79e2200 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_gnullvm_build_script", + actual = ":windows_aarch64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel index 350d5206a..ad39bf532 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_msvc_build_script", + actual = ":windows_aarch64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel index b3909e5cd..47ac38a7a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_msvc_build_script", + actual = ":windows_aarch64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel index 85270a149..4d3e79f47 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnu_build_script", + actual = ":windows_i686_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel index daab056e7..e3f0ef486 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnu_build_script", + actual = ":windows_i686_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel index 07c3ff9ce..d89f239b5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnullvm_build_script", + actual = ":windows_i686_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel index 21077404a..b7019c836 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_msvc_build_script", + actual = ":windows_i686_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel index 150b4e9f8..f6e758e5b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_msvc_build_script", + actual = ":windows_i686_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel index 85626006b..aab6efffc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnu_build_script", + actual = ":windows_x86_64_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel index 1b7ee01c9..cbccf337a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnu_build_script", + actual = ":windows_x86_64_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel index 88bcdd72d..a81216ee7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnullvm_build_script", + actual = ":windows_x86_64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel index 68fba5b85..91ac1adff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnullvm_build_script", + actual = ":windows_x86_64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel index 54d214b42..8089f76b8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_msvc_build_script", + actual = ":windows_x86_64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel index 0b219ff1d..fda09849a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_msvc_build_script", + actual = ":windows_x86_64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel index 385c5f643..5bb874604 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT -# ]) - rust_library( name = "zerocopy", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=zerocopy", diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel index ca44749e0..dc6f82dfc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT -# ]) - rust_proc_macro( name = "zerocopy_derive", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=zerocopy-derive", diff --git a/bazel/cargo/wasmtime/remote/alias_rules.bzl b/bazel/cargo/wasmtime/remote/alias_rules.bzl new file mode 100644 index 000000000..14b04c127 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/alias_rules.bzl @@ -0,0 +1,47 @@ +"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable.""" + +load("@rules_cc//cc:defs.bzl", "CcInfo") +load("@rules_rust//rust:rust_common.bzl", "COMMON_PROVIDERS") + +def _transition_alias_impl(ctx): + # `ctx.attr.actual` is a list of 1 item due to the transition + providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS] + if CcInfo in ctx.attr.actual[0]: + providers.append(ctx.attr.actual[0][CcInfo]) + return providers + +def _change_compilation_mode(compilation_mode): + def _change_compilation_mode_impl(_settings, _attr): + return { + "//command_line_option:compilation_mode": compilation_mode, + } + + return transition( + implementation = _change_compilation_mode_impl, + inputs = [], + outputs = [ + "//command_line_option:compilation_mode", + ], + ) + +def _transition_alias_rule(compilation_mode): + return rule( + implementation = _transition_alias_impl, + provides = COMMON_PROVIDERS, + attrs = { + "actual": attr.label( + mandatory = True, + doc = "`rust_library()` target to transition to `compilation_mode=opt`.", + providers = COMMON_PROVIDERS, + cfg = _change_compilation_mode(compilation_mode), + ), + "_allowlist_function_transition": attr.label( + default = "@bazel_tools//tools/allowlists/function_transition_allowlist", + ), + }, + doc = "Transitions a Rust library crate to the `compilation_mode=opt`.", + ) + +transition_alias_dbg = _transition_alias_rule("dbg") +transition_alias_fastbuild = _transition_alias_rule("fastbuild") +transition_alias_opt = _transition_alias_rule("opt") diff --git a/bazel/cargo/wasmtime/remote/crates.bzl b/bazel/cargo/wasmtime/remote/crates.bzl index 27c0e39a4..c2726d29f 100644 --- a/bazel/cargo/wasmtime/remote/crates.bzl +++ b/bazel/cargo/wasmtime/remote/crates.bzl @@ -15,6 +15,11 @@ load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl", _crate_reposi load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") def crate_repositories(): + """Generates repositories for vendored crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( crates_vendor_remote_repository, name = "cu", @@ -22,4 +27,6 @@ def crate_repositories(): defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl"), ) - _crate_repositories() + direct_deps = [struct(repo = "cu", is_dev_dep = False)] + direct_deps.extend(_crate_repositories()) + return direct_deps diff --git a/bazel/cargo/wasmtime/remote/defs.bzl b/bazel/cargo/wasmtime/remote/defs.bzl index fc84e568a..fec029861 100644 --- a/bazel/cargo/wasmtime/remote/defs.bzl +++ b/bazel/cargo/wasmtime/remote/defs.bzl @@ -296,10 +296,10 @@ def aliases( _NORMAL_DEPENDENCIES = { "bazel/cargo/wasmtime": { _COMMON_CONDITION: { - "anyhow": "@cu__anyhow-1.0.86//:anyhow", - "env_logger": "@cu__env_logger-0.10.2//:env_logger", - "once_cell": "@cu__once_cell-1.19.0//:once_cell", - "wasmtime": "@cu__wasmtime-9.0.4//:wasmtime", + "anyhow": Label("@cu__anyhow-1.0.86//:anyhow"), + "env_logger": Label("@cu__env_logger-0.10.2//:env_logger"), + "once_cell": Label("@cu__once_cell-1.19.0//:once_cell"), + "wasmtime": Label("@cu__wasmtime-9.0.4//:wasmtime"), }, }, } @@ -324,7 +324,7 @@ _NORMAL_DEV_ALIASES = { _PROC_MACRO_DEPENDENCIES = { "bazel/cargo/wasmtime": { _COMMON_CONDITION: { - "wasmtime-c-api-macros": "@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros", + "wasmtime-c-api-macros": Label("@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros"), }, }, } @@ -365,41 +365,79 @@ _BUILD_PROC_MACRO_ALIASES = { } _CONDITIONS = { + "aarch64-apple-darwin": ["@rules_rust//rust/platform:aarch64-apple-darwin"], + "aarch64-apple-ios": ["@rules_rust//rust/platform:aarch64-apple-ios"], + "aarch64-apple-ios-sim": ["@rules_rust//rust/platform:aarch64-apple-ios-sim"], + "aarch64-fuchsia": ["@rules_rust//rust/platform:aarch64-fuchsia"], + "aarch64-linux-android": ["@rules_rust//rust/platform:aarch64-linux-android"], "aarch64-pc-windows-gnullvm": [], + "aarch64-pc-windows-msvc": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], + "aarch64-unknown-linux-gnu": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu"], + "aarch64-unknown-nixos-gnu": ["@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"], + "aarch64-unknown-nto-qnx710": ["@rules_rust//rust/platform:aarch64-unknown-nto-qnx710"], + "arm-unknown-linux-gnueabi": ["@rules_rust//rust/platform:arm-unknown-linux-gnueabi"], + "armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"], + "armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"], "cfg(all(any(target_arch = \"x86_64\", target_arch = \"arm64ec\"), target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], - "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], - "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], - "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@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:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], - "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@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:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@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:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@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:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(all(target_arch = \"aarch64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], "cfg(all(target_arch = \"x86\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], - "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(all(target_arch = \"x86_64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], "cfg(any())": [], "cfg(any(target_arch = \"s390x\", target_arch = \"riscv64\"))": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu"], - "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@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-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-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-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(any(target_os = \"macos\", target_os = \"ios\"))": ["@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:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios"], - "cfg(any(unix, target_os = \"wasi\"))": ["@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-fuchsia", "@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:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@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"], - "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@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-pc-windows-msvc", "@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:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], - "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-fuchsia", "@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:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(any(unix, target_os = \"wasi\"))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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-pc-windows-msvc", "@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:riscv64gc-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-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(target_os = \"hermit\")": [], "cfg(target_os = \"macos\")": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin"], "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], - "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-fuchsia", "@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-fuchsia", "@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"], + "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-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@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-fuchsia", "@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", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-apple-darwin": ["@rules_rust//rust/platform:i686-apple-darwin"], + "i686-linux-android": ["@rules_rust//rust/platform:i686-linux-android"], "i686-pc-windows-gnullvm": [], + "i686-pc-windows-msvc": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], + "i686-unknown-freebsd": ["@rules_rust//rust/platform:i686-unknown-freebsd"], + "i686-unknown-linux-gnu": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "powerpc-unknown-linux-gnu": ["@rules_rust//rust/platform:powerpc-unknown-linux-gnu"], + "riscv32imc-unknown-none-elf": ["@rules_rust//rust/platform:riscv32imc-unknown-none-elf"], + "riscv64gc-unknown-none-elf": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf"], + "s390x-unknown-linux-gnu": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"], + "thumbv7em-none-eabi": ["@rules_rust//rust/platform:thumbv7em-none-eabi"], + "thumbv8m.main-none-eabi": ["@rules_rust//rust/platform:thumbv8m.main-none-eabi"], + "wasm32-unknown-unknown": ["@rules_rust//rust/platform:wasm32-unknown-unknown"], + "wasm32-wasi": ["@rules_rust//rust/platform:wasm32-wasi"], + "x86_64-apple-darwin": ["@rules_rust//rust/platform:x86_64-apple-darwin"], + "x86_64-apple-ios": ["@rules_rust//rust/platform:x86_64-apple-ios"], + "x86_64-fuchsia": ["@rules_rust//rust/platform:x86_64-fuchsia"], + "x86_64-linux-android": ["@rules_rust//rust/platform:x86_64-linux-android"], "x86_64-pc-windows-gnullvm": [], + "x86_64-pc-windows-msvc": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "x86_64-unknown-freebsd": ["@rules_rust//rust/platform:x86_64-unknown-freebsd"], + "x86_64-unknown-linux-gnu": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "x86_64-unknown-nixos-gnu": ["@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "x86_64-unknown-none": ["@rules_rust//rust/platform:x86_64-unknown-none"], } ############################################################################### def crate_repositories(): - """A macro for defining repositories for all generated crates""" + """A macro for defining repositories for all generated crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( http_archive, name = "cu__addr2line-0.19.0", @@ -1363,7 +1401,7 @@ def crate_repositories(): maybe( new_git_repository, name = "cu__wasmtime-c-api-macros-0.0.0", - tag = "v9.0.3", + commit = "271b605e8d3d44c5d0a39bb4e65c3efb3869ff74", init_submodules = True, remote = "https://github.com/bytecodealliance/wasmtime", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), @@ -1669,3 +1707,11 @@ def crate_repositories(): strip_prefix = "zerocopy-derive-0.7.35", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.zerocopy-derive-0.7.35.bazel"), ) + + return [ + struct(repo = "cu__anyhow-1.0.86", is_dev_dep = False), + struct(repo = "cu__env_logger-0.10.2", is_dev_dep = False), + struct(repo = "cu__once_cell-1.19.0", is_dev_dep = False), + struct(repo = "cu__wasmtime-9.0.4", is_dev_dep = False), + struct(repo = "cu__wasmtime-c-api-macros-0.0.0", is_dev_dep = False), + ] diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 33237431f..7027774dc 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -37,9 +37,9 @@ def proxy_wasm_cpp_host_dependencies(): extra_target_triples = [ "aarch64-unknown-linux-gnu", "wasm32-unknown-unknown", - "wasm32-wasi", + "wasm32-wasi", # TODO: Change to wasm32-wasip1 once https://github.com/bazelbuild/rules_rust/issues/2782 is fixed ], - version = "1.68.0", + version = "1.79.0", ) rust_repository_set( name = "rust_linux_s390x", @@ -48,7 +48,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.68.0", + version = "1.79.0", ) crate_universe_dependencies(bootstrap = True) diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch index 0f3e0d487..a9a57c931 100644 --- a/bazel/external/rules_rust.patch +++ b/bazel/external/rules_rust.patch @@ -1,4 +1,5 @@ # https://github.com/bazelbuild/rules_rust/pull/1315 + diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl index bfd96ed9..d7e38658 100644 --- a/rust/private/rustc.bzl diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index a22c3b687..2586ed21b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -102,7 +102,6 @@ def proxy_wasm_cpp_host_repositories(): patch_args = ["-p1"], ) - # Core deps. Keep them updated. # Note: we depend on Abseil via rules_fuzzing. Remove this pin when we update that. From 51df141bb2a44f18da46b9f002c8fcd3d1221472 Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Fri, 16 Aug 2024 17:01:47 +0000 Subject: [PATCH 3/4] rust_oom -> rg_oom Signed-off-by: Keith Mattix II --- test/runtime_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 876908515..16b4f763a 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -142,7 +142,7 @@ TEST_P(TestVm, WasmMemoryLimit) { // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); - EXPECT_TRUE(host->isErrorLogged("rust_oom")); + EXPECT_TRUE(host->isErrorLogged("rg_oom")); EXPECT_TRUE(host->isErrorLogged(" - alloc::alloc::handle_alloc_error")); } } From 59069e75ba00e9dcf66d8136212945a670a3b85d Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Fri, 16 Aug 2024 17:39:17 +0000 Subject: [PATCH 4/4] Change rust version Signed-off-by: Keith Mattix II --- bazel/dependencies.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 7027774dc..7b5c5fcbd 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -39,7 +39,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", # TODO: Change to wasm32-wasip1 once https://github.com/bazelbuild/rules_rust/issues/2782 is fixed ], - version = "1.79.0", + version = "1.77.2", ) rust_repository_set( name = "rust_linux_s390x", @@ -48,7 +48,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.79.0", + version = "1.77.2", ) crate_universe_dependencies(bootstrap = True)