fork/rules_rust

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

UebelAndreFix issues causing the `Rustc` process wrapper to be built non-determ… (#2216)ec5fd401

main
714 B17 linesraw
1# buildifier: disable=bzl-visibility
2load("@rules_rust//rust/private:rust.bzl", "rust_library_without_process_wrapper")
3
4rust_library_without_process_wrapper(
5    name = "tinyjson",
6    srcs = glob(["src/*.rs"]),
7    edition = "2018",
8    # To ensure the process wrapper is produced deterministically
9    # debug info, which is known to sometimes have host specific
10    # paths embedded in this section, is stripped out.
11    rustc_flags = select({
12        "@rules_rust//util/process_wrapper:opt_linux": ["-Cstrip=debuginfo"],
13        "@rules_rust//util/process_wrapper:opt_macos": ["-Cstrip=debuginfo"],
14        "//conditions:default": [],
15    }),
16    visibility = ["@rules_rust//util/process_wrapper:__pkg__"],
17)