fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
813669bc
patching
1load ( "@bazel_skylib//:bzl_library.bzl" , "bzl_library" ) 2load ( "//bindgen:repositories.bzl" , "BINDGEN_VERSION" ) 3load ( "//crate_universe:defs.bzl" , "crate" , "crates_vendor" ) 4 5_BINDGEN_CLI_PACKAGES = { 6"clap" : crate . spec ( 7version = "4.3.3" , 8), 9"clap_complete" : crate . spec ( 10version = "4.3.1" , 11), 12"env_logger" : crate . spec ( 13version = "0.10.0" , 14), 15} 16 17crates_vendor ( 18name = "crates_vendor" , 19annotations = { 20"bindgen" : [ crate . annotation ( 21gen_build_script = True , 22)], 23"clang-sys" : [ crate . annotation ( 24gen_build_script = True , 25)], 26"libc" : [ crate . annotation ( 27gen_build_script = True , 28)], 29"rustix" : [ crate . annotation ( 30gen_build_script = True , 31)], 32"winapi" : [ crate . annotation ( 33gen_build_script = True , 34)], 35}, 36cargo_lockfile = "Cargo.Bazel.lock" , 37generate_build_scripts = False , 38mode = "remote" , 39packages = dict ({ 40"bindgen" : crate . spec ( 41default_features = False , 42features = [ "runtime" ], 43version = BINDGEN_VERSION , 44), 45"bindgen-cli" : crate . spec ( 46default_features = False , 47features = [ "runtime" ], 48version = BINDGEN_VERSION , 49), 50"clang-sys" : crate . spec ( 51# Should match the version of llvm-project being used. 52features = [ "clang_14_0" ], 53version = "1.6.1" , 54), 55}. items () + _BINDGEN_CLI_PACKAGES . items ()), 56repository_name = "rules_rust_bindgen" , 57tags = [ "manual" ], 58) 59 60alias ( 61name = "bindgen" , 62actual = "@rules_rust_bindgen__bindgen-cli-{}//:bindgen-cli" . format ( BINDGEN_VERSION ), 63tags = [ "manual" ], 64visibility = [ "//visibility:public" ], 65) 66 67bzl_library ( 68name = "bzl_lib" , 69srcs = [ 70"//bindgen/3rdparty/crates:crates.bzl" , 71"//bindgen/3rdparty/crates:defs.bzl" , 72], 73visibility = [ "//bindgen:__pkg__" ], 74)