blob: bcfd9de5bedd9f35bf5e6b04642d7e21f2ca9974 [file] [log] [blame] [edit]
# 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")
group("tests") {
testonly = true
deps = [ ":starnix-loop-tests" ]
}
rustc_library("loop") {
name = "starnix-modules-loop"
edition = "2021"
version = "0.1.0"
source_root = "lib.rs"
with_unit_tests = true
# TODO(https://fxbug.dev/42059075): Re-enable starnix in these environments.
exclude_toolchain_tags = [
"asan",
"hwasan",
]
sources = [ "lib.rs" ]
configs += [ "//src/starnix/config:starnix_clippy_lints" ]
deps = [
"//sdk/rust/zx",
"//src/starnix/kernel:starnix_core",
"//src/starnix/lib/starnix_ext",
"//src/starnix/lib/starnix_logging",
"//src/starnix/lib/starnix_sync",
"//src/starnix/lib/starnix_syscalls",
"//src/starnix/lib/starnix_types",
"//src/starnix/lib/starnix_uapi",
"//third_party/rust_crates:bitflags",
]
test_deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-fs",
]
}
fuchsia_unittest_package("starnix-loop-tests") {
manifest = "meta/starnix_loop_tests.cml"
deps = [
":loop_test",
"//src/starnix/kernel:starnix-test-files",
]
test_type = "starnix"
}