fork/rules_rust

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

UebelAndreAdded support for producing distribution archives (#1194)cd44b367

0.6.0
697 B21 linesraw
1load(":dummy_cc_toolchain.bzl", "dummy_cc_toolchain")
2
3dummy_cc_toolchain(name = "dummy_cc_wasm32")
4
5# When compiling Rust code for wasm32, we avoid linking to cpp code so we introduce a dummy cc
6# toolchain since we know we'll never look it up.
7# TODO(jedmonds@spotify.com): Need to support linking C code to rust code when compiling for wasm32.
8toolchain(
9    name = "dummy_cc_wasm32_toolchain",
10    target_compatible_with = ["//rust/platform/cpu:wasm32"],
11    toolchain = ":dummy_cc_wasm32",
12    toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
13)
14
15filegroup(
16    name = "distro",
17    srcs = glob(["*.bzl"]) + [
18        "BUILD.bazel",
19    ],
20    visibility = ["//:__subpackages__"],
21)