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