https://github.com/csmoe/iced-webview
An iced webview widget with chromium embedded framework.
https://github.com/csmoe/iced-webview
cef iced iced-webview webview
Last synced: about 2 months ago
JSON representation
An iced webview widget with chromium embedded framework.
- Host: GitHub
- URL: https://github.com/csmoe/iced-webview
- Owner: csmoe
- Created: 2025-04-12T07:16:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-01T07:37:05.000Z (6 months ago)
- Last Synced: 2025-12-03T18:51:03.217Z (6 months ago)
- Topics: cef, iced, iced-webview, webview
- Language: Rust
- Homepage:
- Size: 1.88 MB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webview Widget for iced-rs
It's in early development stage, almost a demo to verify the chromium embedded framework can be embedded into iced.

## Development
1. Download the prebuilt cef binaries
```
cargo install export-cef-dir
# linux/macos
export CEF_PATH=$(pwd)/target/cef
# windows powershell
$env:CEF_PATH="$PWD/target/cef"
export-cef-dir --force $CEF_PATH
```
2. Build
```
cargo build --example webview --release
# windows gpu rendering
$env:WGPU_BACKEND="dx12";
cargo build --example webview --release --features hw-renderer
# We need to bundle the binary as application on macOS
./examples/mac_bundler.rs
```
3. Run the example
```
# linux
./target/release/examples/webview
# windows
cp example/webview.exe.manifest target/release/examples/webview.exe.manifest
./target/release/examples/webview.exe
# macOS
open target/release/examples/webview.app
```