blob: 0fb0321584fac50ce5d0c2e635e76179aa2daf41 [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")
rustc_library("mock-reboot") {
version = "0.0.1"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
test_deps = [ "//src/lib/zircon/rust:fuchsia-zircon" ]
sources = [ "src/lib.rs" ]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
group("tests") {
testonly = true
deps = [ ":mock-reboot-tests" ]
}
fuchsia_unittest_package("mock-reboot-tests") {
deps = [ ":mock-reboot_test" ]
}