fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

UebelAndreUpdate wasm_bindgen to use crate universe. (#1398)97264b79

0.11.0
887 B34 linesraw
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])
10
11# TODO: Comment on bootstrapping
12rust_binary(
13    name = "wasm-bindgen-cli",
14    srcs = glob(["**/*.rs"]),
15    aliases = aliases(),
16    crate_features = [
17    ],
18    crate_root = "src/bin/wasm-bindgen.rs",
19    data = [],
20    edition = "2018",
21    proc_macro_deps = all_crate_deps(proc_macro = True),
22    rustc_flags = [
23        # Don't produce warnings for this crate
24        "--cap-lints=allow",
25    ],
26    version = WASM_BINDGEN_VERSION,
27    deps = all_crate_deps(),
28)
29
30alias(
31    name = "rules_rust_wasm_bindgen_cli",
32    actual = ":wasm-bindgen-cli",
33    tags = ["manual"],
34)