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

23
crates/js-sys/Cargo.toml Normal file
View File

@ -0,0 +1,23 @@
[package]
name = "js-sys"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
readme = "./README.md"
categories = ["wasm"]
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Bindings for all JS global objects and functions in all JS environments like
Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate.
"""
[lib]
test = false
doctest = false
[dependencies]
wasm-bindgen = { path = "../..", version = "0.2.11" }
[dev-dependencies]
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }