fork/rules_rust

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

David TolnayRegenerate BUILD files using serde_starlark renderer (#1746)d6e30035

rust-analyzer
2.2 KiB96 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("@rules_rust//cargo:defs.bzl", "cargo_build_script")
10load(
11    "@rules_rust//rust:defs.bzl",
12    "rust_library",
13)
14
15package(default_visibility = ["//visibility:public"])
16
17# licenses([
18#     "TODO",  # MIT OR Apache-2.0
19# ])
20
21rust_library(
22    name = "proc_macro2",
23    srcs = glob(["**/*.rs"]),
24    compile_data = glob(
25        include = ["**"],
26        exclude = [
27            "**/* *",
28            "BUILD",
29            "BUILD.bazel",
30            "WORKSPACE",
31            "WORKSPACE.bazel",
32        ],
33    ),
34    crate_features = [
35        "default",
36        "proc-macro",
37        "span-locations",
38    ],
39    crate_root = "src/lib.rs",
40    edition = "2018",
41    rustc_flags = [
42        "--cap-lints=allow",
43        "--cfg=use_proc_macro",
44    ],
45    tags = [
46        "cargo-bazel",
47        "manual",
48        "noclippy",
49        "norustfmt",
50    ],
51    version = "1.0.49",
52    deps = [
53        "@rules_rust_wasm_bindgen__proc-macro2-1.0.49//:build_script_build",
54        "@rules_rust_wasm_bindgen__unicode-ident-1.0.6//:unicode_ident",
55    ],
56)
57
58cargo_build_script(
59    name = "proc-macro2_build_script",
60    srcs = glob(["**/*.rs"]),
61    crate_features = [
62        "default",
63        "proc-macro",
64        "span-locations",
65    ],
66    crate_name = "build_script_build",
67    crate_root = "build.rs",
68    data = glob(
69        include = ["**"],
70        exclude = [
71            "**/* *",
72            "BUILD",
73            "BUILD.bazel",
74            "WORKSPACE",
75            "WORKSPACE.bazel",
76        ],
77    ),
78    edition = "2018",
79    rustc_flags = [
80        "--cap-lints=allow",
81    ],
82    tags = [
83        "cargo-bazel",
84        "manual",
85        "noclippy",
86        "norustfmt",
87    ],
88    version = "1.0.49",
89    visibility = ["//visibility:private"],
90)
91
92alias(
93    name = "build_script_build",
94    actual = "proc-macro2_build_script",
95    tags = ["manual"],
96)