Crates.io | w-boson |
lib.rs | w-boson |
version | 0.1.0 |
source | src |
created_at | 2024-09-05 12:28:13.349953 |
updated_at | 2024-09-05 12:28:13.349953 |
description | Windows port of backtrace-on-stack-overflow |
homepage | |
repository | https://github.com/mtshiba/w-boson |
max_upload_size | |
id | 1364529 |
size | 16,529 |
Windows port of backtrace-on-stack-overflow
use w_boson::enable;
// or use w_boson::enable_backtrace_on_stack_overflow;
fn recursive(n: usize) {
print!("{n}");
recursive(n+1);
}
fn main() {
unsafe { enable(); }
recursive(0);
}
To get the correct function names even in the release build, add the following settings to Cargo.toml
.
# Cargo.toml
[profile.release]
debug = true
MIT & Apache-2.0