| # Copyright 2020 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") |
| |
| rustc_library("ffx_component") { |
| name = "ffx_component" |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust_fdomain", |
| "//src/developer/ffx/lib/errors:lib", |
| "//src/lib/fuchsia-url", |
| "//src/sys/lib/component_debug", |
| "//src/sys/lib/moniker", |
| "//third_party/rust_crates:anyhow", |
| ] |
| |
| if (is_host) { |
| deps += [ |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust", |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain", |
| "//src/developer/ffx/lib/rcs:lib", |
| "//src/developer/ffx/lib/rcs:lib_fdomain", |
| ] |
| } |
| |
| sources = [ |
| "src/format.rs", |
| "src/lib.rs", |
| "src/rcs.rs", |
| ] |
| } |