Registry / utility / backtrace-on-stack-overflow

backtrace-on-stack-overflow

JSON →
library0.3.0rscratesunverified

Best-effort backtrace printing when a stack overflow occurs.

# Cargo.toml [dependencies] backtrace-on-stack-overflow = "0.3.0"
INSTALL
IMPORT
SIG · BACKTRACE-ON-STACK
B
backtrace-on-stack-overflow
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

enable
use backtrace_on_stack_overflow::enable;

Enabling backtrace on stack overflow.

use backtrace_on_stack_overflow::enable; fn main() { enable(); // Trigger stack overflow fn recurse() { recurse(); } recurse(); }
Debug
Known issues
gotchaMay not work on all platforms or with certain optimizations.
fix
Test on target platform; disable optimizations if needed.
affects: *
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
backtrace-on-stack-overflow — cargo add backtrace-on-stack-overflow · libregistry