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