| # 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("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS") |
| load("//build/bazel/rules/rust:defs.bzl", "rustc_library") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| rustc_library( |
| name = "lib", |
| srcs = [ |
| "src/adapters.rs", |
| "src/fho_env.rs", |
| "src/from_env.rs", |
| "src/lib.rs", |
| "src/null_writer.rs", |
| "src/subtool.rs", |
| "src/subtool_suite.rs", |
| "src/try_from_env.rs", |
| ], |
| crate_name = "fho", |
| edition = "2024", |
| proc_macro_deps = [ |
| "//src/developer/ffx/lib/fho/macro:lib", |
| "//third_party/rust_crates/vendor:async-trait", |
| ], |
| target_compatible_with = HOST_CONSTRAINTS, |
| test_deps = [ |
| "//src/lib/fuchsia", |
| "//third_party/rust_crates:tempfile", |
| ], |
| version = "0.1.0", |
| with_host_unit_tests = True, |
| deps = [ |
| "//src/developer/ffx/command:lib", |
| "//src/developer/ffx/command/error:lib", |
| "//src/developer/ffx/config:lib", |
| "//src/developer/ffx/lib/diagnostics/analytics/state:lib", |
| "//src/developer/ffx/lib/fho/metadata:lib", |
| "//src/developer/lib/writer:lib", |
| "//third_party/rust_crates/vendor:anyhow", |
| "//third_party/rust_crates/vendor:argh", |
| "//third_party/rust_crates/vendor:async-lock", |
| "//third_party/rust_crates/vendor:futures", |
| "//third_party/rust_crates/vendor:log", |
| "//third_party/rust_crates/vendor:serde", |
| "//third_party/rust_crates/vendor:serde_json", |
| ], |
| ) |