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 = "bzl_lib", 8 srcs = glob(["**/*.bzl"]), 9 visibility = ["//rust:__subpackages__"], 10 deps = ["//rust/platform:bzl_lib"], 11) 12 13stamp_build_setting(name = "stamp") 14 15# This setting may be used to identify dependencies of proc-macro-s. 16# This feature is only enabled if `is_proc_macro_dep_enabled` is true. 17# Its value controls the BAZEL_RULES_RUST_IS_PROC_MACRO_DEP environment variable 18# made available to the rustc invocation. 19is_proc_macro_dep( 20 name = "is_proc_macro_dep", 21 build_setting_default = False, 22 visibility = ["//visibility:public"], 23) 24 25# This setting enables the feature to identify dependencies of proc-macro-s, 26# see `is_proc_macro_dep`. 27is_proc_macro_dep_enabled( 28 name = "is_proc_macro_dep_enabled", 29 build_setting_default = False, 30 visibility = ["//visibility:public"], 31) 32 33rust_analyzer_detect_sysroot( 34 name = "rust_analyzer_detect_sysroot", 35 visibility = ["//visibility:public"], 36) 37