blob: d42fa9d61e47402c7beb762588dc23b868805546 [file] [log] [blame]
# Copyright 2019 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("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("files_async") {
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//garnet/lib/rust/io_util",
"//src/lib/storage/vfs/rust:vfs",
"//third_party/rust_crates:pin-utils",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:tempfile",
]
enforce_source_listing = true
sources = [ "src/lib.rs" ]
}
test_package("files_async_tests") {
deps = [ ":files_async_test" ]
tests = [
{
name = "files_async_lib_test"
environments = [ emu_env ]
},
]
}