fork/rules_rust

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

David TolnayGenerate only the needed subset of binaries for bindgen and proto (#1751)7ebad4d5

rust-analyzer
1.7 KiB76 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 @//proto/3rdparty:crates_vendor
7###############################################################################
8
9load(
10    "@rules_rust//rust:defs.bzl",
11    "rust_binary",
12    "rust_library",
13)
14
15package(default_visibility = ["//visibility:public"])
16
17# licenses([
18#     "TODO",  # MIT
19# ])
20
21rust_library(
22    name = "protobuf_codegen",
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_root = "src/lib.rs",
35    edition = "2015",
36    rustc_flags = ["--cap-lints=allow"],
37    tags = [
38        "cargo-bazel",
39        "manual",
40        "noclippy",
41        "norustfmt",
42    ],
43    version = "2.8.2",
44    deps = [
45        "@rules_rust_proto__protobuf-2.8.2//:protobuf",
46    ],
47)
48
49rust_binary(
50    name = "protoc-gen-rust__bin",
51    srcs = glob(["**/*.rs"]),
52    compile_data = glob(
53        include = ["**"],
54        exclude = [
55            "**/* *",
56            "BUILD",
57            "BUILD.bazel",
58            "WORKSPACE",
59            "WORKSPACE.bazel",
60        ],
61    ),
62    crate_root = "src/bin/protoc-gen-rust.rs",
63    edition = "2015",
64    rustc_flags = ["--cap-lints=allow"],
65    tags = [
66        "cargo-bazel",
67        "manual",
68        "noclippy",
69        "norustfmt",
70    ],
71    version = "2.8.2",
72    deps = [
73        ":protobuf_codegen",
74        "@rules_rust_proto__protobuf-2.8.2//:protobuf",
75    ],
76)