fork/rules_rust

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

UebelAndreImplement rules archive release artifact in github action. (#1501)76360dd3

0.10.0
1.7 KiB67 linesraw
1load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//crate_universe:defs.bzl", "crate", "crates_vendor")
3
4crates_vendor(
5    name = "crates_vendor",
6    annotations = {
7        "lazy_static": [crate.annotation(
8            rustc_flags = [
9                "--cfg=lazy_static_heap_impl",
10            ],
11        )],
12        "protobuf": [crate.annotation(
13            patch_args = ["-p1"],
14            patches = ["@rules_rust//proto/3rdparty/patches:protobuf-2.8.2.patch"],
15        )],
16    },
17    cargo_lockfile = "Cargo.Bazel.lock",
18    mode = "remote",
19    packages = {
20        "grpc": crate.spec(
21            version = "0.6.2",
22        ),
23        "grpc-compiler": crate.spec(
24            version = "0.6.2",
25        ),
26        "log": crate.spec(
27            version = "0.4, 0.4.7",
28        ),
29        "protobuf": crate.spec(
30            features = ["with-bytes"],
31            version = "2.8.2",
32        ),
33        "protobuf-codegen": crate.spec(
34            version = "2.8.2",
35        ),
36        "tls-api": crate.spec(
37            version = "0.1.22",
38        ),
39        "tls-api-stub": crate.spec(
40            version = "0.1.22",
41        ),
42    },
43    repository_name = "rules_rust_proto",
44    tags = ["manual"],
45)
46
47alias(
48    name = "wasm_bindgen_cli",
49    actual = "@rules_rust_wasm_bindgen_cli",
50    tags = ["manual"],
51    visibility = ["//visibility:public"],
52)
53
54alias(
55    name = "wasm_bindgen",
56    actual = "//wasm_bindgen/3rdparty/crates:wasm-bindgen",
57    visibility = ["//visibility:public"],
58)
59
60bzl_library(
61    name = "bzl_lib",
62    srcs = glob(["**/*.bzl"]) + [
63        "//proto/3rdparty/crates:defs.bzl",
64        "//proto/3rdparty/crates:crates.bzl",
65    ],
66    visibility = ["//proto:__pkg__"],
67)