| # 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__"], | |
| ) |