web-view 0.2.1

Rust bindings for webview, a tiny cross-platform library to render web-based GUIs for desktop applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![windows_subsystem = "windows"]

extern crate web_view;

use web_view::*;

fn main() {
	let size = (320, 480);
	let resizable = false;
	let debug = true;
	let init_cb = |_webview| {};
	let frontend_cb = |_webview: &mut _, _arg: &_, _userdata: &mut _| {};
	let userdata = ();
	let html = include_str!("todo-ps/dist/bundle.html");
	run("Rust / PureScript - Todo App", Content::Html(html), Some(size), resizable, debug, init_cb, frontend_cb, userdata);
}