| # Copyright 2022 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/rust/rustc_library.gni") |
| |
| # This is a cross toolchain lib |
| # used by //src/developer/lib/writer |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":lib_test" ] |
| } |
| |
| ## 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") |
| |
| # A self-verification target for generated content in this file. |
| if (is_host) { |
| verify_bazel2gn("verify_bazel2gn") { |
| } |
| } |
| |
| rustc_library("lib") { |
| sources = [ |
| "src/context.rs", |
| "src/error.rs", |
| "src/lib.rs", |
| "src/macros.rs", |
| ] |
| crate_name = "ffx_command_error" |
| edition = "2024" |
| proc_macro_deps = [ "//src/developer/ffx/lib/traceable_error/derive:lib" ] |
| assert_no_deps = [ |
| "//src/developer/ffx/config/*", |
| "//src/developer/ffx/daemon/*", |
| "//src/developer/ffx/frontends/*", |
| "//src/developer/ffx/playground/*", |
| "//src/developer/ffx/plugins/*", |
| "//src/developer/ffx/testing", |
| "//src/developer/ffx/tests/*", |
| "//src/developer/ffx/tools/*", |
| ] |
| test_deps = [ "//third_party/rust_crates:assert_matches" ] |
| version = "0.1.0" |
| with_unit_tests = true |
| deps = [ |
| "//src/developer/ffx/lib/errors:lib", |
| "//src/developer/ffx/lib/traceable_error:lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:argh", |
| "//third_party/rust_crates:thiserror", |
| ] |
| } |