web_ui 0.1.1

A simple Rust library for creating local web interfaces with real-time communication
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use web_ui::{WebUI, WebUIConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = WebUIConfig::default()
        .with_port(3030)
        .with_title("My Web App".to_string())
        .with_static_dir("./static".to_string());

    let web_ui = WebUI::new(config);
    web_ui.run().await?;
    
    Ok(())
}