mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 09:41:33 +00:00
Expose objects and functions from the JavaScript global scope
These are bindings to JavaScript's standard, built-in objects and their methods and properties. This does *not* include any Web, Node, or any other JS environment APIs. Only the things that are guaranteed to exist in the global scope by the ECMAScript standard. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
//! interface.
|
||||
|
||||
#![feature(use_extern_macros, wasm_import_module, try_reserve, unsize)]
|
||||
#![cfg_attr(feature = "js_globals", feature(proc_macro, wasm_custom_section))]
|
||||
#![no_std]
|
||||
|
||||
#[cfg(feature = "serde-serialize")]
|
||||
@ -43,6 +44,13 @@ pub mod prelude {
|
||||
|
||||
pub mod convert;
|
||||
pub mod describe;
|
||||
#[cfg(feature = "js_globals")]
|
||||
pub mod js;
|
||||
|
||||
#[cfg(feature = "js_globals")]
|
||||
mod wasm_bindgen {
|
||||
pub use super::*;
|
||||
}
|
||||
|
||||
if_std! {
|
||||
extern crate std;
|
||||
|
Reference in New Issue
Block a user