| load("@bazel_skylib//:bzl_library.bzl", "bzl_library") |
| load("//wasm_bindgen:wasm_bindgen.bzl", "rust_wasm_bindgen_toolchain") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| toolchain_type(name = "wasm_bindgen_toolchain") |
| |
| bzl_library( |
| name = "bzl_lib", |
| srcs = glob(["**/*.bzl"]) + ["//wasm_bindgen/raze:crates.bzl"], |
| deps = ["//rust:bzl_lib"], |
| ) |
| |
| alias( |
| name = "rules", |
| actual = ":bzl_lib", |
| deprecation = "Please use the `@rules_rust//wasm_bindgen:bzl_lib` target instead", |
| ) |
| |
| rust_wasm_bindgen_toolchain( |
| name = "default_wasm_bindgen_toolchain_impl", |
| bindgen = "//wasm_bindgen/raze:cargo_bin_wasm_bindgen", |
| ) |
| |
| toolchain( |
| name = "default_wasm_bindgen_toolchain", |
| toolchain = "default_wasm_bindgen_toolchain_impl", |
| toolchain_type = "//wasm_bindgen:wasm_bindgen_toolchain", |
| ) |