| # Copyright 2025 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. | |
| import("//build/host.gni") | |
| import("//build/rust/rustc_library.gni") | |
| import("//src/developer/ffx/config.gni") | |
| assert(is_host, "ffx_executor is for use with the host toolchain only") | |
| rustc_library("lib") { | |
| name = "ffx_executor" | |
| version = "0.1.0" | |
| edition = "2024" | |
| with_unit_tests = true | |
| deps = [ | |
| "//src/developer/ffx/lib/writer:lib", | |
| "//src/lib/fuchsia-async", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:schemars", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| test_deps = [ "//src/lib/fuchsia" ] | |
| sources = [ | |
| "src/lib.rs", | |
| "src/strict.rs", | |
| "src/test.rs", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":lib_test" ] | |
| } | |
| group("executor") { | |
| testonly = true | |
| deps = [ | |
| ":lib", | |
| ":tests", | |
| ] | |
| } |