blob: 36a12a5939b040777ccf29180af527399be1d003 [file] [log] [blame]
# 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/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/test/test_package.gni")
group("tests") {
testonly = true
deps = [ ":streammap_tests" ]
}
rustc_library("streammap") {
name = "streammap"
edition = "2018"
deps = [
"//third_party/rust_crates:futures",
"//third_party/rust_crates:rental",
]
}
rustc_test("streammap_lib_test") {
edition = "2018"
source_root = "src/lib.rs"
deps = [
":streammap",
"//src/lib/fuchsia-async",
"//src/lib/test_util",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:futures-test",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:rental",
"//third_party/rust_crates:thiserror",
]
# TODO(47461): Fix the leaks and remove this.
non_rust_deps = [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
test_package("streammap_tests") {
deps = [ ":streammap_lib_test" ]
tests = [
{
name = "streammap_lib_test"
environments = basic_envs
},
]
}