15 lines
264 B
Rust
15 lines
264 B
Rust
|
use clap::Parser;
|
||
|
|
||
|
mod server;
|
||
|
use moq_api::ApiError;
|
||
|
use server::{Server, ServerConfig};
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() -> Result<(), ApiError> {
|
||
|
env_logger::init();
|
||
|
|
||
|
let config = ServerConfig::parse();
|
||
|
let server = Server::new(config);
|
||
|
server.run().await
|
||
|
}
|