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 aborts.
//!
//! Prints a `"Calling libabort::abort()"` message to stderr first,
//! unless passed environment variable `SILENT` (env. var ignored)
//!
//! See `trapcli` for the counterpart that calls `trap()`.

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