pzzld-server 0.0.2

A production ready server optimized for WASM applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
    Appellation: server <binary>
    Contrib: FL03 <jo3mccain@icloud.com>
*/
use pzzld_server::{cli::Cli, platform::Platform, Settings};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // build the settings
    let cnf = dbg!(Settings::build()?);
    // initialize a new context
    let mut platform = Platform::from_config(cnf).with_tracing().finish();
    // parse the command line
    let cli = dbg!(Cli::new());
    // handle the command
    cli.handle(&mut platform.inner_mut()).await
}