Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Latest #1

Merged
merged 73 commits into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
e61f691
Add is_truthy, is_falsy
ThomasdenH Jul 2, 2019
0ee7236
Define is_truthy in terms of is_falsy
ThomasdenH Jul 2, 2019
0daa290
Update to walrus 0.9.0
alexcrichton Jul 29, 2019
423bebb
Improve leniency of `--no-modules` output
alexcrichton Jul 29, 2019
78db35d
Merge pull request #1683 from alexcrichton/no-modules-lenient
alexcrichton Jul 30, 2019
8940ba0
Merge pull request #1682 from alexcrichton/update-walrs
alexcrichton Jul 30, 2019
7158144
Update to walrus 0.10.0
alexcrichton Jul 30, 2019
10e400b
Add support to emit output to memory
alexcrichton Jul 29, 2019
8b01436
Merge pull request #1686 from alexcrichton/update-walrus
alexcrichton Jul 30, 2019
849c345
Merge pull request #1687 from alexcrichton/in-memory
alexcrichton Jul 30, 2019
8cb7924
Fully update threading support for LLVM 9
alexcrichton Jul 23, 2019
38b8232
Merge pull request #1688 from alexcrichton/llvm-9-threads
alexcrichton Jul 30, 2019
452ce29
Add support as a vanilla polyfill of WebIDL bindings
alexcrichton Jul 31, 2019
2aac606
Support emitting direct imports in wasm files
alexcrichton Jul 31, 2019
36db788
Merge pull request #1689 from alexcrichton/direct-imports
alexcrichton Aug 1, 2019
6e3e9d2
Correctly hook up the anyref table initialization
alexcrichton Aug 1, 2019
5aee2f9
Fix an off-by-one in anyref stack manipulation
alexcrichton Aug 1, 2019
6cc7e3d
Ensure the 0th slot of anyref table is `undefined`
alexcrichton Aug 1, 2019
adde6c2
Correct base calculation in anyref allocator
alexcrichton Aug 1, 2019
117fce1
Merge pull request #1692 from alexcrichton/fix-anyref-bugs
alexcrichton Aug 2, 2019
732b691
Merge pull request #1690 from alexcrichton/webidl-polyfill
alexcrichton Aug 2, 2019
b978531
Use idiomatic syntax of Rc::clone()
UnHumbleBen Aug 4, 2019
af4622f
Fixes description of Closure lifetime in comments.
UnHumbleBen Aug 4, 2019
89067c1
Updated description for single closure
UnHumbleBen Aug 5, 2019
b60ed2e
Add parse a env args to invocation the browser
Kirguir Aug 5, 2019
f76ec9e
Merge pull request #1703 from Kirguir/parse_client_args
alexcrichton Aug 5, 2019
c7180dd
Merge pull request #1699 from UnHumbleBen/patch-1
alexcrichton Aug 5, 2019
0dbf429
Merge pull request #1702 from UnHumbleBen/patch-2
alexcrichton Aug 5, 2019
9314873
Upgrade sccache
alexcrichton Aug 5, 2019
ba0c6a9
Fix anyref table export in empty modules
alexcrichton Aug 5, 2019
cbab8a1
Merge pull request #1704 from alexcrichton/skip-anyref
alexcrichton Aug 5, 2019
09b37b4
Removed unnecessary and confusing clone of String
UnHumbleBen Aug 6, 2019
fffcc5e
Makes code clearing by providing code symmetry.
UnHumbleBen Aug 6, 2019
640c807
Merge pull request #1707 from UnHumbleBen/patch-1
alexcrichton Aug 6, 2019
af922fb
Fixup styling in sync_local_storage
UnHumbleBen Aug 6, 2019
0ab6956
Merge pull request #1709 from UnHumbleBen/patch-1
alexcrichton Aug 6, 2019
50683f0
Removed unnecessary dereference in Store::find
UnHumbleBen Aug 7, 2019
49acddf
Merge pull request #1710 from UnHumbleBen/patch-1
alexcrichton Aug 7, 2019
8b99fdc
Add truthy_falsy tests to main.rs
ThomasdenH Aug 8, 2019
67e858e
Merge pull request #1638 from ThomasdenH/master
alexcrichton Aug 8, 2019
bb6c013
Update sccache again
alexcrichton Aug 9, 2019
9f7afa8
Update to work with futures-preview 0.3.0-alpha.18
najamelan Aug 10, 2019
3697fb7
Merge pull request #1716 from najamelan/fix/futures-preview-0.3.0-alp…
alexcrichton Aug 12, 2019
1d0c333
Run `cargo fmt` over all code
alexcrichton Aug 12, 2019
45b4390
Upgrade to syn/quote 1.0
alexcrichton Aug 13, 2019
8775f9b
Merge pull request #1720 from alexcrichton/update-syn
alexcrichton Aug 13, 2019
ad34fa2
Update with list IR from `walrus`
alexcrichton Aug 12, 2019
aace8ce
Move table export to the anyref pass
alexcrichton Aug 12, 2019
603d574
Merge pull request #1717 from alexcrichton/walrus-update
alexcrichton Aug 13, 2019
c1d4fdd
Bump to 0.2.49
alexcrichton Aug 14, 2019
e08ea46
Fix UI test for beta
alexcrichton Aug 14, 2019
906ac15
Merge pull request #1722 from alexcrichton/bump
alexcrichton Aug 14, 2019
20be0a3
Improve instantiateStreaming fallback
alexcrichton Aug 15, 2019
bd7c907
Merge pull request #1723 from alexcrichton/instntiate-streaming
alexcrichton Aug 15, 2019
c5dd572
Add support for emitting a Wasm Interface Types section
alexcrichton Jun 25, 2019
487289c
Merge pull request #1725 from alexcrichton/real-webidl-section
alexcrichton Aug 19, 2019
c2daa4f
Bump to 0.2.50
alexcrichton Aug 19, 2019
5c56c02
Merge pull request #1726 from alexcrichton/bump
alexcrichton Aug 19, 2019
e39e850
Update browser support for `BigInt` (#1728)
nasso Aug 21, 2019
5581cdf
Improving the passStringToWasm function
Pauan Aug 22, 2019
fb0bbc0
Adding ignoreBOM and fatal to TextDecoder (#1730)
Pauan Aug 23, 2019
92c2e0e
More improvements to the passStringToWasm function
Pauan Aug 24, 2019
d9ae387
Fixing minor typo
Pauan Aug 24, 2019
a162531
Merge pull request #1736 from Pauan/improving-string-passing
alexcrichton Aug 26, 2019
312f5d6
chore: upgrade @wasm-tool/wasm-pack-plugin to 1.0.1
xtuc Aug 27, 2019
777828a
Merge pull request #1739 from xtuc/upgrade-wasm-pack-plugin-1.0.1
alexcrichton Aug 27, 2019
0eba2ef
Fix warnings in raytrace-parallel example
freebroccolo Aug 27, 2019
1f39a30
Merge pull request #1738 from freebroccolo/master
alexcrichton Aug 28, 2019
4e19ead
Fix the wasm2js example (#1750)
alexcrichton Sep 3, 2019
ba85275
Adding in more methods for Array (#1749)
Pauan Sep 4, 2019
3c887c4
Default all async support to `std::future` (#1741)
alexcrichton Sep 5, 2019
84898c1
Touch up documentation about futures (#1753)
alexcrichton Sep 5, 2019
7fd6702
Update assertion of stderr on nightly
alexcrichton Sep 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 60 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,81 @@

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

## Unreleased
## 0.2.50

Released YYYY-MM-DD.
Released 2019-08-19.

### Added

* TODO (or remove section if none)
* Experimental support with a `WASM_INTERFACE_TYPES=1` environment variable has
been added to emit a Wasm Interface Types custom section, making the output of
`wasm-bindgen` a single standalone WebAssembly file.
[#1725](https://github.com/rustwasm/wasm-bindgen/pull/1725)

### Changed
### Fixed

* TODO (or remove section if none)
* Unrelated errors are now no longer accidentally swallowed by the
`instantiateStreaming` fallback.
[#1723](https://github.com/rustwasm/wasm-bindgen/pull/1723)

### Deprecated
--------------------------------------------------------------------------------

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

### Removed
Released 2019-08-14.

### Added

* Add binding for `Element.getElementsByClassName`.
[#1665](https://github.com/rustwasm/wasm-bindgen/pull/1665)

* `PartialEq` and `Eq` are now implementd for all `web-sys` types.
[#1673](https://github.com/rustwasm/wasm-bindgen/pull/1673)

* The `wasm-bindgen-futures` crate now has support for futures when the
experimental WebAssembly threading feature is enabled.
[#1514](https://github.com/rustwasm/wasm-bindgen/pull/1514)

* A new `enable-interning` feature is available to intern strings and reduce the
cost of transferring strings across the JS/Rust boundary.
[#1612](https://github.com/rustwasm/wasm-bindgen/pull/1612)

* The `wasm-bindgen` CLI has experimental support for reading native
`webidl-bindings` custom sections and generating JS glue. This support is in
addition to Rust's own custom sections and allows using `wasm-bindgen` with
binaries produced by other than rustc possibly.
[#1690](https://github.com/rustwasm/wasm-bindgen/pull/1690)

* New environment variables have been added to configure webdriver startup
arguments.
[#1703](https://github.com/rustwasm/wasm-bindgen/pull/1703)

* New `JsValue::{is_truthy,is_falsy}` methods are now available.
[#1638](https://github.com/rustwasm/wasm-bindgen/pull/1638)

### Changed

* JS import shims are now skipped again when they are unnecessary.
[#1654](https://github.com/rustwasm/wasm-bindgen/pull/1654)

* TODO (or remove section if none)
* WebAssembly output files now directly embed the module/name for imports if
supported for the target and the import, reducing JS shims even further.
[#1689](https://github.com/rustwasm/wasm-bindgen/pull/1689)

### Fixed

* TODO (or remove section if none)
* Support for threads have been updated for LLVM 9 and nightly Rust.
[#1675](https://github.com/rustwasm/wasm-bindgen/pull/1675)
[#1688](https://github.com/rustwasm/wasm-bindgen/pull/1688)

### Security
* The `anyref` passes in `wasm-bindgen` have seen a number of fixes to improve
their correctness and get the full test suite running.
[#1692](https://github.com/rustwasm/wasm-bindgen/pull/1692)
[#1704](https://github.com/rustwasm/wasm-bindgen/pull/1704)

* TODO (or remove section if none)
* Support for `futures-preview 0.3.0-alpha.18` has been added to
`wasm-bindgen-futures`.
[#1716](https://github.com/rustwasm/wasm-bindgen/pull/1716)

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

Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen"
version = "0.2.48"
version = "0.2.50"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand Down Expand Up @@ -36,14 +36,14 @@ strict-macro = ["wasm-bindgen-macro/strict-macro"]
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.48" }
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.50" }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
cfg-if = "0.1.9"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
js-sys = { path = 'crates/js-sys', version = '0.3.25' }
wasm-bindgen-test = { path = 'crates/test', version = '=0.2.48' }
js-sys = { path = 'crates/js-sys', version = '0.3.27' }
wasm-bindgen-test = { path = 'crates/test', version = '=0.3.0' }
serde_derive = "1.0"
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }
Expand Down
2 changes: 1 addition & 1 deletion _package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"serve": "webpack-dev-server -p"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "0.4.2",
"@wasm-tool/wasm-pack-plugin": "1.0.1",
"html-webpack-plugin": "^3.2.0",
"text-encoding": "^0.7.0",
"webpack": "^4.29.4",
Expand Down
45 changes: 40 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
displayName: "Run wasm-bindgen crate tests (unix)"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-node.yml
- template: ci/azure-install-geckodriver.yml
- template: ci/azure-install-sccache.yml
Expand All @@ -18,8 +21,6 @@ jobs:
displayName: "Crate test suite"
- script: WASM_BINDGEN_NO_DEBUG=1 cargo test --target wasm32-unknown-unknown
displayName: "Crate test suite (no debug)"
- script: NODE_ARGS=/dev/null WASM_BINDGEN_ANYREF=1 cargo test --target wasm32-unknown-unknown --test wasm
displayName: "Anyref test suite builds"
- script: cargo test --target wasm32-unknown-unknown --features serde-serialize
displayName: "Crate test suite (with serde)"
- script: cargo test --target wasm32-unknown-unknown --features enable-interning
Expand All @@ -30,13 +31,29 @@ jobs:
displayName: "Futures test suite on native"
- script: cargo test -p wasm-bindgen-futures --target wasm32-unknown-unknown
displayName: "Futures test suite on wasm"
- script: |
set -e
curl https://nodejs.org/download/nightly/v13.0.0-nightly2019081215b2d13310/node-v13.0.0-nightly2019081215b2d13310-linux-x64.tar.xz | tar xJf -
echo "##vso[task.prependpath]$PWD/node-v13.0.0-nightly2019081215b2d13310-linux-x64/bin"
echo "##vso[task.setvariable variable=NODE_ARGS]--experimental-wasm-anyref,--experimental-wasm-bulk_memory"
echo "##vso[task.setvariable variable=WASM_BINDGEN_ANYREF]1"
displayName: "Install a custom node.js and configure anyref"
- script: cargo test --target wasm32-unknown-unknown --test wasm
displayName: "(anyref) Crate test suite"
- script: WASM_BINDGEN_NO_DEBUG=1 cargo test --target wasm32-unknown-unknown --test wasm
displayName: "(anyref) Crate test suite (no debug)"
- script: cargo test --target wasm32-unknown-unknown --features serde-serialize --test wasm
displayName: "(anyref) Crate test suite (with serde)"

- job: test_wasm_bindgen_windows
displayName: "Run wasm-bindgen crate tests (Windows)"
pool:
vmImage: vs2017-win2016
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-node.yml
- template: ci/azure-install-geckodriver.yml
- template: ci/azure-install-sccache.yml
Expand Down Expand Up @@ -80,6 +97,9 @@ jobs:
displayName: "Run web-sys crate tests"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-node.yml
- template: ci/azure-install-geckodriver.yml
- template: ci/azure-install-sccache.yml
Expand All @@ -93,6 +113,9 @@ jobs:
displayName: "Run js-sys crate tests"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-node.yml
- template: ci/azure-install-geckodriver.yml
- template: ci/azure-install-sccache.yml
Expand All @@ -102,6 +125,9 @@ jobs:
displayName: "Run wasm-bindgen-webidl crate tests"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-node.yml
#- template: ci/azure-install-sccache.yml
- script: cargo test -p wasm-bindgen-webidl
Expand All @@ -113,8 +139,9 @@ jobs:
displayName: "Run UI tests"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: beta
toolchain: nightly
- template: ci/azure-install-node.yml
- template: ci/azure-install-sccache.yml
- script: cargo test -p wasm-bindgen-macro
Expand Down Expand Up @@ -145,6 +172,9 @@ jobs:
displayName: "Build almost all examples"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-sccache.yml
- template: ci/azure-install-wasm-pack.yml
- script: mv _package.json package.json && npm install && rm package.json
Expand All @@ -166,7 +196,7 @@ jobs:
steps:
- template: ci/azure-install-rust.yml
parameters:
toolchain: nightly-2019-06-13
toolchain: nightly-2019-08-27
- template: ci/azure-install-sccache.yml
- script: rustup component add rust-src
displayName: "install rust-src"
Expand All @@ -187,6 +217,9 @@ jobs:
displayName: "Build benchmarks"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
- template: ci/azure-install-sccache.yml
- template: ci/azure-install-wasm-pack.yml
- script: wasm-pack build --target web benchmarks
Expand Down Expand Up @@ -252,7 +285,6 @@ jobs:
- job: doc_book
displayName: "Doc - build the book"
steps:
- template: ci/azure-install-rust.yml
- script: |
set -e
curl -L https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.0/mdbook-v0.3.0-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
Expand All @@ -268,6 +300,9 @@ jobs:
displayName: "Doc - build the API documentation"
steps:
- template: ci/azure-install-rust.yml
# TODO: switch this back to `stable` when async/await is stable
parameters:
toolchain: nightly
# Install rustfmt so we can format the web-sys bindings
- script: rustup component add rustfmt
displayName: "Install rustfmt"
Expand Down
12 changes: 6 additions & 6 deletions ci/azure-install-sccache.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
steps:
- bash: |
set -ex
curl -L https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-unknown-linux-musl.tar.gz | tar xzf -
sccache=`pwd`/sccache-0.2.8-x86_64-unknown-linux-musl/sccache
curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | tar xzf -
sccache=`pwd`/sccache-0.2.10-x86_64-unknown-linux-musl/sccache
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache"
displayName: Install sccache - Linux
condition: eq( variables['Agent.OS'], 'Linux' )

- bash: |
set -ex
brew install [email protected]
curl -L https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-apple-darwin.tar.gz | tar xzf -
sccache=`pwd`/sccache-0.2.8-x86_64-apple-darwin/sccache
curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-apple-darwin.tar.gz | tar xzf -
sccache=`pwd`/sccache-0.2.10-x86_64-apple-darwin/sccache
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache"
displayName: Install sccache - Darwin
condition: eq( variables['Agent.OS'], 'Darwin' )

- powershell: |
Invoke-WebRequest https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz -OutFile sccache.tar.gz
Invoke-WebRequest https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-pc-windows-msvc.tar.gz -OutFile sccache.tar.gz
tar xzf sccache.tar.gz
Write-Host "##vso[task.setvariable variable=RUSTC_WRAPPER;]$pwd/sccache-0.2.8-x86_64-pc-windows-msvc/sccache.exe"
Write-Host "##vso[task.setvariable variable=RUSTC_WRAPPER;]$pwd/sccache-0.2.10-x86_64-pc-windows-msvc/sccache.exe"
displayName: Install sccache - Windows
condition: eq( variables['Agent.OS'], 'Windows_NT' )

Expand Down
4 changes: 2 additions & 2 deletions crates/anyref-xform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-anyref-xform"
version = "0.2.48"
version = "0.2.50"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/anyref-xform"
Expand All @@ -13,4 +13,4 @@ edition = '2018'

[dependencies]
failure = "0.1"
walrus = "0.8.0"
walrus = "0.11.0"
Loading