Crate web_view

source ·
Expand description

Build Status Latest Version

This library provides Rust bindings for the webview library to allow easy creation of cross-platform Rust desktop apps with GUIs based on web technologies.

It supports two-way bindings for communication between the Rust backend and JavaScript frontend.

It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) on Windows, so your app will be much leaner than with Electron.

To use a custom version of webview, define an environment variable WEBVIEW_DIR with the path to its source directory.

For usage info please check out the examples and the original readme.

Structs

An RGBA color.
A builder for opening a new dialog window.
A thread-safe handle to a WebView instance. Used to dispatch closures onto its task queue.
An owned webview instance.
Builder for constructing a WebView instance.

Enums

Content displayable inside a WebView.
A WebView error.

Traits

Functions

Constructs a new builder for a WebView.
Escape a string to pass it into JavaScript.

Type Definitions

A WebView result.