mirror of
https://github.com/tauri-apps/web-view.git
synced 2026-02-04 18:31:17 +01:00
19 lines
409 B
Rust
19 lines
409 B
Rust
#![windows_subsystem = "windows"]
|
|
|
|
extern crate web_view;
|
|
|
|
use web_view::*;
|
|
|
|
fn main() {
|
|
web_view::builder()
|
|
.title("Minimal webview example")
|
|
.content(Content::Url("https://en.m.wikipedia.org/wiki/Main_Page"))
|
|
.size(800, 600)
|
|
.resizable(true)
|
|
.debug(true)
|
|
.user_data(())
|
|
.invoke_handler(|_webview, _arg| Ok(()))
|
|
.run()
|
|
.unwrap();
|
|
}
|