blob: 60d2cb46ee6cef9d168512b41b1c6df0c95e5923 [file]
# Copyright 2026 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.
load("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS")
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "lib",
srcs = [
"src/lib.rs",
"src/tcp.rs",
"src/udp.rs",
],
crate_name = "ffx_fastboot_transport_interface",
edition = "2024",
target_compatible_with = HOST_CONSTRAINTS,
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:pretty_assertions",
],
version = "0.1.0",
visibility = [
"//src/developer/ffx/lib/discovery:__pkg__",
"//src/developer/ffx/lib/fastboot:__pkg__",
"//src/developer/ffx/lib/fastboot/connection_factory:__pkg__",
"//src/developer/ffx/lib/fastboot/transport/factory:__pkg__",
"//src/developer/ffx/lib/manual_targets:__pkg__",
"//src/developer/ffx/plugins/target/fastboot:__pkg__",
"//visibility:private",
],
with_host_unit_tests = True,
deps = [
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/timeout:lib",
"//third_party/rust_crates/vendor:byteorder",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:log",
"//third_party/rust_crates/vendor:socket2",
"//third_party/rust_crates/vendor:thiserror",
"//third_party/rust_crates/vendor:tokio",
"//third_party/rust_crates/vendor:zerocopy",
],
)