| # 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/components.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| # NOTE: Ensure that //src/sys/component_manager:component-manager is |
| # also built as part of your test. Currently it is not possible to |
| # create this dependency automatically. |
| # |
| # TODO(fxbug.dev/64460): Create a stronger dependency between test_utils_lib |
| # and //src/sys/component_manager:component-manager |
| |
| rustc_library("test_utils_lib") { |
| name = "test_utils_lib" |
| edition = "2021" |
| source_root = "lib.rs" |
| testonly = true |
| |
| deps = [ |
| "//examples/components/routing/fidl:echo-rustc", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-fs", |
| "//src/lib/storage/vfs/rust:vfs", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//src/sys/component_manager/tests/fidl:components-rustc", |
| "//src/sys/component_manager/tests/fidl:echofactory-rustc", |
| "//src/sys/lib/component-events", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:lazy_static", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:paste", |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "lib.rs", |
| "opaque_test.rs", |
| "trigger_capability.rs", |
| ] |
| } |