ryg-rans-rs-cli 0.1.25

Production-grade CLI for rANS entropy coding — encode, decode, inspect, verify, compare, benchmark
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # ryg-rans — rANS entropy coding CLI
//!
//! Thin binary entry point.  All logic lives in `ryg_rans_rs_cli::run`.
//!
//! ## Safety
//!
//! This binary uses safe public APIs only.  SIMD acceleration is accessed
//! through the facade crate's safe auto-dispatch functions.

fn main() -> std::process::ExitCode {
    let code = ryg_rans_rs_cli::run(
        std::env::args_os(),
        &mut std::io::stdin().lock(),
        &mut std::io::stdout().lock(),
        &mut std::io::stderr().lock(),
    );
    std::process::ExitCode::from(if code == 0 { 0u8 } else { 1u8 })
}