mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Since we dropped checked in toolchain files for tests requiring nightly, the `setup.sh` script was not doing its job of setting up the toolchains and the `rust-src` component, occasionally leading to test failures.
26 lines
674 B
Python
26 lines
674 B
Python
load("//misc/bazel:rust.bzl", "codeql_rust_binary")
|
|
load("//misc/bazel/3rdparty/tree_sitter_extractors_deps:defs.bzl", "aliases", "all_crate_deps")
|
|
|
|
exports_files(["Cargo.toml"])
|
|
|
|
codeql_rust_binary(
|
|
name = "extractor",
|
|
srcs = glob(["src/**/*.rs"]),
|
|
aliases = aliases(),
|
|
compile_data = [
|
|
"src/qltest_cargo.mustache",
|
|
"src/nightly-toolchain/rust-toolchain.toml",
|
|
],
|
|
proc_macro_deps = all_crate_deps(
|
|
proc_macro = True,
|
|
) + [
|
|
"//rust/extractor/macros",
|
|
],
|
|
visibility = ["//rust:__subpackages__"],
|
|
deps = all_crate_deps(
|
|
normal = True,
|
|
) + [
|
|
"//shared/tree-sitter-extractor",
|
|
],
|
|
)
|