xref: /aosp_15_r20/external/bazelbuild-rules_rust/wasm_bindgen/3rdparty/BUILD.wasm-bindgen-cli.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1load("@rules_rust//rust:defs.bzl", "rust_binary")
2load("@rules_rust//wasm_bindgen:repositories.bzl", "WASM_BINDGEN_VERSION")
3load("@rules_rust//wasm_bindgen/3rdparty/crates:defs.bzl", "aliases", "all_crate_deps")
4
5package(default_visibility = ["//visibility:public"])
6
7exports_files([
8    "Cargo.toml",
9    "Cargo.lock",
10])
11
12# TODO: Comment on bootstrapping
13rust_binary(
14    name = "wasm-bindgen-cli",
15    srcs = glob(["**/*.rs"]),
16    aliases = aliases(),
17    crate_features = [
18    ],
19    crate_root = "src/bin/wasm-bindgen.rs",
20    data = [],
21    edition = "2018",
22    proc_macro_deps = all_crate_deps(proc_macro = True),
23    rustc_flags = [
24        # Don't produce warnings for this crate
25        "--cap-lints=allow",
26    ],
27    version = WASM_BINDGEN_VERSION,
28    deps = all_crate_deps(),
29)
30
31alias(
32    name = "rules_rust_wasm_bindgen_cli",
33    actual = ":wasm-bindgen-cli",
34    tags = ["manual"],
35)
36