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