run_server

Function run_server 

Source
pub async fn run_server<P: AsRef<Path>>(config_path: P) -> Result<()>
Expand description

Convenience function to start a parser proxy server with default settings

§Arguments

  • config_path - Path to the TOML configuration file

§Examples

use parser_proxy_ws::run_server;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    run_server("config.toml").await?;
    Ok(())
}