Skip to main content

rustolio_utils/web_sys/
mod.rs

1//
2// SPDX-License-Identifier: MPL-2.0
3//
4// Copyright (c) 2026 Tobias Binnewies. All rights reserved.
5//
6// This Source Code Form is subject to the terms of the Mozilla Public
7// License, v. 2.0. If a copy of the MPL was not distributed with this
8// file, You can obtain one at http://mozilla.org/MPL/2.0/.
9//
10
11mod array;
12mod event;
13mod future;
14mod globals;
15mod storage;
16mod url;
17
18pub mod prelude {
19    pub use super::array::ArrayExt as _;
20    pub use super::event::EventExt as _;
21    pub use super::future::FutureExt as _;
22    pub use super::storage::LocalStorage;
23    pub use super::url::UrlExt as _;
24
25    pub use super::globals::*;
26
27    pub use wasm_bindgen::prelude::{Closure, JsCast, JsError, JsValue, UnwrapThrowExt};
28
29    // js_sys
30    pub use js_sys;
31
32    // web_sys
33    pub use web_sys::{Document, Node, Window};
34    pub mod raw {
35        pub use web_sys::SupportedType;
36    }
37    pub use web_sys::{
38        ClipboardEvent, DragEvent, Event, FocusEvent, HtmlCollection, HtmlElement,
39        HtmlInputElement, HtmlOptionElement, HtmlSelectElement, InputEvent, KeyEvent,
40        KeyboardEvent, MediaQueryListEvent, MouseEvent, PointerEvent, TouchEvent,
41    };
42}