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