rosenpass 0.2.2

Build post-quantum-secure VPNs with WireGuard!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use log::error;
use rosenpass::{cli::Cli, sodium::sodium_init};
use std::process::exit;

/// Catches errors, prints them through the logger, then exits
pub fn main() {
    env_logger::init();
    match sodium_init().and_then(|()| Cli::run()) {
        Ok(_) => {}
        Err(e) => {
            error!("{e}");
            exit(1);
        }
    }
}