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
4.3 KiB175 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
28# ])
29
30rust_library(
31    name = "generic_array",
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        "more_lengths",
49    ],
50    crate_root = "src/lib.rs",
51    data = select_with_or({
52        "//conditions:default": [
53        ],
54    }),
55    edition = "2015",
56    proc_macro_deps = [
57    ] + select_with_or({
58        "//conditions:default": [
59        ],
60    }),
61    rustc_env = {
62    },
63    rustc_env_files = select_with_or({
64        "//conditions:default": [
65        ],
66    }),
67    rustc_flags = [
68        # In most cases, warnings in 3rd party crates are not interesting as
69        # they're out of the control of consumers. The flag here silences
70        # warnings. For more details see:
71        # https://doc.rust-lang.org/rustc/lints/levels.html
72        "--cap-lints=allow",
73    ] + select_with_or({
74        "//conditions:default": [
75        ],
76    }),
77    tags = [
78        "cargo-bazel",
79        "manual",
80        "noclippy",
81        "norustfmt",
82    ],
83    version = "0.14.5",
84    deps = [
85    ] + select_with_or({
86        "//conditions:default": [
87            "@crate_universe_crate_index__generic-array-0.14.5//:build_script_build",
88            "@crate_universe_crate_index__typenum-1.15.0//:typenum",
89        ],
90    }),
91)
92
93cargo_build_script(
94    # See comment associated with alias. Do not change this name
95    name = "generic-array_build_script",
96    srcs = glob(
97        include = [
98            "**/*.rs",
99        ],
100        exclude = [
101        ],
102    ),
103    aliases = selects.with_or({
104        "//conditions:default": {
105        },
106    }),
107    build_script_env = {
108    },
109    compile_data = select_with_or({
110        "//conditions:default": [
111        ],
112    }),
113    crate_features = [
114        "more_lengths",
115    ],
116    crate_name = "build_script_build",
117    crate_root = "build.rs",
118    data = glob(["**"]) + select_with_or({
119        "//conditions:default": [
120        ],
121    }),
122    edition = "2015",
123    proc_macro_deps = [
124    ] + select_with_or({
125        "//conditions:default": [
126        ],
127    }),
128    rustc_env = {
129    },
130    rustc_env_files = select_with_or({
131        "//conditions:default": [
132        ],
133    }),
134    rustc_flags = [
135        # In most cases, warnings in 3rd party crates are not interesting as
136        # they're out of the control of consumers. The flag here silences
137        # warnings. For more details see:
138        # https://doc.rust-lang.org/rustc/lints/levels.html
139        "--cap-lints=allow",
140    ] + select_with_or({
141        "//conditions:default": [
142        ],
143    }),
144    tags = [
145        "cargo-bazel",
146        "manual",
147        "noclippy",
148        "norustfmt",
149    ],
150    tools = select_with_or({
151        "//conditions:default": [
152        ],
153    }),
154    version = "0.14.5",
155    visibility = ["//visibility:private"],
156    deps = [
157    ] + select_with_or({
158        "//conditions:default": [
159            "@crate_universe_crate_index__version_check-0.9.4//:version_check",
160        ],
161    }),
162)
163
164alias(
165    # Because `cargo_build_script` does some invisible target name mutating to
166    # determine the package and crate name for a build script, the Bazel
167    # target namename of any build script cannot be the Cargo canonical name
168    # of `build_script_build` without losing out on having certain Cargo
169    # environment variables set.
170    name = "build_script_build",
171    actual = "generic-array_build_script",
172    tags = [
173        "manual",
174    ],
175)