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