mirror of
https://github.com/github/codeql.git
synced 2026-07-22 19:52:02 +02:00
For type checking rules, we need to be able to load schemas (so we know what to check against). However, since we can't have yeast-macros depending on yeast (where the schema-handling code currently lives) as this would introduce a circular dependency, we instead split the schema-related code into its own yeast-schema crate.
21 lines
501 B
Python
21 lines
501 B
Python
load("@rules_rust//rust:defs.bzl", "rust_library")
|
|
load("//misc/bazel/3rdparty/tree_sitter_extractors_deps:defs.bzl", "aliases", "all_crate_deps")
|
|
|
|
exports_files(["Cargo.toml"])
|
|
|
|
rust_library(
|
|
name = "yeast",
|
|
srcs = glob(
|
|
["src/**/*.rs"],
|
|
exclude = ["src/bin/**"],
|
|
),
|
|
aliases = aliases(),
|
|
proc_macro_deps = [
|
|
"//shared/yeast-macros",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = all_crate_deps() + [
|
|
"//shared/yeast-schema",
|
|
],
|
|
)
|