mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
Cargo/bazel: Per-extractor cargo setup.
This commit is contained in:
@@ -3,6 +3,11 @@ load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files([
|
||||
"Cargo.toml",
|
||||
"Cargo.lock",
|
||||
])
|
||||
|
||||
alias(
|
||||
name = "dbscheme",
|
||||
actual = "//ruby/ql/lib:dbscheme",
|
||||
|
||||
BIN
ruby/Cargo.lock
generated
Normal file
BIN
ruby/Cargo.lock
generated
Normal file
Binary file not shown.
6
ruby/Cargo.toml
Normal file
6
ruby/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Workspace for the Ruby extractor
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"extractor",
|
||||
]
|
||||
@@ -1,19 +1,24 @@
|
||||
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(),
|
||||
proc_macro_deps = all_crate_deps(
|
||||
proc_macro = True,
|
||||
),
|
||||
proc_macro_deps = [],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = all_crate_deps(
|
||||
normal = True,
|
||||
) + [
|
||||
deps = [
|
||||
"//misc/bazel/3rdparty/ruby_deps:clap",
|
||||
"//misc/bazel/3rdparty/ruby_deps:encoding",
|
||||
"//misc/bazel/3rdparty/ruby_deps:lazy_static",
|
||||
"//misc/bazel/3rdparty/ruby_deps:rayon",
|
||||
"//misc/bazel/3rdparty/ruby_deps:regex",
|
||||
"//misc/bazel/3rdparty/ruby_deps:serde_json",
|
||||
"//misc/bazel/3rdparty/ruby_deps:tracing",
|
||||
"//misc/bazel/3rdparty/ruby_deps:tracing-subscriber",
|
||||
"//misc/bazel/3rdparty/ruby_deps:tree-sitter",
|
||||
"//misc/bazel/3rdparty/ruby_deps:tree-sitter-embedded-template",
|
||||
"//misc/bazel/3rdparty/ruby_deps:tree-sitter-ruby",
|
||||
"//shared/tree-sitter-extractor",
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user