[][src]Crate web_view

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

Color

An RGBA color.

DialogBuilderDeprecated

A builder for opening a new dialog window.

Handle

A thread-safe handle to a WebView instance. Used to dispatch closures onto its task queue.

WebView

An owned webview instance.

WebViewBuilder

Builder for constructing a WebView instance.

Enums

Content

Content displayable inside a WebView.

Error

A WebView error.

Traits

CustomError

Functions

builder

Constructs a new builder for a WebView.

escape

Escape a string to pass it into JavaScript.

Type Definitions

WVResult

A WebView result.