blob: 72515128a5b3bcf80f5b89cb9b11f1abb62a8495 [file] [log] [blame] [edit]
# Copyright 2023 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("host-watcher") {
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth.sys:fuchsia.bluetooth.sys_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/async-utils",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
test_deps = [
"//src/lib/async-utils",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:assert_matches",
]
sources = [ "src/lib.rs" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("host-watcher-tests") {
deps = [ ":host-watcher_test" ]
}
group("tests") {
testonly = true
deps = [ ":host-watcher-tests" ]
}