fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
43e5279e
main
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 ( 7name = "bazel_tools_bzl_lib" , 8srcs = [ "@bazel_tools//tools:bzl_srcs" ], 9) 10 11bzl_library ( 12name = "rules_cc_bzl_lib" , 13srcs = [ "@rules_cc//cc:bzl_srcs" ], 14) 15 16bzl_library ( 17name = "bzl_lib" , 18srcs = glob ([ "**/*.bzl" ]), 19visibility = [ "//rust:__subpackages__" ], 20deps = [ 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 ( 36name = "is_proc_macro_dep" , 37build_setting_default = False , 38visibility = [ "//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 ( 44name = "is_proc_macro_dep_enabled" , 45build_setting_default = False , 46visibility = [ "//visibility:public" ], 47) 48 49rust_analyzer_detect_sysroot ( 50name = "rust_analyzer_detect_sysroot" , 51visibility = [ "//visibility:public" ], 52)