| # Copyright 2018 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("fuchsia-vfs-watcher") { |
| name = "fuchsia_vfs_watcher" |
| version = "0.1.0" |
| with_unit_tests = true |
| edition = "2021" |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/zircon/rust:fuchsia-zircon-status", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:pin-utils", |
| "//third_party/rust_crates:tempfile", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| if (is_fuchsia) { |
| deps += [ "//src/lib/zircon/rust:fuchsia-zircon" ] |
| } |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_unittest_package("fuchsia-vfs-watcher-tests") { |
| deps = [ |
| ":fuchsia-vfs-watcher_test", |
| "//src/sys/test_runners:tmp_storage", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fuchsia-vfs-watcher-tests" ] |
| } |