blob: 0bcdef4b63d8e02e70ea5af1704cc534d0b6bad9 [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/rules/host_tests:host_rustc_test.bzl", "host_rustc_test")
load("//src/developer/ffx/build:ffx_plugin.bzl", "ffx_plugin")
package(default_applicable_licenses = ["//:license"])
ffx_plugin(
name = "ffx_package_archive_list",
srcs = ["src/lib.rs"],
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates/vendor:argh",
],
args_srcs = ["src/args.rs"],
edition = "2024",
sdk_category = "not-yet-specified",
version = "0.1.0",
visibility = ["//src/developer/ffx/plugins/package/archive:__pkg__"],
deps = [
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/developer/ffx/plugins/package/archive:lib",
# prettytable-rs is a fork outside vendor/; GN reaches it through
# the //third_party/rust_crates:prettytable-rs alias group.
"//third_party/rust_crates/forks/prettytable-rs:prettytable", # @bazel2gn:path_overwrite://third_party/rust_crates:prettytable-rs
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:humansize",
],
)
host_rustc_test(
name = "ffx_package_archive_list_test",
crate = ":ffx_package_archive_list",
visibility = ["//src/developer/ffx:__pkg__"],
deps = ["//src/sys/pkg/lib/fuchsia-pkg"],
)