xref: /aosp_15_r20/external/bazelbuild-rules_rust/util/process_wrapper/BUILD.tinyjson.bazel (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
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)
18