blob: fa17b707de2a08d30471a06039e390328cc32de0 [file] [log] [blame]
# 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/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/testing/test_spec.gni")
assert(is_host,
"usb_fastboot_discovery is for use with the host toolchain only")
rustc_library("lib") {
name = "usb_fastboot_discovery"
edition = "2021"
with_unit_tests = true
visibility = [
":*",
"//src/developer/ffx/daemon/target:*",
"//src/developer/ffx/lib/diagnostics/checks:*",
"//src/developer/ffx/lib/discovery:*",
"//src/developer/ffx/lib/fastboot/connection_factory:*",
"//src/developer/ffx/lib/fastboot/transport/factory:*",
]
deps = [
"//src/lib/fuchsia-async",
"//src/lib/usb_rs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-channel",
"//third_party/rust_crates:log",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:pretty_assertions",
]
sources = [ "src/lib.rs" ]
}
group("usb_fastboot_discovery") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}