fork/rules_rust

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

UebelAndreUpdate wasm_bindgen to use crate universe. (#1398)97264b79

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