ptth/src/bin/ptth_server.rs

25 lines
386 B
Rust
Raw Normal View History

use std::{
error::Error,
path::PathBuf,
};
use structopt::StructOpt;
2020-11-06 04:18:47 +00:00
mod load_toml;
#[derive (Debug, StructOpt)]
struct Opt {
#[structopt (long)]
file_server_root: Option <PathBuf>,
}
#[tokio::main]
async fn main () -> Result <(), Box <dyn Error>> {
2020-11-06 04:18:47 +00:00
let config_file = load_toml::load ("config/ptth_server.toml");
2020-11-02 03:34:50 +00:00
2020-11-06 04:18:47 +00:00
ptth::server::run_server (
config_file,
None
).await
}