blob: d96053d8a33289fef16e937acd89fb1dae8d8108 [file] [log] [blame] [edit]
# 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")
if (is_host) {
rustc_library("lib") {
name = "ffx_target"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.developer.ffx:fuchsia.developer.ffx_rust",
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [ "src/lib.rs" ]
}
}
group("tests") {
testonly = true
deps = [ ":lib_test($host_toolchain)" ]
}
group("target") {
deps = [ ":lib($host_toolchain)" ]
}