blob: a90cb25c63302cccb9957c268b6d4930d7271363 [file] [log] [blame]
# Copyright 2023 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")
visibility = [
"//src/sys/component_manager/*",
"//src/sys/lib/elf_runner/*",
]
group("tests") {
testonly = true
deps = [ ":serve_processargs_unittests" ]
}
rustc_library("serve_processargs") {
edition = "2024"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-runtime",
"//src/storage/lib/vfs/rust:vfs",
"//src/sys/component_manager/lib/router_error",
"//src/sys/component_manager/lib/sandbox",
"//src/sys/lib/cm_types",
"//src/sys/lib/namespace",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:test-case",
]
sources = [
"src/lib.rs",
"src/namespace.rs",
]
}
# Run with `fx test serve_processargs_unittests`.
fuchsia_unittest_package("serve_processargs_unittests") {
deps = [ ":serve_processargs_test" ]
}