fork/rules_rust

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

UebelAndreRenamed `crate_index` repository to `crate_universe_crate_index` (#1217)e48c834a

0.5.0
5.2 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        "minwinbase",
53        "minwindef",
54        "ntsecapi",
55        "processenv",
56        "profileapi",
57        "shlobj",
58        "std",
59        "timezoneapi",
60        "winbase",
61        "wincon",
62        "winerror",
63        "winnt",
64    ],
65    crate_root = "src/lib.rs",
66    data = select_with_or({
67        "//conditions:default": [
68        ],
69    }),
70    edition = "2015",
71    proc_macro_deps = [
72    ] + select_with_or({
73        "//conditions:default": [
74        ],
75    }),
76    rustc_env = {
77    },
78    rustc_env_files = select_with_or({
79        "//conditions:default": [
80        ],
81    }),
82    rustc_flags = [
83        # In most cases, warnings in 3rd party crates are not interesting as
84        # they're out of the control of consumers. The flag here silences
85        # warnings. For more details see:
86        # https://doc.rust-lang.org/rustc/lints/levels.html
87        "--cap-lints=allow",
88    ] + select_with_or({
89        "//conditions:default": [
90        ],
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            "@crate_universe_crate_index__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        "minwinbase",
143        "minwindef",
144        "ntsecapi",
145        "processenv",
146        "profileapi",
147        "shlobj",
148        "std",
149        "timezoneapi",
150        "winbase",
151        "wincon",
152        "winerror",
153        "winnt",
154    ],
155    crate_name = "build_script_build",
156    crate_root = "build.rs",
157    data = glob(["**"]) + select_with_or({
158        "//conditions:default": [
159        ],
160    }),
161    edition = "2015",
162    proc_macro_deps = [
163    ] + select_with_or({
164        "//conditions:default": [
165        ],
166    }),
167    rustc_env = {
168    },
169    rustc_env_files = select_with_or({
170        "//conditions:default": [
171        ],
172    }),
173    rustc_flags = [
174        # In most cases, warnings in 3rd party crates are not interesting as
175        # they're out of the control of consumers. The flag here silences
176        # warnings. For more details see:
177        # https://doc.rust-lang.org/rustc/lints/levels.html
178        "--cap-lints=allow",
179    ] + select_with_or({
180        "//conditions:default": [
181        ],
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)