fork/rules_rust

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

UebelAndreUpdated crate_universe version (to `0.3.0`) and dependencies (#1409)d3197a65

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