blob: 594a795c36b327b7fa78ff8b4636c7d3d198bd80 [file] [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 = "2024"
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:deny_unused_results" ]
}
rustc_library("async-test-helpers") {
edition = "2024"
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:deny_unused_results" ]
}
fuchsia_unittest_package("async-helpers-tests") {
deps = [ ":async-helpers_test" ]
}
group("tests") {
testonly = true
deps = [ ":async-helpers-tests" ]
}