| Chris Drouillard | 638ac85 | 2025-04-01 14:01:05 -0700 | [diff] [blame] | 1 | # Copyright 2025 The Fuchsia Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/components.gni") |
| 6 | import("//build/rust/rustc_library.gni") |
| 7 | |
| 8 | rustc_library("client") { |
| 9 | name = "fuchsia_component_client" |
| 10 | version = "0.1.0" |
| Sarah Chan | 5393930 | 2025-12-06 16:06:32 -0800 | [diff] [blame^] | 11 | edition = "2021" |
| Chris Drouillard | 638ac85 | 2025-04-01 14:01:05 -0700 | [diff] [blame] | 12 | with_unit_tests = true |
| 13 | |
| 14 | deps = [ |
| 15 | "//sdk/fidl/fuchsia.component:fuchsia.component_rust", |
| 16 | "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl_rust", |
| 17 | "//sdk/fidl/fuchsia.io:fuchsia.io_rust", |
| 18 | "//sdk/rust/zx", |
| 19 | "//src/lib/fdio/rust:fdio", |
| 20 | "//src/lib/fidl/rust/fidl", |
| David Koloski | edb41c9 | 2025-08-18 14:28:04 -0700 | [diff] [blame] | 21 | "//src/lib/fidl/rust_next/fidl_next", |
| Chris Drouillard | 638ac85 | 2025-04-01 14:01:05 -0700 | [diff] [blame] | 22 | "//src/lib/fuchsia-component/directory", |
| 23 | "//src/lib/fuchsia-fs", |
| 24 | "//third_party/rust_crates:anyhow", |
| 25 | "//third_party/rust_crates:futures", |
| 26 | "//third_party/rust_crates:pin-project", |
| 27 | ] |
| 28 | |
| 29 | test_deps = [ |
| 30 | "//src/lib/fuchsia-async", |
| 31 | "//src/lib/fuchsia-component/tests:fuchsia.component.client.test_rust", |
| 32 | "//src/storage/lib/vfs/rust:vfs", |
| 33 | "//third_party/rust_crates:assert_matches", |
| 34 | ] |
| 35 | |
| David Koloski | edb41c9 | 2025-08-18 14:28:04 -0700 | [diff] [blame] | 36 | sources = [ |
| 37 | "src/fidl_next.rs", |
| 38 | "src/lib.rs", |
| 39 | ] |
| Chris Drouillard | 638ac85 | 2025-04-01 14:01:05 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | fuchsia_unittest_package("fuchsia-component-client-unittests") { |
| 43 | deps = [ ":client_test" ] |
| 44 | } |
| 45 | |
| 46 | group("tests") { |
| 47 | testonly = true |
| 48 | deps = [ ":fuchsia-component-client-unittests" ] |
| 49 | } |