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.3 KiB101 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 = "cxx",
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        "alloc",
36        "default",
37        "std",
38    ],
39    crate_root = "src/lib.rs",
40    edition = "2018",
41    proc_macro_deps = [
42        "@rules_rust_wasm_bindgen__cxxbridge-macro-1.0.85//:cxxbridge_macro",
43    ],
44    rustc_flags = ["--cap-lints=allow"],
45    tags = [
46        "cargo-bazel",
47        "manual",
48        "noclippy",
49        "norustfmt",
50    ],
51    version = "1.0.85",
52    deps = [
53        "@rules_rust_wasm_bindgen__cxx-1.0.85//:build_script_build",
54        "@rules_rust_wasm_bindgen__link-cplusplus-1.0.8//:link_cplusplus",
55    ],
56)
57
58cargo_build_script(
59    name = "cxx_build_script",
60    srcs = glob(["**/*.rs"]),
61    crate_features = [
62        "alloc",
63        "default",
64        "std",
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    links = "cxxbridge1",
80    rustc_flags = [
81        "--cap-lints=allow",
82    ],
83    tags = [
84        "cargo-bazel",
85        "manual",
86        "noclippy",
87        "norustfmt",
88    ],
89    version = "1.0.85",
90    visibility = ["//visibility:private"],
91    deps = [
92        "@rules_rust_wasm_bindgen__cc-1.0.78//:cc",
93        "@rules_rust_wasm_bindgen__cxxbridge-flags-1.0.85//:cxxbridge_flags",
94    ],
95)
96
97alias(
98    name = "build_script_build",
99    actual = "cxx_build_script",
100    tags = ["manual"],
101)