welcome/welcome.rs
1use web_ui::{WebUI, WebUIConfig};
2
3#[tokio::main]
4async fn main() -> Result<(), Box<dyn std::error::Error>> {
5 let config = WebUIConfig::default()
6 .with_port(3030)
7 .with_title("My Web App".to_string())
8 .with_static_dir("./static".to_string());
9
10 let web_ui = WebUI::new(config);
11 web_ui.run().await?;
12
13 Ok(())
14}