Move the js module to a js_sys crate (#512)

* Move the `js` module to a `js_sys` crate

* Update js-sys tests to pass again

* Update binding_to_unimplemented_apis_doesnt_break_everything

Remove its dependency on the `js` module

* Update metadata for js-sys

* Fix the `closures` example
This commit is contained in:
Alex Crichton
2018-07-19 14:30:58 -05:00
committed by GitHub
parent 3e2d1e6519
commit 6eef5f7b52
36 changed files with 683 additions and 605 deletions

2398
src/js.rs

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,6 @@
//! interface.
#![feature(use_extern_macros, wasm_import_module, unsize)]
#![cfg_attr(feature = "js_globals", feature(use_extern_macros))]
#![no_std]
#[cfg(feature = "serde-serialize")]
@ -45,13 +44,6 @@ 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;