fork/rules_rust

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

UebelAndreUpdated proto rules to fetch dependencies using crate_universe (#1491)83a03ab0

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