| # 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. | |
| assert(is_host, "Assembly libraries are host-only") | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_host) { | |
| rustc_library("api") { | |
| sources = [ | |
| "src/api.rs", | |
| "src/lib.rs", | |
| "src/release_info.rs", | |
| ] | |
| crate_name = "assembly_api" | |
| edition = "2024" | |
| version = "0.1.0" | |
| visibility = [ | |
| ":*", | |
| "//src/developer/ffx/plugins/assembly:*", | |
| "//src/developer/ffx/plugins/product/get_version:*", | |
| "//src/developer/ffx/plugins/product_bundle/bisect:*", | |
| "//src/developer/ffx/plugins/product_bundle/create:*", | |
| "//src/lib/assembly:*", | |
| ] | |
| with_unit_tests = true | |
| deps = [ | |
| "//src/developer/ffx/config:lib", | |
| "//src/lib/assembly/cli_args", | |
| "//src/lib/assembly/release_info", | |
| "//src/lib/assembly/tool", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:camino", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tempfile", | |
| ] | |
| } | |
| } |