fork/rules_rust

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

Daniel Wagner-HallUse env method recently added to cargo_metadata (#1813)78ca9ba0

rust-analyzer
2.2 KiB95 linesraw
1###############################################################################
2# @generated
3# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4# regenerate this file, run the following:
5#
6#     bazel run @//crate_universe/3rdparty:crates_vendor
7###############################################################################
8
9load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
10load("@rules_rust//rust:defs.bzl", "rust_library")
11
12package(default_visibility = ["//visibility:public"])
13
14# licenses([
15#     "TODO",  # MIT/Apache-2.0
16# ])
17
18rust_library(
19    name = "wasm_bindgen",
20    srcs = glob(["**/*.rs"]),
21    compile_data = glob(
22        include = ["**"],
23        exclude = [
24            "**/* *",
25            "BUILD",
26            "BUILD.bazel",
27            "WORKSPACE",
28            "WORKSPACE.bazel",
29        ],
30    ),
31    crate_features = [
32        "default",
33        "spans",
34        "std",
35    ],
36    crate_root = "src/lib.rs",
37    edition = "2018",
38    proc_macro_deps = [
39        "@cui__wasm-bindgen-macro-0.2.83//:wasm_bindgen_macro",
40    ],
41    rustc_flags = ["--cap-lints=allow"],
42    tags = [
43        "cargo-bazel",
44        "crate-name=wasm-bindgen",
45        "manual",
46        "noclippy",
47        "norustfmt",
48    ],
49    version = "0.2.83",
50    deps = [
51        "@cui__cfg-if-1.0.0//:cfg_if",
52        "@cui__wasm-bindgen-0.2.83//:build_script_build",
53    ],
54)
55
56cargo_build_script(
57    name = "wasm-bindgen_build_script",
58    srcs = glob(["**/*.rs"]),
59    crate_features = [
60        "default",
61        "spans",
62        "std",
63    ],
64    crate_name = "build_script_build",
65    crate_root = "build.rs",
66    data = glob(
67        include = ["**"],
68        exclude = [
69            "**/* *",
70            "BUILD",
71            "BUILD.bazel",
72            "WORKSPACE",
73            "WORKSPACE.bazel",
74        ],
75    ),
76    edition = "2018",
77    rustc_flags = [
78        "--cap-lints=allow",
79    ],
80    tags = [
81        "cargo-bazel",
82        "crate-name=wasm-bindgen",
83        "manual",
84        "noclippy",
85        "norustfmt",
86    ],
87    version = "0.2.83",
88    visibility = ["//visibility:private"],
89)
90
91alias(
92    name = "build_script_build",
93    actual = "wasm-bindgen_build_script",
94    tags = ["manual"],
95)