Crates.io | webview |
lib.rs | webview |
version | 0.1.1 |
source | src |
created_at | 2018-01-11 17:58:36.737111 |
updated_at | 2018-02-02 19:43:39.012708 |
description | Tiny cross-platform UI library for Rust that uses a webview for rendering HTML5 |
homepage | https://github.com/alanhoff/rust-webview |
repository | https://github.com/alanhoff/rust-webview |
max_upload_size | |
id | 46415 |
size | 75,420 |
⚠️ This project is a work in progress. Very alpha. Really.
This crate uses C bindings from zserge/webview to display a Rust controllable webview for rendering modern UI interfaces using web technology. Included features:
hello_world
example is less than 200KB
when packed121MB
smallerextern crate webview;
use webview::{Content, WebView};
fn main() {
let view = WebView::new(
"My awesome title", // The title of the window
Content::Html("<h1>Hello world!</h1>"), // The content to display
200, // Width
100, // Height
false, // Resizable?
false, // Debugable?
).unwrap();
// Starts the event loop
view.join();
}
Copyright 2018 Alan Hoffmeister <alanhoffmeister@gmail.com>
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.