blob: 545c1ba41c9f69c281f112bae014254ed2182b2b [file]
# 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.
group("tests") {
testonly = true
deps = [
":kalloc-rust-test-pkg",
":kalloc_test($host_toolchain)",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
rustc_library("kalloc") {
sources = [
"src/allocator.rs",
"src/boxed.rs",
"src/lib.rs",
]
edition = "2024"
visibility = [
":*",
"//zircon/kernel/*",
"//zircon/system/*",
]
deps = [
"//sdk/rust/zx-status",
"//third_party/rust_crates:pin-init",
"//third_party/rust_crates:zerocopy",
]
if (is_kernel) {
rustflags = [ "--cfg=is_kernel" ]
}
}
rustc_test("kalloc_test") {
sources = [
"src/allocator.rs",
"src/boxed.rs",
"src/lib.rs",
]
edition = "2024"
deps = [
"//sdk/rust/zx-status",
"//third_party/rust_crates:pin-init",
"//third_party/rust_crates:zerocopy",
]
}
fuchsia_unittest_package("kalloc-rust-test-pkg") {
package_name = "kalloc-rust-test-gn"
component_name = "kalloc-rust-test"
deps = [ ":kalloc_test" ]
}