mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add proc-macro capabilities to QL tests
This adds the possibility to add a special `proc_macro.rs` source file to QL tests, which will be generated into a `proc_macro` crate the usual `lib` crate depends on. This allow to define procedural macros in QL tests, and is here used to move the `macro-expansion` integration test to be a language test instead. As the generated manifests involved were starting to get a bit complex, they are now generated from a `mustache` template.
This commit is contained in:
1
misc/bazel/3rdparty/tree_sitter_extractors_deps/defs.bzl
generated
vendored
1
misc/bazel/3rdparty/tree_sitter_extractors_deps/defs.bzl
generated
vendored
@@ -334,6 +334,7 @@ _NORMAL_DEPENDENCIES = {
|
||||
"figment": Label("@vendor_ts__figment-0.10.19//:figment"),
|
||||
"glob": Label("@vendor_ts__glob-0.3.2//:glob"),
|
||||
"itertools": Label("@vendor_ts__itertools-0.14.0//:itertools"),
|
||||
"mustache": Label("@vendor_ts__mustache-0.9.0//:mustache"),
|
||||
"num-traits": Label("@vendor_ts__num-traits-0.2.19//:num_traits"),
|
||||
"ra_ap_base_db": Label("@vendor_ts__ra_ap_base_db-0.0.273//:ra_ap_base_db"),
|
||||
"ra_ap_cfg": Label("@vendor_ts__ra_ap_cfg-0.0.273//:ra_ap_cfg"),
|
||||
|
||||
Reference in New Issue
Block a user