blob: f4190cb4e067b343f60589c25419b14d66945849 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/host.gni")
import("//build/rust/rustc_library.gni")
import("//build/testing/host_test.gni")
if (is_host) {
rustc_library("lib") {
testonly = true
name = "temp_test_env"
with_unit_tests = true
edition = "2021"
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:tempfile",
]
test_deps = [ "//third_party/rust_crates:serial_test" ]
sources = [
"src/lib.rs",
"src/temp_test_env.rs",
]
}
}
group("temp_test_env") {
testonly = true
public_deps = [ ":lib($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}