Skip to content

Commit aa348f9

Browse files
authored
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
1 parent cbeb301 commit aa348f9

File tree

20 files changed

+98
-74
lines changed

20 files changed

+98
-74
lines changed

CHANGELOG.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,38 @@
22

33
--------------------------------------------------------------------------------
44

5-
## Unreleased
5+
## 0.2.12
66

7-
Released YYYY/MM/DD.
7+
Released 2018/07/19.
88

9-
### Added
10-
11-
* TODO (or remove section if none)
12-
13-
### Changed
14-
15-
* TODO (or remove section if none)
9+
This release is mostly internal refactorings and minor improvements to the
10+
existing crates and functionality, but the bigs news is an upcoming `js-sys` and
11+
`web-sys` set of crates. The `js-sys` crate will expose [all global JS
12+
bindings][js-all] and the `web-sys` crate will be generated from WebIDL to
13+
expose all APIs browsers have. More info on this soon!
1614

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

19-
* TODO (or remove section if none)
17+
### Added
2018

21-
### Removed
19+
* Support for `Option<T>` was added where `T` can be a number of slices or
20+
imported types.
21+
* Comments in Rust are now preserved in generated JS bindings, as well as
22+
comments being generated to indicate the types of arguments/return values.
23+
* The online documentation has been reorganized [into a book][book].
24+
* The generated JS is now formatted better by default for readability.
25+
* A `--keep-debug` flag has been added to the CLI to retain debug sections by
26+
default. This happens by default when `--debug` is passed.
2227

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

2530
### Fixed
2631

27-
* TODO (or remove section if none)
28-
29-
### Security
30-
31-
* TODO (or remove section if none)
32+
* Compilation with the latest nightly compiler has been fixed (nightlies on and
33+
after 2018-07-19)
34+
* Declarations of an imported function in multiple crates have been fixed to not
35+
conflict.
36+
* Compilation with `#![deny(missing_docs)]` has been fixed.
3237

3338
--------------------------------------------------------------------------------
3439

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "wasm-bindgen"
3-
version = "0.2.11"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
77
categories = ["wasm"]
8-
repository = "https://github.com/alexcrichton/wasm-bindgen"
9-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
8+
repository = "https://github.com/rustwasm/wasm-bindgen"
9+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
1010
documentation = "https://docs.rs/wasm-bindgen"
1111
description = """
1212
Easy support for interacting between JS and Rust.
@@ -27,12 +27,12 @@ serde-serialize = ["serde", "serde_json", "std"]
2727
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
2828

2929
[dependencies]
30-
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.11" }
30+
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.12" }
3131
serde = { version = "1.0", optional = true }
3232
serde_json = { version = "1.0", optional = true }
3333

3434
[dev-dependencies]
35-
wasm-bindgen-test-project-builder = { path = "crates/test-project-builder", version = '=0.2.11' }
35+
wasm-bindgen-test-project-builder = { path = "crates/test-project-builder" }
3636

3737
[workspace]
3838
members = [

crates/backend/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "wasm-bindgen-backend"
3-
version = "0.2.11"
4-
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
6-
repository = "https://github.com/alexcrichton/wasm-bindgen"
7-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
6+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
7+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
88
documentation = "https://docs.rs/wasm-bindgen-backend"
99
description = """
1010
Backend code generation of the wasm-bindgen tool
@@ -20,4 +20,4 @@ proc-macro2 = "0.4.8"
2020
quote = '0.6'
2121
serde_json = "1.0"
2222
syn = { version = '0.14', features = ['full', 'visit-mut'] }
23-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
23+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }

crates/backend/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![recursion_limit = "256"]
22
#![cfg_attr(feature = "extra-traits", deny(missing_debug_implementations))]
3+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-backend/0.2")]
34

45
#[macro_use]
56
extern crate log;

crates/cli-support/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "wasm-bindgen-cli-support"
3-
version = "0.2.11"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
6-
repository = "https://github.com/alexcrichton/wasm-bindgen"
7-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
8-
documentation = "https://docs.rs/wasm-bindgen"
6+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
7+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
8+
documentation = "https://docs.rs/wasm-bindgen-cli-support"
99
description = """
1010
Shared support for the wasm-bindgen-cli package, an internal dependency
1111
"""
@@ -18,6 +18,6 @@ serde = "1.0"
1818
serde_derive = "1.0"
1919
serde_json = "1.0"
2020
tempfile = "3.0"
21-
wasm-bindgen-shared = { path = "../shared", version = '=0.2.11' }
21+
wasm-bindgen-shared = { path = "../shared", version = '=0.2.12' }
2222
wasm-gc-api = "0.1.8"
2323
wasmi = "0.3"

crates/cli-support/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-cli-support/0.2")]
2+
13
extern crate parity_wasm;
24
extern crate wasm_bindgen_shared as shared;
35
#[macro_use]
@@ -339,7 +341,7 @@ or you can update the binary with
339341
cargo install -f wasm-bindgen-cli
340342
341343
if this warning fails to go away though and you're not sure what to do feel free
342-
to open an issue at https://github.com/alexcrichton/wasm-bindgen/issues!
344+
to open an issue at https://github.com/rustwasm/wasm-bindgen/issues!
343345
",
344346
p.version,
345347
version

crates/cli/Cargo.toml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "wasm-bindgen-cli"
3-
version = "0.2.11"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
6-
repository = "https://github.com/alexcrichton/wasm-bindgen"
7-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
8-
documentation = "https://docs.rs/wasm-bindgen"
6+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
7+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
8+
documentation = "https://rustwasm.github.io/wasm-bindgen/"
99
categories = ["wasm"]
1010
description = """
1111
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
@@ -17,13 +17,5 @@ docopt = "1.0"
1717
failure = "0.1"
1818
serde = "1.0"
1919
serde_derive = "1.0"
20-
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.11" }
21-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
22-
23-
[[bin]]
24-
name = "wasm-bindgen"
25-
path = "src/bin/wasm-bindgen.rs"
26-
27-
[[bin]]
28-
name = "wasm2es6js"
29-
path = "src/bin/wasm2es6js.rs"
20+
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.12" }
21+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }

crates/js-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "js-sys"
3-
version = "0.2.11"
3+
version = "0.2.12"
44
authors = ["Alex Crichton <alex@alexcrichton.com>"]
55
readme = "./README.md"
66
categories = ["wasm"]
@@ -17,7 +17,7 @@ test = false
1717
doctest = false
1818

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

2222
[dev-dependencies]
2323
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }

crates/js-sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//! example, `decodeURI` in JavaScript is exposed as `decode_uri` in these
1717
//! bindings.
1818
19+
#![doc(html_root_url = "https://docs.rs/js-sys/0.2")]
1920
#![feature(use_extern_macros, wasm_import_module)]
2021

2122
extern crate wasm_bindgen;

crates/macro/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "wasm-bindgen-macro"
3-
version = "0.2.11"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
6-
repository = "https://github.com/alexcrichton/wasm-bindgen"
7-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
6+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
7+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
88
documentation = "https://docs.rs/wasm-bindgen"
99
description = """
1010
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
@@ -21,5 +21,5 @@ xxx_debug_only_print_generated_code = []
2121
syn = { version = '0.14', features = ['full'] }
2222
quote = '0.6'
2323
proc-macro2 = "0.4.8"
24-
wasm-bindgen-backend = { path = "../backend", version = "=0.2.11" }
25-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.11" }
24+
wasm-bindgen-backend = { path = "../backend", version = "=0.2.12" }
25+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.12" }

crates/macro/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-macro/0.2")]
2+
13
extern crate proc_macro;
24
extern crate proc_macro2;
35
extern crate quote;

crates/shared/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "wasm-bindgen-shared"
3-
version = "0.2.11"
4-
authors = ["Alex Crichton <alex@alexcrichton.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
6-
repository = "https://github.com/alexcrichton/wasm-bindgen"
7-
homepage = "https://github.com/alexcrichton/wasm-bindgen"
8-
documentation = "https://docs.rs/wasm-bindgen"
6+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared"
7+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
8+
documentation = "https://docs.rs/wasm-bindgen-shared"
99
description = """
1010
Shared support between wasm-bindgen and wasm-bindgen cli, an internal
1111
dependency.

crates/shared/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-shared/0.2")]
2+
13
#[macro_use]
24
extern crate serde_derive;
35

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
[package]
22
name = "wasm-bindgen-test-project-builder"
3-
version = "0.2.11"
4-
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
5+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/test-project-builder"
6+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
7+
documentation = "https://docs.rs/wasm-bindgen-test-project-builder"
8+
description = """
9+
Internal test support for wasm-bindgen
10+
"""
511

612
[dependencies]
713
lazy_static = "1"
8-
wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.11' }
14+
wasm-bindgen-cli-support = { path = "../cli-support", version = '=0.2.12' }

crates/test-project-builder/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen-test-project-builder/0.2")]
2+
13
#[macro_use]
24
extern crate lazy_static;
35
extern crate wasm_bindgen_cli_support as cli;

crates/web-sys/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ readme = "./README.md"
77
[build-dependencies]
88
env_logger = "0.5.10"
99
failure = "0.1"
10-
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.11" }
10+
wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.12" }
1111

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

1515
[dev-dependencies]
16-
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
16+
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }

crates/web-sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![feature(wasm_import_module)]
2+
#![doc(html_root_url = "https://docs.rs/web-sys/0.2")]
23

34
extern crate wasm_bindgen;
45

crates/webidl/Cargo.toml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
[package]
22
name = "wasm-bindgen-webidl"
3-
version = "0.2.11"
4-
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
3+
version = "0.2.12"
4+
authors = ["The wasm-bindgen Developers"]
5+
license = "MIT/Apache-2.0"
6+
categories = ["wasm"]
7+
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/webidl"
8+
homepage = "https://rustwasm.github.io/wasm-bindgen/"
9+
documentation = "https://docs.rs/wasm-bindgen"
10+
description = """
11+
Support for parsing WebIDL specific to wasm-bindgen
12+
"""
513

614
[dev-dependencies]
7-
wasm-bindgen-test-project-builder = { path = "../test-project-builder", version = '=0.2.11' }
15+
wasm-bindgen-test-project-builder = { path = "../test-project-builder" }
816

917
[dependencies]
1018
failure = "0.1"
@@ -13,5 +21,5 @@ log = "0.4.1"
1321
proc-macro2 = "0.4.8"
1422
quote = '0.6'
1523
syn = { version = '0.14', features = ['full'] }
16-
wasm-bindgen-backend = { version = "=0.2.11", path = "../backend" }
24+
wasm-bindgen-backend = { version = "=0.2.12", path = "../backend" }
1725
webidl = "0.7.0"

crates/webidl/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ emitted for the types and methods described in the WebIDL.
77

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

1112
extern crate failure;
1213
extern crate heck;

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
#![feature(use_extern_macros, wasm_import_module, unsize)]
99
#![no_std]
10+
#![doc(html_root_url = "https://docs.rs/wasm-bindgen/0.2")]
1011

1112
#[cfg(feature = "serde-serialize")]
1213
extern crate serde;

0 commit comments

Comments
 (0)