blob: 52560bee7c2f110e04a9fc07c04a775b12f00033 [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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("fuchsia-async") {
name = "fuchsia_async"
edition = "2018"
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async-macro",
"//src/lib/fuchsia-system-alloc",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:crossbeam",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:net2",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:pin-utils",
]
test_deps = [ "//third_party/rust_crates:futures-test" ]
}
test_package("fuchsia-async-tests") {
deps = [ ":fuchsia-async_test" ]
tests = [
{
name = "fuchsia_async_lib_test"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
deps = [ ":fuchsia-async-tests" ]
}