Skip to content

Commit

Permalink
Bump to 0.2.12 (#515)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
alexcrichton committed Jul 19, 2018
1 parent cbeb301 commit aa348f9
Show file tree
Hide file tree
Showing 20 changed files with 98 additions and 74 deletions.
41 changes: 23 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,38 @@

--------------------------------------------------------------------------------

## Unreleased
## 0.2.12

Released YYYY/MM/DD.
Released 2018/07/19.

### Added

* TODO (or remove section if none)

### Changed

* TODO (or remove section if none)
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!

### Deprecated
[js-all]: https://github.com/rustwasm/wasm-bindgen/issues/275

* TODO (or remove section if none)
### Added

### Removed
* 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.

* TODO (or remove section if none)
[book]: https://rustwasm.github.io/wasm-bindgen/

### Fixed

* TODO (or remove section if none)

### Security

* TODO (or remove section if none)
* Compilation with the latest nightly compiler has been fixed (nightlies on and
after 2018-07-19)
* Declarations of an imported function in multiple crates have been fixed to not
conflict.
* Compilation with `#![deny(missing_docs)]` has been fixed.

--------------------------------------------------------------------------------

Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "wasm-bindgen"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["wasm"]
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Easy support for interacting between JS and Rust.
Expand All @@ -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"]

[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_json = { version = "1.0", optional = true }

[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]
members = [
Expand Down
10 changes: 5 additions & 5 deletions crates/backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "wasm-bindgen-backend"
version = "0.2.11"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen-backend"
description = """
Backend code generation of the wasm-bindgen tool
Expand All @@ -20,4 +20,4 @@ proc-macro2 = "0.4.8"
quote = '0.6'
serde_json = "1.0"
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 change: 1 addition & 0 deletions crates/backend/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![recursion_limit = "256"]
#![cfg_attr(feature = "extra-traits", deny(missing_debug_implementations))]
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-backend/0.2")]

#[macro_use]
extern crate log;
Expand Down
12 changes: 6 additions & 6 deletions crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "wasm-bindgen-cli-support"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen-cli-support"
description = """
Shared support for the wasm-bindgen-cli package, an internal dependency
"""
Expand All @@ -18,6 +18,6 @@ serde = "1.0"
serde_derive = "1.0"
serde_json = "1.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"
wasmi = "0.3"
4 changes: 3 additions & 1 deletion crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-cli-support/0.2")]

extern crate parity_wasm;
extern crate wasm_bindgen_shared as shared;
#[macro_use]
Expand Down Expand Up @@ -339,7 +341,7 @@ or you can update the binary with
cargo install -f wasm-bindgen-cli
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,
version
Expand Down
22 changes: 7 additions & 15 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "wasm-bindgen-cli"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://rustwasm.github.io/wasm-bindgen/"
categories = ["wasm"]
description = """
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
Expand All @@ -17,13 +17,5 @@ docopt = "1.0"
failure = "0.1"
serde = "1.0"
serde_derive = "1.0"
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.11" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }

[[bin]]
name = "wasm-bindgen"
path = "src/bin/wasm-bindgen.rs"

[[bin]]
name = "wasm2es6js"
path = "src/bin/wasm2es6js.rs"
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.12" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }
4 changes: 2 additions & 2 deletions crates/js-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "js-sys"
version = "0.2.11"
version = "0.2.12"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
readme = "./README.md"
categories = ["wasm"]
Expand All @@ -17,7 +17,7 @@ test = false
doctest = false

[dependencies]
wasm-bindgen = { path = "../..", version = "0.2.11" }
wasm-bindgen = { path = "../..", version = "0.2.12" }

[dev-dependencies]
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
1 change: 1 addition & 0 deletions crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
//! example, `decodeURI` in JavaScript is exposed as `decode_uri` in these
//! bindings.

#![doc(html_root_url = "https://docs.rs/js-sys/0.2")]
#![feature(use_extern_macros, wasm_import_module)]

extern crate wasm_bindgen;
Expand Down
12 changes: 6 additions & 6 deletions crates/macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "wasm-bindgen-macro"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen"
description = """
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
Expand All @@ -21,5 +21,5 @@ xxx_debug_only_print_generated_code = []
syn = { version = '0.14', features = ['full'] }
quote = '0.6'
proc-macro2 = "0.4.8"
wasm-bindgen-backend = { path = "../backend", version = "=0.2.11" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
wasm-bindgen-backend = { path = "../backend", version = "=0.2.12" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }
2 changes: 2 additions & 0 deletions crates/macro/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-macro/0.2")]

extern crate proc_macro;
extern crate proc_macro2;
extern crate quote;
Expand Down
10 changes: 5 additions & 5 deletions crates/shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "wasm-bindgen-shared"
version = "0.2.11"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = "0.2.12"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/wasm-bindgen"
homepage = "https://github.com/alexcrichton/wasm-bindgen"
documentation = "https://docs.rs/wasm-bindgen"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared"
homepage = "https://rustwasm.github.io/wasm-bindgen/"
documentation = "https://docs.rs/wasm-bindgen-shared"
description = """
Shared support between wasm-bindgen and wasm-bindgen cli, an internal
dependency.
Expand Down
2 changes: 2 additions & 0 deletions crates/shared/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-shared/0.2")]

#[macro_use]
extern crate serde_derive;

Expand Down
12 changes: 9 additions & 3 deletions crates/test-project-builder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
[package]
name = "wasm-bindgen-test-project-builder"
version = "0.2.11"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
version = "0.2.12"
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]
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' }
2 changes: 2 additions & 0 deletions crates/test-project-builder/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-test-project-builder/0.2")]

#[macro_use]
extern crate lazy_static;
extern crate wasm_bindgen_cli_support as cli;
Expand Down
6 changes: 3 additions & 3 deletions crates/web-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ readme = "./README.md"
[build-dependencies]
env_logger = "0.5.10"
failure = "0.1"
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.11" }
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.12" }

[dependencies]
wasm-bindgen = { path = "../..", version = "=0.2.11" }
wasm-bindgen = { path = "../..", version = "=0.2.12" }

[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 change: 1 addition & 0 deletions crates/web-sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![feature(wasm_import_module)]
#![doc(html_root_url = "https://docs.rs/web-sys/0.2")]

extern crate wasm_bindgen;

Expand Down
16 changes: 12 additions & 4 deletions crates/webidl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
[package]
name = "wasm-bindgen-webidl"
version = "0.2.11"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
version = "0.2.12"
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]
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }

[dependencies]
failure = "0.1"
Expand All @@ -13,5 +21,5 @@ log = "0.4.1"
proc-macro2 = "0.4.8"
quote = '0.6'
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"
1 change: 1 addition & 0 deletions crates/webidl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ emitted for the types and methods described in the WebIDL.

#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-webidl/0.2")]

extern crate failure;
extern crate heck;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#![feature(use_extern_macros, wasm_import_module, unsize)]
#![no_std]
#![doc(html_root_url = "https://docs.rs/wasm-bindgen/0.2")]

#[cfg(feature = "serde-serialize")]
extern crate serde;
Expand Down

0 comments on commit aa348f9

Please sign in to comment.