rs-jsonmaps2protomaps 0.1.0

Converts the JSON maps to the protobuf structs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;
use std::process::ExitCode;

use rs_jsonmaps2protomaps::stdin2jsonmaps2structs2stdout;

fn sub() -> Result<(), io::Error> {
    stdin2jsonmaps2structs2stdout()?;
    Ok(())
}

fn main() -> ExitCode {
    sub().map(|_| ExitCode::SUCCESS).unwrap_or_else(|e| {
        eprintln!("{e}");
        ExitCode::FAILURE
    })
}