| # 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/components/fuchsia_unittest_package.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| rustc_library("rust") { |
| edition = "2021" |
| name = "device-watcher" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.device:fuchsia.device_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/zircon/rust:fuchsia-zircon-status", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| test_deps = [ |
| "//src/lib/fuchsia-async", |
| "//src/storage/lib/vfs/rust:vfs", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":device_watcher_tests_package" ] |
| } |
| |
| fuchsia_unittest_package("device_watcher_tests_package") { |
| package_name = "device_watcher_tests" |
| deps = [ ":rust_test" ] |
| } |