/webkit2gtk-rs

WebKit2 bindings and wrappers for Rust

Primary LanguageRustMIT LicenseMIT

webkit2gtk Build Status Gitter

Project site | Online documentation

Rust bindings and wrappers for webkit2gtk.

Building

webkit2gtk-rs expects GTK+, GLib and webkit2gtk development files to be installed on your system. See the requirements page.

Using

We recommend using crates from crates.io, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

[dependencies]
webkit2gtk-rs = { git = "https://github.com/gtk-rs/webkit2gtk-rs.git" }

Avoid mixing versioned and git crates like this:

# This will not compile
[dependencies]
gtk = "0.2"
webkit2gtk-rs = { git = "https://github.com/gtk-rs/webkit2gtk-rs.git" }

Contribute

Contributor you're welcome!

See the general bindings documentation.

Most of the bindings (src/auto) are generated by gir using this configuration file. After editing Gir.toml the sources can be regenerated with

> make gir

When opening a PR please put the changes to the src/auto directory in a separate commit.

License

webkit2gtk-rs is available under the MIT License, please refer to it.