blob: 05066d3bebf63204f3a04b31ccdb21f0d20a81f1 [file] [edit]
# 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.
import("//build/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("driver_manager_utils") {
with_unit_tests = true
edition = "2024"
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
sources = [
"src/dictionary_utils.rs",
"src/errors.rs",
"src/lib.rs",
"src/pkg_utils.rs",
]
deps = [
"//sdk/fidl/fuchsia.component.sandbox:fuchsia.component.sandbox_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/storage/lib/vfs/rust:vfs",
"//third_party/rust_crates:futures",
]
}
fuchsia_unittest_package("driver-manager-utils-unittests") {
deps = [ ":driver_manager_utils_test" ]
}
group("tests") {
testonly = true
deps = [ ":driver-manager-utils-unittests" ]
}