fork/rules_rust

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

UebelAndreUpdated header of crate_universe generated files to include a regen command (#1461)824b121a

0.10.0
5.2 KiB216 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(
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        "consoleapi",
58        "errhandlingapi",
59        "fileapi",
60        "handleapi",
61        "minwinbase",
62        "minwindef",
63        "ntsecapi",
64        "processenv",
65        "profileapi",
66        "shlobj",
67        "std",
68        "timezoneapi",
69        "winbase",
70        "wincon",
71        "winerror",
72        "winnt",
73    ],
74    crate_root = "src/lib.rs",
75    data = select_with_or({
76        "//conditions:default": [
77        ],
78    }),
79    edition = "2015",
80    proc_macro_deps = [
81    ] + select_with_or({
82        "//conditions:default": [
83        ],
84    }),
85    rustc_env = {
86    },
87    rustc_env_files = select_with_or({
88        "//conditions:default": [
89        ],
90    }),
91    rustc_flags = [
92        # In most cases, warnings in 3rd party crates are not interesting as
93        # they're out of the control of consumers. The flag here silences
94        # warnings. For more details see:
95        # https://doc.rust-lang.org/rustc/lints/levels.html
96        "--cap-lints=allow",
97    ],
98    tags = [
99        "cargo-bazel",
100        "manual",
101        "noclippy",
102        "norustfmt",
103    ],
104    version = "0.3.9",
105    deps = [
106    ] + select_with_or({
107        # i686-pc-windows-gnu
108        #
109        # No supported platform triples for cfg: 'i686-pc-windows-gnu'
110        # Skipped dependencies: [{"id":"winapi-i686-pc-windows-gnu 0.4.0","target":"winapi_i686_pc_windows_gnu"}]
111        #
112        # x86_64-pc-windows-gnu
113        #
114        # No supported platform triples for cfg: 'x86_64-pc-windows-gnu'
115        # Skipped dependencies: [{"id":"winapi-x86_64-pc-windows-gnu 0.4.0","target":"winapi_x86_64_pc_windows_gnu"}]
116        #
117        "//conditions:default": [
118            "@cui__winapi-0.3.9//:build_script_build",
119        ],
120    }),
121)
122
123cargo_build_script(
124    # See comment associated with alias. Do not change this name
125    name = "winapi_build_script",
126    srcs = glob(
127        include = [
128            "**/*.rs",
129        ],
130        exclude = [
131        ],
132    ),
133    aliases = selects.with_or({
134        "//conditions:default": {
135        },
136    }),
137    build_script_env = {
138    },
139    compile_data = select_with_or({
140        "//conditions:default": [
141        ],
142    }),
143    crate_features = [
144        "consoleapi",
145        "errhandlingapi",
146        "fileapi",
147        "handleapi",
148        "minwinbase",
149        "minwindef",
150        "ntsecapi",
151        "processenv",
152        "profileapi",
153        "shlobj",
154        "std",
155        "timezoneapi",
156        "winbase",
157        "wincon",
158        "winerror",
159        "winnt",
160    ],
161    crate_name = "build_script_build",
162    crate_root = "build.rs",
163    data = glob(["**"]) + select_with_or({
164        "//conditions:default": [
165        ],
166    }),
167    edition = "2015",
168    proc_macro_deps = [
169    ] + select_with_or({
170        "//conditions:default": [
171        ],
172    }),
173    rustc_env = {
174    },
175    rustc_env_files = select_with_or({
176        "//conditions:default": [
177        ],
178    }),
179    rustc_flags = [
180        # In most cases, warnings in 3rd party crates are not interesting as
181        # they're out of the control of consumers. The flag here silences
182        # warnings. For more details see:
183        # https://doc.rust-lang.org/rustc/lints/levels.html
184        "--cap-lints=allow",
185    ],
186    tags = [
187        "cargo-bazel",
188        "manual",
189        "noclippy",
190        "norustfmt",
191    ],
192    tools = select_with_or({
193        "//conditions:default": [
194        ],
195    }),
196    version = "0.3.9",
197    visibility = ["//visibility:private"],
198    deps = [
199    ] + select_with_or({
200        "//conditions:default": [
201        ],
202    }),
203)
204
205alias(
206    # Because `cargo_build_script` does some invisible target name mutating to
207    # determine the package and crate name for a build script, the Bazel
208    # target namename of any build script cannot be the Cargo canonical name
209    # of `build_script_build` without losing out on having certain Cargo
210    # environment variables set.
211    name = "build_script_build",
212    actual = "winapi_build_script",
213    tags = [
214        "manual",
215    ],
216)