devela/lang/js/
mod.rs

1// devela::lang::js
2//
3//! Javascript interfacing.
4//
5
6mod definitions; // Js, JsEvent, JsPermission*
7
8#[cfg(feature = "unsafe_ffi")]
9crate::items! {
10    mod reexport; // js_reexport!
11
12    #[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "unsafe_ffi")))]
13    #[cfg_attr(feature = "nightly_doc", doc(cfg(target_arch = "wasm32")))]
14    // #[cfg(target_arch = "wasm32")]
15    #[cfg(not(windows))]
16    mod web_api;
17}
18
19crate::items! { // structural access: _mods, _all
20    #[allow(unused)]
21    pub use _mods::*;
22
23    mod _mods { #![allow(unused)]
24        pub use super::definitions::*;
25
26        #[cfg(feature = "unsafe_ffi")]
27        pub use super::reexport::*;
28
29        // WIPZONE
30        // #[cfg(feature = "alloc")]
31        // pub use super::bson::*;
32        // #[cfg(feature = "std")]
33        // pub use super::json::*;
34    }
35    pub(super) mod _all { #![allow(unused)]
36        #[doc(inline)]
37        pub use super::_mods::*;
38    }
39}
40// WIPZONE
41// #[cfg(feature = "alloc")]
42// mod bson;
43// #[cfg(feature = "std")]
44// mod json;