load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test") load(":debug_transition.bzl", "dbg_rust_binary") rust_library( name = "dep", srcs = ["dep.rs"], edition = "2018", ) rust_test( name = "remap_path_prefix", srcs = ["test.rs"], edition = "2018", deps = [":dep"], ) rust_binary( name = "panic_bin", srcs = ["panic_bin.rs"], edition = "2018", ) dbg_rust_binary( name = "panic_bin_dbg", binary = ":panic_bin", ) rust_test( name = "integration_test", srcs = ["integration_test.rs"], data = [":panic_bin_dbg"], edition = "2018", env = { "BINARY": "$(rlocationpath :panic_bin_dbg)", }, deps = ["//rust/runfiles"], )