vaserve 14.2.4

Static file serving and directory listing - a Rust clone of vercel/serve
Documentation
use std::process;

use vaserve::cli;
use vaserve::server;

#[tokio::main]
async fn main() {
    let args = cli::parse_args();

    if args.help {
        cli::print_help();
        process::exit(0);
    }

    if args.version {
        println!("{}", env!("CARGO_PKG_VERSION"));
        process::exit(0);
    }

    if let Err(e) = server::start(args).await {
        eprintln!("ERROR: {}", e);
        process::exit(1);
    }
}