blob: b14cf26f2e06d41672a72850866296bfc16c4c73 [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("//build/bazel/platforms:constraints.bzl", "HOST_OS_CONSTRAINTS")
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "lib",
srcs = [
"src/command.rs",
"src/lib.rs",
"src/reply.rs",
"src/test_transport.rs",
],
crate_name = "fastboot",
edition = "2024",
proc_macro_deps = [
"//third_party/rust_crates/vendor:async-trait",
],
target_compatible_with = HOST_OS_CONSTRAINTS,
test_deps = [
"//src/lib/fuchsia",
],
visibility = [
"//src/developer/ffx:__pkg__",
"//src/developer/ffx/lib/discovery:__pkg__",
"//src/developer/ffx/lib/fastboot:__pkg__",
"//src/developer/ffx/lib/fastboot/interface:__pkg__",
"//src/developer/ffx/lib/fastboot/transport/factory:__pkg__",
],
with_host_unit_tests = True,
deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates/vendor:async-fs",
"//third_party/rust_crates/vendor:chrono",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:log",
"//third_party/rust_crates/vendor:thiserror",
"//third_party/rust_crates/vendor:tokio",
],
)