blob: 49a44d72a95573be3947b33603f4b33b884f89e8 [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/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/testing/test_spec.gni")
assert(
is_host,
"ffx_fastboot_transport_interface is for use with the host toolchain only")
rustc_library("lib") {
name = "ffx_fastboot_transport_interface"
edition = "2024"
with_unit_tests = true
visibility = [
":*",
"//src/developer/ffx/lib/fastboot:*",
"//src/developer/ffx/lib/fastboot/connection_factory:*",
"//src/developer/ffx/lib/fastboot/transport/factory:*",
"//src/developer/ffx/lib/manual_targets:*",
"//src/developer/ffx/plugins/target/fastboot:*",
]
deps = [
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/timeout:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:socket2",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:zerocopy",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:pretty_assertions",
]
sources = [
"src/lib.rs",
"src/tcp.rs",
"src/udp.rs",
]
}
group("ffx_fastboot_transport_interface") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}