Skip to main content

script/dom/bindings/
import.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5pub(crate) mod base {
6    pub(crate) use std::ptr;
7    pub(crate) use std::rc::Rc;
8
9    pub(crate) use js::context::JSContext;
10    #[expect(unused_imports)]
11    pub(crate) use js::realm::CurrentRealm;
12    pub(crate) use js::rust::{HandleObject, MutableHandleObject};
13}
14
15pub(crate) mod module {
16    pub(crate) use script_bindings::codegen::PrototypeList;
17    pub(crate) use script_bindings::conversions::IDLInterface;
18    pub(crate) use script_bindings::reflector::{
19        DomObjectIteratorWrap, DomObjectWrap, Reflector, WeakReferenceableDomObjectWrap,
20    };
21    pub(crate) use script_bindings::utils::DOMClass;
22
23    pub(crate) use super::base::*;
24    pub(crate) use crate::dom::bindings::iterable::IterableIterator;
25    pub(crate) use crate::dom::bindings::root::{Dom, Root};
26    pub(crate) use crate::dom::bindings::weakref::WeakReferenceable;
27}