fork/rules_rust

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

UebelAndreAdd `Runfiles::current_repository` to runfiles library (#1713)c75ea6f9

rust-analyzer
564 B32 linesraw
1load(
2    "//rust:defs.bzl",
3    "rust_doc",
4    "rust_library",
5    "rust_test",
6)
7load("//tools/runfiles/private:runfiles_utils.bzl", "workspace_name")
8
9workspace_name(
10    name = "workspace_name.env",
11)
12
13rust_library(
14    name = "runfiles",
15    srcs = ["runfiles.rs"],
16    edition = "2018",
17    rustc_env_files = [
18        ":workspace_name.env",
19    ],
20    visibility = ["//visibility:public"],
21)
22
23rust_test(
24    name = "runfiles_test",
25    crate = ":runfiles",
26    data = ["data/sample.txt"],
27)
28
29rust_doc(
30    name = "runfiles_doc",
31    crate = ":runfiles",
32)