blob: c69e2bd45ee94717d4b852d6b8563af655fa65b6 [file] [log] [blame]
# Copyright 2017 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("fuchsia-component") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component-rustc",
"//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-runtime",
"//src/lib/storage/vfs/rust:vfs",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:pin-project",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"tests:fuchsia.component.client.test-rustc",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:assert_matches",
]
sources = [
"src/client.rs",
"src/lib.rs",
"src/server/mod.rs",
"src/server/service.rs",
]
}
fuchsia_unittest_package("fuchsia-component-unittests") {
deps = [ ":fuchsia-component_test" ]
}
group("tests") {
testonly = true
deps = [
":fuchsia-component-unittests",
"tests",
]
}