awkrs 0.1.38

Awk implementation in Rust with broad CLI compatibility, parallel records, and experimental Cranelift JIT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `awkrs` binary — same engine as `ars` (`src/bin/ars.rs`).

use awkrs::run;
use awkrs::Error;

fn main() {
    let bin = env!("CARGO_BIN_NAME");
    match run(bin) {
        Ok(()) => {}
        Err(Error::Exit(code)) => std::process::exit(code),
        Err(e) => {
            eprintln!("{bin}: {e}");
            std::process::exit(1);
        }
    }
}