fork/rules_rust

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

ImJeremyHeUpdate wasm_bindgen to 0.2.82 (#1513)3a69ce09

0.11.0
5.5 KiB232 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 //wasm_bindgen/3rdparty:crates_vendor
7###############################################################################
8
9load(
10    "@bazel_skylib//lib:selects.bzl",
11    "selects",
12)
13load(
14    "@rules_rust//cargo:defs.bzl",
15    "cargo_build_script",
16)
17
18# buildifier: disable=bzl-visibility
19load("@rules_rust//crate_universe/private:selects.bzl", "select_with_or")
20load(
21    "@rules_rust//rust:defs.bzl",
22    "rust_library",
23)
24
25package(default_visibility = ["//visibility:public"])
26
27# licenses([
28#     "TODO",  # MIT/Apache-2.0
29# ])
30
31rust_library(
32    name = "winapi",
33    srcs = glob(
34        include = [
35            "**/*.rs",
36        ],
37        exclude = [
38        ],
39    ),
40    aliases = selects.with_or({
41        "//conditions:default": {
42        },
43    }),
44    compile_data = glob(
45        include = ["**"],
46        exclude = [
47            "BUILD",
48            "BUILD.bazel",
49            "WORKSPACE",
50            "WORKSPACE.bazel",
51        ],
52    ) + select_with_or({
53        "//conditions:default": [
54        ],
55    }),
56    crate_features = [
57        "activation",
58        "combaseapi",
59        "consoleapi",
60        "errhandlingapi",
61        "fileapi",
62        "handleapi",
63        "libloaderapi",
64        "minwinbase",
65        "minwindef",
66        "objbase",
67        "processenv",
68        "roapi",
69        "std",
70        "timezoneapi",
71        "winbase",
72        "wincon",
73        "wincrypt",
74        "winerror",
75        "winnt",
76        "winsock2",
77        "winstring",
78        "ws2def",
79        "ws2ipdef",
80        "ws2tcpip",
81    ],
82    crate_root = "src/lib.rs",
83    data = select_with_or({
84        "//conditions:default": [
85        ],
86    }),
87    edition = "2015",
88    proc_macro_deps = [
89    ] + select_with_or({
90        "//conditions:default": [
91        ],
92    }),
93    rustc_env = {
94    },
95    rustc_env_files = select_with_or({
96        "//conditions:default": [
97        ],
98    }),
99    rustc_flags = [
100        # In most cases, warnings in 3rd party crates are not interesting as
101        # they're out of the control of consumers. The flag here silences
102        # warnings. For more details see:
103        # https://doc.rust-lang.org/rustc/lints/levels.html
104        "--cap-lints=allow",
105    ],
106    tags = [
107        "cargo-bazel",
108        "manual",
109        "noclippy",
110        "norustfmt",
111    ],
112    version = "0.3.9",
113    deps = [
114    ] + select_with_or({
115        # i686-pc-windows-gnu
116        #
117        # No supported platform triples for cfg: 'i686-pc-windows-gnu'
118        # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
119        #
120        # x86_64-pc-windows-gnu
121        #
122        # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
123        # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
124        #
125        "//conditions:default": [
126            "@rules_rust_wasm_bindgen__winapi-0.3.9//:build_script_build",
127        ],
128    }),
129)
130
131cargo_build_script(
132    # See comment associated with alias. Do not change this name
133    name = "winapi_build_script",
134    srcs = glob(
135        include = [
136            "**/*.rs",
137        ],
138        exclude = [
139        ],
140    ),
141    aliases = selects.with_or({
142        "//conditions:default": {
143        },
144    }),
145    build_script_env = {
146    },
147    compile_data = select_with_or({
148        "//conditions:default": [
149        ],
150    }),
151    crate_features = [
152        "activation",
153        "combaseapi",
154        "consoleapi",
155        "errhandlingapi",
156        "fileapi",
157        "handleapi",
158        "libloaderapi",
159        "minwinbase",
160        "minwindef",
161        "objbase",
162        "processenv",
163        "roapi",
164        "std",
165        "timezoneapi",
166        "winbase",
167        "wincon",
168        "wincrypt",
169        "winerror",
170        "winnt",
171        "winsock2",
172        "winstring",
173        "ws2def",
174        "ws2ipdef",
175        "ws2tcpip",
176    ],
177    crate_name = "build_script_build",
178    crate_root = "build.rs",
179    data = glob(["**"]) + select_with_or({
180        "//conditions:default": [
181        ],
182    }),
183    edition = "2015",
184    proc_macro_deps = [
185    ] + select_with_or({
186        "//conditions:default": [
187        ],
188    }),
189    rustc_env = {
190    },
191    rustc_env_files = select_with_or({
192        "//conditions:default": [
193        ],
194    }),
195    rustc_flags = [
196        # In most cases, warnings in 3rd party crates are not interesting as
197        # they're out of the control of consumers. The flag here silences
198        # warnings. For more details see:
199        # https://doc.rust-lang.org/rustc/lints/levels.html
200        "--cap-lints=allow",
201    ],
202    tags = [
203        "cargo-bazel",
204        "manual",
205        "noclippy",
206        "norustfmt",
207    ],
208    tools = select_with_or({
209        "//conditions:default": [
210        ],
211    }),
212    version = "0.3.9",
213    visibility = ["//visibility:private"],
214    deps = [
215    ] + select_with_or({
216        "//conditions:default": [
217        ],
218    }),
219)
220
221alias(
222    # Because `cargo_build_script` does some invisible target name mutating to
223    # determine the package and crate name for a build script, the Bazel
224    # target namename of any build script cannot be the Cargo canonical name
225    # of `build_script_build` without losing out on having certain Cargo
226    # environment variables set.
227    name = "build_script_build",
228    actual = "winapi_build_script",
229    tags = [
230        "manual",
231    ],
232)