blob: 9c6a3e4cc0b29663dc5aa302382d0f0d3382f891 [file]
# Copyright 2026 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.
load("//build/bazel/rules/rust:rustc_library.bzl", "rustc_library")
load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "server",
srcs = [
"src/lib.rs",
"src/service.rs",
"src/until_stalled.rs",
],
crate_name = "fuchsia_component_server",
edition = "2024",
test_deps = [
"//src/lib/fuchsia",
"//src/lib/fuchsia-component/directory",
"//src/lib/fuchsia-component/tests:fuchsia.component.client.test_rust",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-sync",
"//src/lib/test_util",
"//third_party/rust_crates/vendor:assert_matches",
],
visibility = ["//src/lib/fuchsia-component:__pkg__"],
with_unit_tests = True,
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/detect-stall",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fidl/rust_next/fidl_next",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component/client",
"//src/lib/fuchsia-runtime",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:futures",
"//third_party/rust_crates/vendor:log",
"//third_party/rust_crates/vendor:pin-project",
"//third_party/rust_crates/vendor:thiserror",
],
)
fx_unittest_package(
name = "fuchsia-component-server-unittests",
unit_tests = [":server_test"],
)