blob: a7b67613fc783961d6eb0bbdb1936415eaf15b88 [file] [log] [blame] [edit]
# 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/rust/rustc_library.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
rustc_library("fuchsia-watch") {
name = "fuchsia_watch"
version = "0.1.0"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//src/lib/fuchsia-async",
"//src/lib/storage/fuchsia-vfs-watcher",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/lib.rs" ]
}
fuchsia_unittest_package("fuchsia-watch-tests") {
executable_path = "bin/fuchsia_watch_lib_test"
v2_test_runner = "rust_test_runner"
deps = [ ":fuchsia-watch_test" ]
}
group("tests") {
testonly = true
deps = [ ":fuchsia-watch-tests" ]
}