Skip to content

LegitCamper/iced_webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iced_webview Rust

A library to embed Web views in iced applications

Community Improvements

A huge shoutout to @franzos for creating an improved fork of this project: franzos/iced_webview_v2

Their version includes more features, many more engine options, and iced 14.0 support

If you're looking to use this project today, you should probably use their fork instead!

Notes

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

Ultralight has its own license 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 variable can also be set in .cargo/config.toml. The resources directory 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.

About

An easily embedded iced web view widget

Resources

License

Stars

Watchers

Forks

Contributors

Languages