fork/rules_rust

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

UebelAndreexclude `BUILD` and `WORKSPACE` files from generated crate_universe targets (#1437)60f26d49

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