Registry / other / wry
library0.55.0rscratesunverified

Cross-platform WebView rendering library for Rust.

# Cargo.toml [dependencies] wry = "0.55.0"
INSTALL
IMPORT
SIG · WRY
W
wry
otherrustv0.55.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Window
✓ use wry::application::window::Window;

Create a basic window with Wry.

use wry::application::{ event::{Event, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::WindowBuilder, }; fn main() { let event_loop = EventLoop::new(); let window = WindowBuilder::new() .with_title("Wry Example") .build(&event_loop) .unwrap(); event_loop.run(move |event, _, control_flow| { *control_flow = ControlFlow::Wait; match event { Event::WindowEvent { event: WindowEvent::CloseRequested, .. } => { *control_flow = ControlFlow::Exit; } _ => () } }); }
Debug
Known issues
gotchaRequires platform-specific dependencies (WebKitGTK on Linux, WebView2 on Windows).
fix
Install system dependencies: on Ubuntu: `sudo apt install libwebkit2gtk-4.1-dev`.
affects: >=0.1.0
Upgrade
Version history
0.55.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Resources
wry — cargo add wry · libregistry