forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.tinyjson.bazel
More file actions
19 lines (18 loc) · 800 Bytes
/
BUILD.tinyjson.bazel
File metadata and controls
19 lines (18 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# buildifier: disable=bzl-visibility
load("@rules_rust//rust/private:rust.bzl", "rust_library_without_process_wrapper")
rust_library_without_process_wrapper(
name = "tinyjson",
srcs = glob(["src/*.rs"]),
allocator_libraries = "@rules_rust//ffi/rs:empty_allocator_libraries",
edition = "2018",
# To ensure the process wrapper is produced deterministically
# debug info, which is known to sometimes have host specific
# paths embedded in this section, is stripped out.
rustc_flags = select({
"@platforms//os:linux": ["-Cstrip=debuginfo"],
"@platforms//os:macos": ["-Cstrip=debuginfo"],
"@platforms//os:windows": ["-Cstrip=debuginfo"],
"//conditions:default": [],
}),
visibility = ["@rules_rust//util/process_wrapper:__pkg__"],
)