blob: d69b9f780dc6006079ef28a417121186a2f67c5f [file] [log] [blame]
# Copyright 2024 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("hooks") {
edition = "2024"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_rust",
"//sdk/fidl/fuchsia.component.runner:fuchsia.component.runner_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/fuchsia-sync",
"//src/sys/component_manager/lib/errors",
"//src/sys/component_manager/lib/sandbox",
"//src/sys/lib/cm_rust",
"//src/sys/lib/cm_types",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
test_deps = [ "//src/lib/fuchsia" ]
sources = [ "src/lib.rs" ]
}
fuchsia_unittest_component("test_component") {
deps = [ ":hooks_test" ]
}
fuchsia_test_package("tests") {
package_name = "hooks_test"
test_components = [ ":test_component" ]
}