blob: 1503d95ccb4a1195cecb38a2af24261b1d1ac0e1 [file] [log] [blame]
# Copyright 2020 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/components.gni")
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_macro.gni")
import("//build/rust/rustc_test.gni")
rustc_library("inspect-writable") {
name = "inspect_writable"
edition = "2021"
deps = [
"//src/lib/diagnostics/inspect/rust",
"//src/sys/time/lib/inspect-writable/macro:inspect-writable-derive",
]
sources = [ "src/lib.rs" ]
}
rustc_test("test_bin") {
name = "inspect_writable_test"
edition = "2021"
deps = [
":inspect-writable",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/diagnostics/testing/diagnostics-assertions/rust:diagnostics-assertions",
"//src/lib/fuchsia",
]
sources = [ "tests/derive_test.rs" ]
source_root = "tests/derive_test.rs"
}
group("tests") {
testonly = true
deps = [ ":inspect-writable-tests" ]
}
fuchsia_unittest_package("inspect-writable-tests") {
deps = [ ":test_bin" ]
}