w-boson

Crates.iow-boson
lib.rsw-boson
version0.1.0
sourcesrc
created_at2024-09-05 12:28:13.349953
updated_at2024-09-05 12:28:13.349953
descriptionWindows port of backtrace-on-stack-overflow
homepage
repositoryhttps://github.com/mtshiba/w-boson
max_upload_size
id1364529
size16,529
Shunsuke Shibayama (mtshiba)

documentation

README

w-boson

Windows port of backtrace-on-stack-overflow

Usage

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);
}

Notes

To get the correct function names even in the release build, add the following settings to Cargo.toml.

# Cargo.toml
[profile.release]
debug = true

License

MIT & Apache-2.0

Commit count: 0

cargo fmt