blob: f3e74df1463409e2c421730aa25a91c63dec21be [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 = "2021"
sources = [
"src/lib.rs",
"src/zxio.rs",
]
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:bitflags",
"//third_party/rust_crates:zerocopy",
]
non_rust_deps = [ "//sdk/lib/zxio:standalone" ]
test_deps = [
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:anyhow",
]
}
fuchsia_unittest_package("syncio-tests") {
manifest = "meta/syncio-tests.cml"
deps = [ ":syncio_test" ]
}