parmesan-par2 0.6.0

Fast, standalone PAR2 (Reed-Solomon) creation, verification and repair tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod cli;
mod command;
mod memory;

use anyhow::Result;

fn main() -> Result<()> {
    // Must run before any thread exists — see `memory` module docs (#137).
    memory::tune_allocator();
    tracing_subscriber::fmt::init();

    let command = cli::parse_env();
    // A hand-built runtime avoids `#[tokio::main]` sizing worker threads to
    // `nproc`; see `memory::build_runtime`.
    memory::build_runtime()?.block_on(command::run(command))
}