| load("//rust:defs.bzl", "rust_binary") | |
| rust_binary( | |
| name = "collect_rust_coverage", | |
| srcs = ["collect_rust_coverage.rs"], | |
| edition = "2018", | |
| # To ensure this tool is produced deterministically, debug info | |
| # is stripped out. On macOS, full symbol stripping is needed to | |
| # also remove N_OSO stab entries whose timestamps and sandbox | |
| # paths vary between builds. | |
| rustc_flags = select({ | |
| "@platforms//os:linux": ["-Cstrip=debuginfo"], | |
| "@platforms//os:macos": ["-Cstrip=symbols"], | |
| "//conditions:default": [], | |
| }), | |
| visibility = ["//visibility:public"], | |
| ) |