fork/rules_rust

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

UebelAndreUpdated crate_universe dependencies (#1591)ca567826

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