blob: 015a7a0ba59a35c322fe22f594178ee29b101877 [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_setui_display",
srcs = [
"src/get.rs",
"src/lib.rs",
"src/set.rs",
"src/watch.rs",
],
args_deps = [
"//sdk/fidl/fuchsia.settings:fuchsia.settings_rust_fdomain",
"//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/setui:__pkg__"],
deps = [
"//sdk/fidl/fuchsia.settings:fuchsia.settings_rust_fdomain",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/developer/ffx/plugins/setui/utils",
"//third_party/rust_crates/vendor:anyhow",
],
)
host_rustc_test(
name = "ffx_setui_display_args_test",
crate = ":ffx_setui_display_args",
visibility = ["//src/developer/ffx:__pkg__"],
)
host_rustc_test(
name = "ffx_setui_display_test",
crate = ":ffx_setui_display",
visibility = ["//src/developer/ffx:__pkg__"],
deps = [
"//src/lib/fdomain/local",
"//src/lib/fuchsia",
"//third_party/rust_crates/vendor:test-case",
],
)