blob: 20ec996f99de3203b5729e34340d2c3c56e67a95 [file] [log] [blame] [edit]
# 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.gni")
import("//build/rust/rustc_library.gni")
group("tests") {
testonly = true
deps = [ ":syncio-tests" ]
}
rustc_library("syncio") {
edition = "2018"
sources = [
"src/lib.rs",
"src/zxio.rs",
]
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:bitflags",
]
non_rust_deps = [ "//sdk/lib/zxio:standalone" ]
test_deps = [
"//garnet/lib/rust/io_util",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
]
}
fuchsia_unittest_package("syncio-tests") {
manifest = "meta/syncio-tests.cml"
deps = [ ":syncio_test" ]
}