mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 14:12:13 +00:00
Bump to 0.2.12 (#515)
* Bump to 0.2.12 * Update all version numbers and deps * Update all listed authors to `["The wasm-bindgen Developers"]` * Update `repository` links to specific paths for each crate * Update `homepage` links to the online book * Update all links away from `alexcrichton/wasm-bindgen` * Add `#[doc]` directives for HTML URLs * Update more version requirements * Fill out CHANGELOG
This commit is contained in:
parent
cbeb301371
commit
aa348f963f
43
CHANGELOG.md
43
CHANGELOG.md
@ -2,33 +2,38 @@
|
|||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
## Unreleased
|
## 0.2.12
|
||||||
|
|
||||||
Released YYYY/MM/DD.
|
Released 2018/07/19.
|
||||||
|
|
||||||
|
This release is mostly internal refactorings and minor improvements to the
|
||||||
|
existing crates and functionality, but the bigs news is an upcoming `js-sys` and
|
||||||
|
`web-sys` set of crates. The `js-sys` crate will expose [all global JS
|
||||||
|
bindings][js-all] and the `web-sys` crate will be generated from WebIDL to
|
||||||
|
expose all APIs browsers have. More info on this soon!
|
||||||
|
|
||||||
|
[js-all]: https://github.com/rustwasm/wasm-bindgen/issues/275
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* TODO (or remove section if none)
|
* Support for `Option<T>` was added where `T` can be a number of slices or
|
||||||
|
imported types.
|
||||||
|
* Comments in Rust are now preserved in generated JS bindings, as well as
|
||||||
|
comments being generated to indicate the types of arguments/return values.
|
||||||
|
* The online documentation has been reorganized [into a book][book].
|
||||||
|
* The generated JS is now formatted better by default for readability.
|
||||||
|
* A `--keep-debug` flag has been added to the CLI to retain debug sections by
|
||||||
|
default. This happens by default when `--debug` is passed.
|
||||||
|
|
||||||
### Changed
|
[book]: https://rustwasm.github.io/wasm-bindgen/
|
||||||
|
|
||||||
* TODO (or remove section if none)
|
|
||||||
|
|
||||||
### Deprecated
|
|
||||||
|
|
||||||
* TODO (or remove section if none)
|
|
||||||
|
|
||||||
### Removed
|
|
||||||
|
|
||||||
* TODO (or remove section if none)
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* TODO (or remove section if none)
|
* Compilation with the latest nightly compiler has been fixed (nightlies on and
|
||||||
|
after 2018-07-19)
|
||||||
### Security
|
* Declarations of an imported function in multiple crates have been fixed to not
|
||||||
|
conflict.
|
||||||
* TODO (or remove section if none)
|
* Compilation with `#![deny(missing_docs)]` has been fixed.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
12
Cargo.toml
12
Cargo.toml
@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen"
|
name = "wasm-bindgen"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
categories = ["wasm"]
|
categories = ["wasm"]
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen"
|
documentation = "https://docs.rs/wasm-bindgen"
|
||||||
description = """
|
description = """
|
||||||
Easy support for interacting between JS and Rust.
|
Easy support for interacting between JS and Rust.
|
||||||
@ -27,12 +27,12 @@ serde-serialize = ["serde", "serde_json", "std"]
|
|||||||
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
|
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.11" }
|
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.12" }
|
||||||
serde = { version = "1.0", optional = true }
|
serde = { version = "1.0", optional = true }
|
||||||
serde_json = { version = "1.0", optional = true }
|
serde_json = { version = "1.0", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test-project-builder = { path = "crates/test-project-builder", version = '=0.2.11' }
|
wasm-bindgen-test-project-builder = { path = "crates/test-project-builder" }
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-backend"
|
name = "wasm-bindgen-backend"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen-backend"
|
documentation = "https://docs.rs/wasm-bindgen-backend"
|
||||||
description = """
|
description = """
|
||||||
Backend code generation of the wasm-bindgen tool
|
Backend code generation of the wasm-bindgen tool
|
||||||
@ -20,4 +20,4 @@ proc-macro2 = "0.4.8"
|
|||||||
quote = '0.6'
|
quote = '0.6'
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
syn = { version = '0.14', features = ['full', 'visit-mut'] }
|
syn = { version = '0.14', features = ['full', 'visit-mut'] }
|
||||||
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
|
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
#![cfg_attr(feature = "extra-traits", deny(missing_debug_implementations))]
|
#![cfg_attr(feature = "extra-traits", deny(missing_debug_implementations))]
|
||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-backend/0.2")]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-cli-support"
|
name = "wasm-bindgen-cli-support"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen"
|
documentation = "https://docs.rs/wasm-bindgen-cli-support"
|
||||||
description = """
|
description = """
|
||||||
Shared support for the wasm-bindgen-cli package, an internal dependency
|
Shared support for the wasm-bindgen-cli package, an internal dependency
|
||||||
"""
|
"""
|
||||||
@ -18,6 +18,6 @@ serde = "1.0"
|
|||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tempfile = "3.0"
|
tempfile = "3.0"
|
||||||
wasm-bindgen-shared = { path = "../shared", version = '=0.2.11' }
|
wasm-bindgen-shared = { path = "../shared", version = '=0.2.12' }
|
||||||
wasm-gc-api = "0.1.8"
|
wasm-gc-api = "0.1.8"
|
||||||
wasmi = "0.3"
|
wasmi = "0.3"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-cli-support/0.2")]
|
||||||
|
|
||||||
extern crate parity_wasm;
|
extern crate parity_wasm;
|
||||||
extern crate wasm_bindgen_shared as shared;
|
extern crate wasm_bindgen_shared as shared;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
@ -339,7 +341,7 @@ or you can update the binary with
|
|||||||
cargo install -f wasm-bindgen-cli
|
cargo install -f wasm-bindgen-cli
|
||||||
|
|
||||||
if this warning fails to go away though and you're not sure what to do feel free
|
if this warning fails to go away though and you're not sure what to do feel free
|
||||||
to open an issue at https://github.com/alexcrichton/wasm-bindgen/issues!
|
to open an issue at https://github.com/rustwasm/wasm-bindgen/issues!
|
||||||
",
|
",
|
||||||
p.version,
|
p.version,
|
||||||
version
|
version
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-cli"
|
name = "wasm-bindgen-cli"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen"
|
documentation = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
categories = ["wasm"]
|
categories = ["wasm"]
|
||||||
description = """
|
description = """
|
||||||
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
|
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
|
||||||
@ -17,13 +17,5 @@ docopt = "1.0"
|
|||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.11" }
|
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.12" }
|
||||||
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
|
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "wasm-bindgen"
|
|
||||||
path = "src/bin/wasm-bindgen.rs"
|
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "wasm2es6js"
|
|
||||||
path = "src/bin/wasm2es6js.rs"
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "js-sys"
|
name = "js-sys"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||||
readme = "./README.md"
|
readme = "./README.md"
|
||||||
categories = ["wasm"]
|
categories = ["wasm"]
|
||||||
@ -17,7 +17,7 @@ test = false
|
|||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasm-bindgen = { path = "../..", version = "0.2.11" }
|
wasm-bindgen = { path = "../..", version = "0.2.12" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
|
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
//! example, `decodeURI` in JavaScript is exposed as `decode_uri` in these
|
//! example, `decodeURI` in JavaScript is exposed as `decode_uri` in these
|
||||||
//! bindings.
|
//! bindings.
|
||||||
|
|
||||||
|
#![doc(html_root_url = "https://docs.rs/js-sys/0.2")]
|
||||||
#![feature(use_extern_macros, wasm_import_module)]
|
#![feature(use_extern_macros, wasm_import_module)]
|
||||||
|
|
||||||
extern crate wasm_bindgen;
|
extern crate wasm_bindgen;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-macro"
|
name = "wasm-bindgen-macro"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen"
|
documentation = "https://docs.rs/wasm-bindgen"
|
||||||
description = """
|
description = """
|
||||||
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
|
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
|
||||||
@ -21,5 +21,5 @@ xxx_debug_only_print_generated_code = []
|
|||||||
syn = { version = '0.14', features = ['full'] }
|
syn = { version = '0.14', features = ['full'] }
|
||||||
quote = '0.6'
|
quote = '0.6'
|
||||||
proc-macro2 = "0.4.8"
|
proc-macro2 = "0.4.8"
|
||||||
wasm-bindgen-backend = { path = "../backend", version = "=0.2.11" }
|
wasm-bindgen-backend = { path = "../backend", version = "=0.2.12" }
|
||||||
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
|
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-macro/0.2")]
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
extern crate proc_macro2;
|
extern crate proc_macro2;
|
||||||
extern crate quote;
|
extern crate quote;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-shared"
|
name = "wasm-bindgen-shared"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
repository = "https://github.com/alexcrichton/wasm-bindgen"
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared"
|
||||||
homepage = "https://github.com/alexcrichton/wasm-bindgen"
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
documentation = "https://docs.rs/wasm-bindgen"
|
documentation = "https://docs.rs/wasm-bindgen-shared"
|
||||||
description = """
|
description = """
|
||||||
Shared support between wasm-bindgen and wasm-bindgen cli, an internal
|
Shared support between wasm-bindgen and wasm-bindgen cli, an internal
|
||||||
dependency.
|
dependency.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-shared/0.2")]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-test-project-builder"
|
name = "wasm-bindgen-test-project-builder"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/test-project-builder"
|
||||||
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
|
documentation = "https://docs.rs/wasm-bindgen-test-project-builder"
|
||||||
|
description = """
|
||||||
|
Internal test support for wasm-bindgen
|
||||||
|
"""
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.11' }
|
wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.12' }
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-test-project-builder/0.2")]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
extern crate wasm_bindgen_cli_support as cli;
|
extern crate wasm_bindgen_cli_support as cli;
|
||||||
|
@ -7,10 +7,10 @@ readme = "./README.md"
|
|||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
env_logger = "0.5.10"
|
env_logger = "0.5.10"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.11" }
|
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.12" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasm-bindgen = { path = "../..", version = "=0.2.11" }
|
wasm-bindgen = { path = "../..", version = "=0.2.12" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
|
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![feature(wasm_import_module)]
|
#![feature(wasm_import_module)]
|
||||||
|
#![doc(html_root_url = "https://docs.rs/web-sys/0.2")]
|
||||||
|
|
||||||
extern crate wasm_bindgen;
|
extern crate wasm_bindgen;
|
||||||
|
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wasm-bindgen-webidl"
|
name = "wasm-bindgen-webidl"
|
||||||
version = "0.2.11"
|
version = "0.2.12"
|
||||||
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
|
license = "MIT/Apache-2.0"
|
||||||
|
categories = ["wasm"]
|
||||||
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/webidl"
|
||||||
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
||||||
|
documentation = "https://docs.rs/wasm-bindgen"
|
||||||
|
description = """
|
||||||
|
Support for parsing WebIDL specific to wasm-bindgen
|
||||||
|
"""
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
|
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
@ -13,5 +21,5 @@ log = "0.4.1"
|
|||||||
proc-macro2 = "0.4.8"
|
proc-macro2 = "0.4.8"
|
||||||
quote = '0.6'
|
quote = '0.6'
|
||||||
syn = { version = '0.14', features = ['full'] }
|
syn = { version = '0.14', features = ['full'] }
|
||||||
wasm-bindgen-backend = { version = "=0.2.11", path = "../backend" }
|
wasm-bindgen-backend = { version = "=0.2.12", path = "../backend" }
|
||||||
webidl = "0.7.0"
|
webidl = "0.7.0"
|
||||||
|
@ -7,6 +7,7 @@ emitted for the types and methods described in the WebIDL.
|
|||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-webidl/0.2")]
|
||||||
|
|
||||||
extern crate failure;
|
extern crate failure;
|
||||||
extern crate heck;
|
extern crate heck;
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#![feature(use_extern_macros, wasm_import_module, unsize)]
|
#![feature(use_extern_macros, wasm_import_module, unsize)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
#![doc(html_root_url = "https://docs.rs/wasm-bindgen/0.2")]
|
||||||
|
|
||||||
#[cfg(feature = "serde-serialize")]
|
#[cfg(feature = "serde-serialize")]
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user