fork/rules_rust

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

UebelAndreUpdated crate_universe version (to `0.3.0`) and dependencies (#1409)d3197a65

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