| # 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. | |
| assert(is_host, | |
| "ffx_fastboot_interface is for use with the host toolchain only") | |
| group("ffx_fastboot_interface") { | |
| public_deps = [ ":lib" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| rustc_library("lib") { | |
| sources = [ | |
| "src/fastboot_interface.rs", | |
| "src/fastboot_proxy.rs", | |
| "src/interface_factory.rs", | |
| "src/lib.rs", | |
| "src/stream.rs", | |
| "src/util.rs", | |
| ] | |
| crate_name = "ffx_fastboot_interface" | |
| edition = "2024" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx:*", | |
| "//src/developer/ffx/lib/diagnostics/checks:*", | |
| "//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/bootloader:*", | |
| "//src/developer/ffx/plugins/target/fastboot:*", | |
| "//src/developer/ffx/plugins/target/flash:*", | |
| "//src/developer/ffx/plugins/target/reboot:*", | |
| "//src/developer/ffx/plugins/target/status:*", | |
| ] | |
| deps = [ | |
| "//src/developer/fastboot:lib", | |
| "//src/developer/ffx/lib/futures:lib", | |
| "//src/developer/ffx/lib/usb_fastboot_discovery:lib", | |
| "//src/storage/lib/sparse/rust:lib", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:bytes", | |
| "//third_party/rust_crates:chrono", | |
| "//third_party/rust_crates:crc32fast", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| "//third_party/rust_crates:tokio", | |
| "//third_party/rust_crates:zerocopy", | |
| ] | |
| } | |
| } |