blob: a520a071a8712e23b6b45c48f889cb9687c64633 [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/idk:idk_ffx_tool.bzl", "idk_ffx_tool")
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "lib",
srcs = [
"src/args.rs",
"src/lib.rs",
],
crate_name = "ffx_component_tool_lib",
edition = "2024",
target_compatible_with = HOST_OS_CONSTRAINTS,
deps = [
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/plugins/component/capability:lib",
"//src/developer/ffx/plugins/component/collection:lib",
"//src/developer/ffx/plugins/component/config:lib",
"//src/developer/ffx/plugins/component/copy:lib",
"//src/developer/ffx/plugins/component/create:lib",
"//src/developer/ffx/plugins/component/debug:lib",
"//src/developer/ffx/plugins/component/destroy:lib",
"//src/developer/ffx/plugins/component/doctor:lib",
"//src/developer/ffx/plugins/component/explore:lib",
"//src/developer/ffx/plugins/component/graph:lib",
"//src/developer/ffx/plugins/component/list:lib",
"//src/developer/ffx/plugins/component/reload:lib",
"//src/developer/ffx/plugins/component/resolve:lib",
"//src/developer/ffx/plugins/component/route:lib",
"//src/developer/ffx/plugins/component/run:lib",
"//src/developer/ffx/plugins/component/show:lib",
"//src/developer/ffx/plugins/component/start:lib",
"//src/developer/ffx/plugins/component/stop:lib",
"//src/developer/ffx/plugins/component/storage:lib",
"//third_party/rust_crates/vendor:argh",
],
)
# LINT.IfChange(ffx_component_tool)
idk_ffx_tool(
name = "ffx_component_tool",
srcs = ["src/main.rs"],
category = "partner",
edition = "2024",
idk_name = "ffx-component",
visibility = ["//:__subpackages__"],
deps = [
":lib",
"//src/developer/ffx/lib/fho:lib",
"//src/lib/fuchsia-async",
],
)
# LINT.ThenChange(//src/developer/ffx/plugins/component/BUILD.gn:ffx_component_tool)