fork/rules_rust

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

UebelAndreUpdated `//util/import` to use crate_universe (#1492)0ffde973

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