21 lines
317 B
Rust
21 lines
317 B
Rust
use anyhow::Result;
|
|
|
|
mod game;
|
|
mod logging;
|
|
mod net;
|
|
mod util;
|
|
|
|
use common::data::init_assets;
|
|
use game::init_config;
|
|
use logging::init_tracing;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
init_tracing();
|
|
init_config();
|
|
init_assets();
|
|
|
|
net::gateway::listen("0.0.0.0", 23301).await?;
|
|
|
|
Ok(())
|
|
}
|