| # Copyright 2025 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") |
| |
| rustc_library("client") { |
| name = "fuchsia_component_client" |
| version = "0.1.0" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component:fuchsia.component_rust", |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", |
| "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| "//sdk/rust/zx", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fidl/rust_next/fidl_next", |
| "//src/lib/fuchsia-component/directory", |
| "//src/lib/fuchsia-fs", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:pin-project", |
| ] |
| |
| test_deps = [ |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component/tests:fuchsia.component.client.test_rust", |
| "//src/storage/lib/vfs/rust:vfs", |
| "//third_party/rust_crates:assert_matches", |
| ] |
| |
| sources = [ |
| "src/fidl_next.rs", |
| "src/lib.rs", |
| ] |
| } |
| |
| fuchsia_unittest_package("fuchsia-component-client-unittests") { |
| deps = [ ":client_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fuchsia-component-client-unittests" ] |
| } |