blob: 169f0c4f9f2d7e0d687f86bbf09b39231d42adc0 [file] [log] [blame] [edit]
# 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("async-helpers") {
edition = "2021"
with_unit_tests = true
deps = [
"//src/lib/async-utils",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
test_deps = [ "//src/lib/fuchsia-async" ]
sources = [
"src/hanging_get/async_server.rs",
"src/hanging_get/mod.rs",
"src/lib.rs",
"src/maybe_stream.rs",
"src/responding_channel.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
rustc_library("async-test-helpers") {
edition = "2021"
testonly = true
deps = [
"//src/lib/async-utils",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
source_root = "src/test/lib.rs"
sources = [ "src/test/lib.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("async-helpers-tests") {
deps = [ ":async-helpers_test" ]
}
group("tests") {
testonly = true
deps = [ ":async-helpers-tests" ]
}