xref: /aosp_15_r20/external/bazelbuild-rules_rust/wasm_bindgen/3rdparty/BUILD.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1*d4726bddSHONG Yifanload("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2*d4726bddSHONG Yifanload("//crate_universe:defs.bzl", "crate", "crates_vendor")
3*d4726bddSHONG Yifanload("//wasm_bindgen:repositories.bzl", "WASM_BINDGEN_VERSION")
4*d4726bddSHONG Yifan
5*d4726bddSHONG Yifanexports_files([
6*d4726bddSHONG Yifan    "BUILD.wasm-bindgen-cli.bazel",
7*d4726bddSHONG Yifan])
8*d4726bddSHONG Yifan
9*d4726bddSHONG Yifancrates_vendor(
10*d4726bddSHONG Yifan    name = "crates_vendor",
11*d4726bddSHONG Yifan    annotations = {
12*d4726bddSHONG Yifan        "log": [crate.annotation(
13*d4726bddSHONG Yifan            rustc_flags = [
14*d4726bddSHONG Yifan                "--cfg=atomic_cas",
15*d4726bddSHONG Yifan                "--cfg=use_std",
16*d4726bddSHONG Yifan            ],
17*d4726bddSHONG Yifan            version = "<5",
18*d4726bddSHONG Yifan        )],
19*d4726bddSHONG Yifan        "proc-macro2": [crate.annotation(
20*d4726bddSHONG Yifan            rustc_flags = ["--cfg=use_proc_macro"],
21*d4726bddSHONG Yifan        )],
22*d4726bddSHONG Yifan        "unicase": [crate.annotation(
23*d4726bddSHONG Yifan            rustc_flags = [
24*d4726bddSHONG Yifan                "--cfg=__unicase__iter_cmp",
25*d4726bddSHONG Yifan                "--cfg=__unicase__defauler_hasher",
26*d4726bddSHONG Yifan            ],
27*d4726bddSHONG Yifan        )],
28*d4726bddSHONG Yifan    },
29*d4726bddSHONG Yifan    cargo_lockfile = "Cargo.Bazel.lock",
30*d4726bddSHONG Yifan    manifests = ["@rules_rust_wasm_bindgen_cli//:Cargo.toml"],
31*d4726bddSHONG Yifan    mode = "remote",
32*d4726bddSHONG Yifan    packages = {
33*d4726bddSHONG Yifan        "wasm-bindgen": crate.spec(
34*d4726bddSHONG Yifan            version = WASM_BINDGEN_VERSION,
35*d4726bddSHONG Yifan        ),
36*d4726bddSHONG Yifan    },
37*d4726bddSHONG Yifan    repository_name = "rules_rust_wasm_bindgen",
38*d4726bddSHONG Yifan    tags = ["manual"],
39*d4726bddSHONG Yifan)
40*d4726bddSHONG Yifan
41*d4726bddSHONG Yifanalias(
42*d4726bddSHONG Yifan    name = "wasm_bindgen_cli",
43*d4726bddSHONG Yifan    actual = "@rules_rust_wasm_bindgen_cli",
44*d4726bddSHONG Yifan    tags = ["manual"],
45*d4726bddSHONG Yifan    visibility = ["//visibility:public"],
46*d4726bddSHONG Yifan)
47*d4726bddSHONG Yifan
48*d4726bddSHONG Yifanalias(
49*d4726bddSHONG Yifan    name = "wasm_bindgen",
50*d4726bddSHONG Yifan    actual = "//wasm_bindgen/3rdparty/crates:wasm-bindgen",
51*d4726bddSHONG Yifan    visibility = ["//visibility:public"],
52*d4726bddSHONG Yifan)
53*d4726bddSHONG Yifan
54*d4726bddSHONG Yifanbzl_library(
55*d4726bddSHONG Yifan    name = "bzl_lib",
56*d4726bddSHONG Yifan    srcs = [
57*d4726bddSHONG Yifan        "//wasm_bindgen/3rdparty/crates:crates.bzl",
58*d4726bddSHONG Yifan        "//wasm_bindgen/3rdparty/crates:defs.bzl",
59*d4726bddSHONG Yifan    ],
60*d4726bddSHONG Yifan    visibility = ["//wasm_bindgen:__pkg__"],
61*d4726bddSHONG Yifan)
62