wasm-bindgen/crates
Alex Crichton 3c887c40b7
Default all async support to std::future (#1741)
This commit defaults all crates in-tree to use `std::future` by default
and none of them support the crates.io `futures` 0.1 crate any more.
This is a breaking change for `wasm-bindgen-futures` and
`wasm-bindgen-test` so they've both received a major version bump to
reflect the new defaults. Historical versions of these crates should
continue to work if necessary, but they won't receive any more
maintenance after this is merged.

The movement here liberally uses `async`/`await` to remove the need for
using any combinators on the `Future` trait. As a result many of the
crates now rely on a much more recent version of the compiler,
especially to run tests.

The `wasm-bindgen-futures` crate was updated to remove all of its
futures-related dependencies and purely use `std::future`, hopefully
improving its compatibility by not having any version compat
considerations over time. The implementations of the executors here are
relatively simple and only delve slightly into the `RawWaker` business
since there are no other stable APIs in `std::task` for wrapping these.

This commit also adds support for:

    #[wasm_bindgen_test]
    async fn foo() {
        // ...
    }

where previously you needed to pass `(async)` now that's inferred
because it's an `async fn`.

Closes #1558
Closes #1695
2019-09-05 11:18:36 -05:00
..
anyref-xform Bump to 0.2.50 2019-08-19 04:21:27 -07:00
backend Bump to 0.2.50 2019-08-19 04:21:27 -07:00
cli Bump to 0.2.50 2019-08-19 04:21:27 -07:00
cli-support Merge pull request #1736 from Pauan/improving-string-passing 2019-08-26 09:09:36 -05:00
futures Default all async support to std::future (#1741) 2019-09-05 11:18:36 -05:00
js-sys Default all async support to std::future (#1741) 2019-09-05 11:18:36 -05:00
macro Bump to 0.2.50 2019-08-19 04:21:27 -07:00
macro-support Bump to 0.2.50 2019-08-19 04:21:27 -07:00
shared Bump to 0.2.50 2019-08-19 04:21:27 -07:00
test Default all async support to std::future (#1741) 2019-09-05 11:18:36 -05:00
test-macro Default all async support to std::future (#1741) 2019-09-05 11:18:36 -05:00
threads-xform Bump to 0.2.50 2019-08-19 04:21:27 -07:00
typescript Upgrade to syn/quote 1.0 2019-08-13 10:37:08 -07:00
typescript-tests Fix warning about dead code when testing on non-wasm32 targets 2019-07-09 13:17:52 -07:00
wasm-interpreter Bump to 0.2.50 2019-08-19 04:21:27 -07:00
web-sys Default all async support to std::future (#1741) 2019-09-05 11:18:36 -05:00
webidl Bump to 0.2.50 2019-08-19 04:21:27 -07:00
webidl-tests Attempt to fix compilation issues on CI 2019-06-10 08:47:19 -07:00