| # Copyright 2021 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") |
| import("//build/rust/rustc_test.gni") |
| import("//build/testing/test_spec.gni") |
| |
| rustc_library("lib") { |
| name = "services" |
| edition = "2018" |
| with_unit_tests = true |
| |
| deps = [ |
| "macros:lib", |
| "//sdk/fidl/fuchsia.developer.bridge:fuchsia.developer.bridge-rustc", |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol-rustc", |
| "//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics-rustc", |
| "//src/developer/ffx/core:lib", |
| "//src/developer/ffx/daemon/core:lib", |
| "//src/developer/ffx/daemon/events:lib", |
| "//src/developer/ffx/daemon/target:lib", |
| "//src/developer/ffx/lib/services/fidl:fuchsia.ffx.test-rustc", |
| "//src/lib/async-utils", |
| "//src/lib/diagnostics/selectors", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-io", |
| "//third_party/rust_crates:async-lock", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/context.rs", |
| "src/lib.rs", |
| "src/prelude.rs", |
| "src/register.rs", |
| "src/services.rs", |
| "src/testing/fake_daemon.rs", |
| "src/testing/mod.rs", |
| ] |
| } |
| |
| group("services") { |
| deps = [ ":lib" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":lib_test($host_toolchain)" ] |
| } |