blob: 76de865d934903882dbc8b174c3d20b32b5c496e [file] [log] [blame]
# Copyright 2021 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("profile-client") {
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures-test",
]
sources = [
"src/error.rs",
"src/lib.rs",
]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
rustc_library("test-profile-server") {
edition = "2021"
testonly = true
deps = [
":profile-client",
"//sdk/fidl/fuchsia.bluetooth.bredr:fuchsia.bluetooth.bredr_rust",
"//src/connectivity/bluetooth/lib/fuchsia-bluetooth",
"//src/lib/fidl/rust/fidl",
"//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("profile-client-tests") {
deps = [ ":profile-client_test" ]
}
group("tests") {
testonly = true
deps = [ ":profile-client-tests" ]
}