| # 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/rust:defs.bzl", "rustc_library") | |
| package(default_applicable_licenses = ["//:license"]) | |
| rustc_library( | |
| name = "cli_args", | |
| srcs = [ | |
| "src/create_system.rs", | |
| "src/lib.rs", | |
| "src/product.rs", | |
| ], | |
| crate_name = "assembly_cli_args", | |
| edition = "2024", | |
| target_compatible_with = HOST_OS_CONSTRAINTS, | |
| visibility = [ | |
| "//build/assembly/tools/assembly:__pkg__", | |
| "//src/developer/ffx/plugins:__subpackages__", | |
| "//src/lib/assembly:__subpackages__", | |
| ], | |
| with_host_unit_tests = True, | |
| deps = [ | |
| "//src/developer/ffx/config:lib", | |
| "//third_party/rust_crates/vendor:argh", | |
| "//third_party/rust_crates/vendor:camino", | |
| "//third_party/rust_crates/vendor:serde", | |
| ], | |
| ) |