fork/rules_rust

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

UebelAndreAdded support for Rust 1.61.0 to crate_universe (#1348)87eb807e

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