blob: 3cdde41fc5b1bb2248cea15a7e43d8012c32a15b [file] [log] [blame]
# Copyright 2025 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("core") {
name = "fdf_core"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/lib/async",
"//sdk/lib/driver/runtime/rust/fdf_sys",
"//sdk/rust/zx",
"//src/devices/lib/driver:driver_runtime",
"//third_party/rust_crates:futures",
]
test_deps = [
"//src/devices/bin/driver_runtime",
"//src/lib/fuchsia-async",
]
sources = [
"src/dispatcher.rs",
"src/handle.rs",
"src/lib.rs",
]
visibility = [
"//sdk/lib/driver/*",
"//src/devices/bin/driver-host/*",
]
}
fuchsia_unittest_package("fdf_rust_core_tests") {
deps = [ ":core_test" ]
}
group("tests") {
testonly = true
deps = [ ":fdf_rust_core_tests" ]
}