fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
f91b186e
patching
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 = "bzl_lib" , 8srcs = glob ([ "**/*.bzl" ]), 9visibility = [ "//rust:__subpackages__" ], 10deps = [ "//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 ( 20name = "is_proc_macro_dep" , 21build_setting_default = False , 22visibility = [ "//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 ( 28name = "is_proc_macro_dep_enabled" , 29build_setting_default = False , 30visibility = [ "//visibility:public" ], 31) 32 33rust_analyzer_detect_sysroot ( 34name = "rust_analyzer_detect_sysroot" , 35visibility = [ "//visibility:public" ], 36)