load("@rules_rust//bindgen:repositories.bzl", "BINDGEN_VERSION") load("@rules_rust//rust:defs.bzl", "rust_binary") 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__bindgen-{}//:bindgen".format(BINDGEN_VERSION), "@rules_rust_bindgen__clap-4.3.3//:clap", "@rules_rust_bindgen__clap_complete-4.3.1//:clap_complete", "@rules_rust_bindgen__env_logger-0.10.0//:env_logger", "@rules_rust_bindgen__log-0.4.19//:log", "@rules_rust_bindgen__shlex-1.1.0//:shlex", ], )