fork/rules_rust

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

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

rust-analyzer
1.1 KiB52 linesraw
1load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//rust:defs.bzl", "rust_binary")
3load(":toolchain.bzl", "rust_proto_toolchain")
4
5package(default_visibility = ["//visibility:public"])
6
7alias(
8    name = "protoc_gen_rust",
9    actual = "//proto/3rdparty/crates:protobuf-codegen__protoc-gen-rust",
10)
11
12alias(
13    name = "protoc_gen_rust_grpc",
14    actual = "//proto/3rdparty/crates:grpc-compiler__protoc-gen-rust-grpc",
15)
16
17toolchain_type(
18    name = "toolchain_type",
19)
20
21alias(
22    name = "toolchain",
23    actual = "toolchain_type",
24    deprecation = "instead use `@rules_rust//proto:toolchain_type`",
25    tags = ["manual"],
26)
27
28rust_binary(
29    name = "optional_output_wrapper",
30    srcs = ["optional_output_wrapper.rs"],
31    edition = "2018",
32    visibility = ["//visibility:public"],
33)
34
35toolchain(
36    name = "default-proto-toolchain",
37    toolchain = ":default-proto-toolchain-impl",
38    toolchain_type = "@rules_rust//proto:toolchain_type",
39)
40
41rust_proto_toolchain(
42    name = "default-proto-toolchain-impl",
43    edition = "2018",
44)
45
46bzl_library(
47    name = "bzl_lib",
48    srcs = glob(["**/*.bzl"]),
49    deps = [
50        "//proto/3rdparty:bzl_lib",
51    ],
52)