fork/rules_rust

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

UebelAndreUpdated header of crate_universe generated files to include a regen command (#1461)824b121a

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