Crates.io | iced_webview |
lib.rs | iced_webview |
version | |
source | src |
created_at | 2024-11-02 23:40:45.031619 |
updated_at | 2024-11-03 19:24:48.737955 |
description | iced webview library |
homepage | |
repository | https://github.com/LegitCamper/iced_webview/ |
max_upload_size | |
id | 1433259 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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/embedded_webview
A simple example to showcase an embedded webview (uses the basic webview)
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
cargo run --example multi_webview --features ultralight-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 useULTRALIGHT_RESOURCES_DIR
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.