fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
2bad96d9
cleanup
1load ( "@bazel_skylib//:bzl_library.bzl" , "bzl_library" ) 2load ( "@rules_rust//crate_universe:defs.bzl" , "crate" , "crates_vendor" ) 3load ( "//:repositories.bzl" , "BINDGEN_VERSION" ) 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"winapi" : [ crate . annotation ( 30gen_build_script = True , 31)], 32}, 33cargo_lockfile = "Cargo.Bazel.lock" , 34generate_build_scripts = False , 35mode = "remote" , 36packages = dict ({ 37"bindgen" : crate . spec ( 38default_features = False , 39features = [ "runtime" ], 40version = BINDGEN_VERSION , 41), 42"bindgen-cli" : crate . spec ( 43default_features = False , 44features = [ "runtime" ], 45version = BINDGEN_VERSION , 46), 47"clang-sys" : crate . spec ( 48# Should match the version of llvm-project being used. 49features = [ "clang_14_0" ], 50version = "1.6.1" , 51), 52}. items () + _BINDGEN_CLI_PACKAGES . items ()), 53repository_name = "rules_rust_bindgen_deps" , 54tags = [ "manual" ], 55) 56 57alias ( 58name = "bindgen" , 59actual = "@rules_rust_bindgen__bindgen-cli-{}//:bindgen-cli" . format ( BINDGEN_VERSION ), 60tags = [ "manual" ], 61visibility = [ "//visibility:public" ], 62) 63 64bzl_library ( 65name = "bzl_lib" , 66srcs = [ 67"//3rdparty/crates:crates.bzl" , 68"//3rdparty/crates:defs.bzl" , 69], 70visibility = [ "//:__pkg__" ], 71)