blob: 390e12421f6070030488290f1d3bd7486c0055d1 [file] [log] [blame]
# 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_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon-status",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
test_deps = [
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:tempfile",
]
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" ]
}