| 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.5.17//:clap", |
| "@rules_rust_bindgen__clap_complete-4.5.26//:clap_complete", |
| "@rules_rust_bindgen__env_logger-0.10.2//:env_logger", |
| "@rules_rust_bindgen__log-0.4.22//:log", |
| "@rules_rust_bindgen__proc-macro2-1.0.86//:proc_macro2", |
| "@rules_rust_bindgen__shlex-1.3.0//:shlex", |
| ], |
| ) |