libabort 0.1.9

A abort function that doesn't require the standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A simple command-line app that immediately traps.
//!
//! Prints a `"Calling libabort::trap()"` message to stderr first,
//! unless passed environment variable `SILENT` (env. var ignored)
//!
//! See `abortcli` for the counterpart that calls `abort()`.

fn main() {
    if std::env::var_os("SILENT").is_none() {
        eprintln!("Calling libabort::trap()");
    }
    libabort::trap();
}