Skip to main content

gpui_web/
gpui_web.rs

1#![cfg(target_family = "wasm")]
2
3//! GPUI's browser platform uses one document-owned canvas and supports one top-level window.
4//! Browser WebGPU is preferred by default, with an automatic WebGL2 fallback. Applications can
5//! force either backend with [`WebBackendPreference`]. Opening a second top-level window, or
6//! reopening one after it closes, returns [`WebWindowError`].
7
8mod dispatcher;
9mod display;
10mod events;
11mod http_client;
12mod ime_mirror;
13mod keyboard;
14mod logging;
15mod platform;
16mod window;
17
18pub use dispatcher::WebDispatcher;
19pub use display::WebDisplay;
20pub use gpui_wgpu::WebBackendPreference;
21pub use http_client::{FetchCredentials, FetchHttpClient};
22pub use keyboard::WebKeyboardLayout;
23pub use logging::init_logging;
24pub use platform::{WebPlatform, WebWindowError};
25pub use window::WebWindow;