5 releases

new 0.0.5 Nov 3, 2024
0.0.4 Nov 3, 2024
0.0.3 Nov 3, 2024
0.0.2 Nov 3, 2024
0.0.1 Nov 2, 2024

#332 in GUI

Download history 156/week @ 2024-10-28

156 downloads per month

Apache-2.0

1MB
2K SLoC

Iced_webview Rust

A library to embed Web views in iced applications

Note: Currently this library only supports Ultralight/Webkit, but more rendering engines are planned to be supported.

Ultralight has its own licence that should be reviewed before deciding if it works for you

examples:

examples/embedded_webview

A simple example to showcase an embedded webview (uses the basic webview) image

cargo run --example embedded_webview --features ultralight-resources
examples/multi_webview

A more advanced example that uses the advanced webview module and has two simultaneous webviews open image

cargo run --example multi_webview --features ultralight-resources

Extra files (Resources)

Ultralight requires runtime resources. (cacert.pem, icudt67l.dat)

You can either set the path to them with the ULTRALIGHT_RESOURCES_DIR env. This varible can also be set in .cargo/config.toml. The resouces direcory can be downloaded from Ultralight SDK

Or Rust will do its best symlink the directory with --features ultralight-resources. If this fails please use ULTRALIGHT_RESOURCES_DIR

Deployment

The samples compiled rely on dynamic libraries provided by Ultralight:

  • libUltralightCore.so/UltralightCore.dll
  • libUltralight.so/Ultralight.dll
  • libWebCore.so/WebCore.dll
  • libAppCore.so/AppCore.dll

These can be downloaded from the Ultralight SDK.

Rust will download them during build as well, but are kept inside the target directory.

Dependencies

~44–63MB
~1M SLoC