html_view 0.2.2

A Rust library for rendering HTML content in a native tauri application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Simple example showing basic usage of html_view.

fn main() -> Result<(), html_view::ViewerError> {
    // Display simple HTML - blocks until window is closed
    html_view::show(
        "<!DOCTYPE html>
        <html>
        <body style=\"padding: 40px; font-family: Arial;\">
            <h1>Simple Example</h1>
            <p>This is a simple HTML viewer example.</p>
        </body>
        </html>",
    )?;

    println!("Window was closed!");

    Ok(())
}