| # Copyright 2022 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 | |
| # We don't have any tests to run, but building the test binary ensures all the | |
| # linking is correct. | |
| deps = [ ":rust_test" ] | |
| } | |
| ## 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") | |
| static_library("debug_sym_for_rust") { | |
| sources = [ "debug_sym_for_rust.cc" ] | |
| deps = [ | |
| "//src/lib/debug", | |
| "//src/lib/debug:backtrace-request", | |
| ] | |
| } | |
| rustc_library("rust") { | |
| sources = [ "src/lib.rs" ] | |
| crate_name = "debug" | |
| edition = "2024" | |
| link_deps = [ ":debug_sym_for_rust" ] | |
| visibility = [ | |
| ":*", | |
| "//src/connectivity/network/netstack3:*", | |
| "//src/devices/bin/driver-host:*", | |
| "//src/starnix/kernel/core:*", | |
| "//src/starnix/kernel/syscall_loop:*", | |
| "//src/storage/fxfs:*", | |
| "//src/sys/time/timekeeper/alarms:*", | |
| ] | |
| with_unit_tests = true | |
| } |