load("@rules_rust//rust:defs.bzl", "rust_binary") load("@rules_rust_bindgen//:repositories.bzl", "BINDGEN_VERSION") package(default_visibility = ["//visibility:public"]) rust_binary( name = "bindgen-cli", srcs = glob(["**/*.rs"]), compile_data = glob( include = ["**"], exclude = [ "**/* *", "BUILD", "BUILD.bazel", "WORKSPACE", "WORKSPACE.bazel", ], ), crate_features = [ "runtime", ], crate_root = "main.rs", edition = "2018", rustc_flags = ["--cap-lints=allow"], tags = [ "cargo-bazel", "crate-name=bindgen-cli", "manual", "noclippy", "norustfmt", ], version = BINDGEN_VERSION, # This list is produced by adding the contents of https://github.com/rust-lang/rust-bindgen/blob/main/bindgen-cli/Cargo.toml # to `@rules_rust_bindgen//3rdparty:crates_vendor`, rendering dependencies, and updating the deps deps = [ "@rules_rust_bindgen_deps__bindgen-{}//:bindgen".format(BINDGEN_VERSION), "@rules_rust_bindgen_deps__clap-4.5.32//:clap", "@rules_rust_bindgen_deps__clap_complete-4.5.46//:clap_complete", "@rules_rust_bindgen_deps__env_logger-0.10.2//:env_logger", "@rules_rust_bindgen_deps__log-0.4.26//:log", "@rules_rust_bindgen_deps__proc-macro2-1.0.94//:proc_macro2", "@rules_rust_bindgen_deps__shlex-1.3.0//:shlex", ], )