mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
We've been observing some performance issues using crate_universe on CI. Therefore, we're moving to vendor the auto-generated BUILD files in our repository. This should provide a nice speed boost, while getting rid of the complexity of the "rust cache" job we've been using when we had a lot of git dependencies. This PR includes a vendor script, and I'll put up a CI job internally that runs that vendor script on Cargo.toml and Cargo.lock changes, to check that the vendored files are in sync.
142 lines
4.7 KiB
Plaintext
Generated
142 lines
4.7 KiB
Plaintext
Generated
###############################################################################
|
|
# @generated
|
|
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
|
|
# regenerate this file, run the following:
|
|
#
|
|
# bazel run @@//misc/bazel/3rdparty:vendor_tree_sitter_extractors
|
|
###############################################################################
|
|
|
|
load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
|
|
load("@rules_rust//rust:defs.bzl", "rust_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
rust_library(
|
|
name = "wasm_bindgen_shared",
|
|
srcs = glob(
|
|
include = ["**/*.rs"],
|
|
allow_empty = True,
|
|
),
|
|
compile_data = glob(
|
|
include = ["**"],
|
|
allow_empty = True,
|
|
exclude = [
|
|
"**/* *",
|
|
".tmp_git_root/**/*",
|
|
"BUILD",
|
|
"BUILD.bazel",
|
|
"WORKSPACE",
|
|
"WORKSPACE.bazel",
|
|
],
|
|
),
|
|
crate_root = "src/lib.rs",
|
|
edition = "2021",
|
|
rustc_flags = [
|
|
"--cap-lints=allow",
|
|
],
|
|
tags = [
|
|
"cargo-bazel",
|
|
"crate-name=wasm-bindgen-shared",
|
|
"manual",
|
|
"noclippy",
|
|
"norustfmt",
|
|
],
|
|
target_compatible_with = select({
|
|
"@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: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-nixos-gnu": [],
|
|
"@rules_rust//rust/platform:x86_64-unknown-none": [],
|
|
"//conditions:default": ["@platforms//:incompatible"],
|
|
}),
|
|
version = "0.2.95",
|
|
deps = [
|
|
"@vendor__wasm-bindgen-shared-0.2.95//:build_script_build",
|
|
],
|
|
)
|
|
|
|
cargo_build_script(
|
|
name = "_bs",
|
|
srcs = glob(
|
|
include = ["**/*.rs"],
|
|
allow_empty = True,
|
|
),
|
|
compile_data = glob(
|
|
include = ["**"],
|
|
allow_empty = True,
|
|
exclude = [
|
|
"**/* *",
|
|
"**/*.rs",
|
|
".tmp_git_root/**/*",
|
|
"BUILD",
|
|
"BUILD.bazel",
|
|
"WORKSPACE",
|
|
"WORKSPACE.bazel",
|
|
],
|
|
),
|
|
crate_name = "build_script_build",
|
|
crate_root = "build.rs",
|
|
data = glob(
|
|
include = ["**"],
|
|
allow_empty = True,
|
|
exclude = [
|
|
"**/* *",
|
|
".tmp_git_root/**/*",
|
|
"BUILD",
|
|
"BUILD.bazel",
|
|
"WORKSPACE",
|
|
"WORKSPACE.bazel",
|
|
],
|
|
),
|
|
edition = "2021",
|
|
links = "wasm_bindgen",
|
|
pkg_name = "wasm-bindgen-shared",
|
|
rustc_flags = [
|
|
"--cap-lints=allow",
|
|
],
|
|
tags = [
|
|
"cargo-bazel",
|
|
"crate-name=wasm-bindgen-shared",
|
|
"manual",
|
|
"noclippy",
|
|
"norustfmt",
|
|
],
|
|
version = "0.2.95",
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
alias(
|
|
name = "build_script_build",
|
|
actual = ":_bs",
|
|
tags = ["manual"],
|
|
)
|