mirror of
https://github.com/tauri-apps/web-view.git
synced 2026-02-04 02:11:18 +01:00
19 lines
413 B
Rust
19 lines
413 B
Rust
#![windows_subsystem = "windows"]
|
|
|
|
extern crate web_view;
|
|
|
|
use web_view::*;
|
|
|
|
fn main() {
|
|
web_view::builder()
|
|
.title("Rust / PureScript - Todo App")
|
|
.content(Content::Html(include_str!("todo-ps/dist/bundle.html")))
|
|
.size(320, 480)
|
|
.resizable(false)
|
|
.debug(true)
|
|
.user_data(())
|
|
.invoke_handler(|_webview, _arg| Ok(()))
|
|
.run()
|
|
.unwrap();
|
|
}
|