fork/rules_rust

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

UebelAndreUpdate wasm_bindgen to use crate universe. (#1398)97264b79

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