Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
bevy_webview_wry
[!CAUTION] This crate is in the early stages of development and is subject to breaking changes.
Purpose
The purpose of this crate is integrate bevy and wry using bevy_flurx.
Platform Support
The operation has been confirmed on Windows and MacOS.
Linux is currently not supported.
Setup
Main process(bevy)
Add this to your Cargo.toml:
[]
= "0.1"
# necessary if you want to use ipc-command.
= "0.9"
= "0.1"
= "0.1"
Ui process(webview)
# optional if you want to use ipc-command.
pnpm i bevy_flurx_api
Or, you can also use the API directly from Window.__FLURX__ without installation.
Usage
There are two ways to create a webview:
Converts an existing window into a webview window.

Embedding Webview in a Window (Experimental)
Ipc
IpcEvent
You can listen events from the webview and, conversely, emit events to the webview.
Webview(javascript) -> bevy
javascript
// you can use any type.
const event = ;
window.__FLURX__.;
rust
use *;
use *;
use Deserialize;
bevy -> Webview(javascript)
javascript
const webviewWindow = window.__FLURX__.
webviewWindow.;
rust
IpcCommand
IpcEvent can't receive the output value from the other side.
In this case, IpcCommand can be used.
IpcComamnd can be divided into two command patterns: action-command, task-command
Please check examples/wry/ipc_command.rs for details.
ChangeLog
Please see here.
Compatible Bevy versions
| bevy_webview_wry | bevy_flurx | bevy |
|---|---|---|
| 0.1.0 ~ | 0.6 | 0.15 |
License
This crate is licensed under the MIT License or the Apache License 2.0.
Todo
- Support Linux(X11)
- Support Linux(Wayland)