fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

UebelAndreBump various dependencies (#3002)43e5279e

cleanup
1.5 KiB52 linesraw
1load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//rust/private:rust_analyzer.bzl", "rust_analyzer_detect_sysroot")
3load("//rust/private:rustc.bzl", "is_proc_macro_dep", "is_proc_macro_dep_enabled")
4load("//rust/private:stamp.bzl", "stamp_build_setting")
5
6bzl_library(
7    name = "bazel_tools_bzl_lib",
8    srcs = ["@bazel_tools//tools:bzl_srcs"],
9)
10
11bzl_library(
12    name = "rules_cc_bzl_lib",
13    srcs = ["@rules_cc//cc:bzl_srcs"],
14)
15
16bzl_library(
17    name = "bzl_lib",
18    srcs = glob(["**/*.bzl"]),
19    visibility = ["//rust:__subpackages__"],
20    deps = [
21        ":bazel_tools_bzl_lib",
22        ":rules_cc_bzl_lib",
23        "//rust/platform:bzl_lib",
24        "@bazel_skylib//lib:paths",
25        "@bazel_skylib//rules:common_settings",
26    ],
27)
28
29stamp_build_setting(name = "stamp")
30
31# This setting may be used to identify dependencies of proc-macro-s.
32# This feature is only enabled if `is_proc_macro_dep_enabled` is true.
33# Its value controls the BAZEL_RULES_RUST_IS_PROC_MACRO_DEP environment variable
34# made available to the rustc invocation.
35is_proc_macro_dep(
36    name = "is_proc_macro_dep",
37    build_setting_default = False,
38    visibility = ["//visibility:public"],
39)
40
41# This setting enables the feature to identify dependencies of proc-macro-s,
42# see `is_proc_macro_dep`.
43is_proc_macro_dep_enabled(
44    name = "is_proc_macro_dep_enabled",
45    build_setting_default = False,
46    visibility = ["//visibility:public"],
47)
48
49rust_analyzer_detect_sysroot(
50    name = "rust_analyzer_detect_sysroot",
51    visibility = ["//visibility:public"],
52)