Pauan
c3676bc6f9
Removing unneeded if statement
2019-07-18 21:51:29 +02:00
Pauan
8572255e73
Making uluru optional
2019-07-18 21:51:29 +02:00
Pauan
adf21fe6cb
Removing unneeded size argument
2019-07-18 21:51:29 +02:00
Pauan
cc6ec867f7
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
1723e9d024
More simplifications
2019-07-18 21:51:28 +02:00
Pauan
1e4cac9c95
Simplifying the output
2019-07-18 21:51:28 +02:00
Pauan
4e504654d1
Undoing some formatting
2019-07-18 21:51:28 +02:00
Pauan
fd88626e38
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
2ee4c54f00
Changing to use WasmSlice for the caching
2019-07-18 21:51:28 +02:00
Pauan
f7e8e70684
Fixing compile errors
2019-07-18 21:51:28 +02:00
Pauan
f28cfc26fe
Fixing some things for the cache
2019-07-18 21:51:28 +02:00
Pauan
0359da2060
Potential fix for OptionIntoWasmAbi?
2019-07-18 21:51:28 +02:00
Pauan
0a61e12bd1
Making interning manual
2019-07-18 21:51:28 +02:00
Pauan
86a8842f24
Changing IntoWasmAbi to use interning
2019-07-18 21:51:28 +02:00
Pauan
6767371ca7
Initial interning implementation
2019-07-18 21:51:28 +02:00
Alex Crichton
9f77f8dd00
Update parallel raytrace example to use futures
...
Use the atomics support now implemented!
2019-07-18 10:13:34 -07:00
Alex Crichton
d122bbca13
Emit a compiler error with futures 0.3 and atomics
...
Not implemented yet, and the one there doesn't work with atomics! (we'll
get around to this soon-ish)
2019-07-18 10:13:05 -07:00
Alex Crichton
2529bb0b17
Merge pull request #1670 from fitzgen/check-for-use-after-move-in-methods
...
Check for use-after-move in JS glue when `--debug` is enabled again
2019-07-17 10:07:01 -05:00
ibaryshnikov
02be3690cf
removed AtomicBool from Waker struct
2019-07-17 01:52:55 +03:00
ibaryshnikov
45d2c7ce93
updated to the latest master
2019-07-17 01:24:44 +03:00
ibaryshnikov
cbaa1d302a
added documentation comment for a stable version of wasm-bindgen-futures
2019-07-17 00:58:05 +03:00
ibaryshnikov
6ab1a49a41
moved lib.rs to stable.rs in wasm-bindgen-futures, updated during review
2019-07-17 00:58:05 +03:00
ibaryshnikov
221dc732af
updated default timeout and wait_async signature in wasm-bindgen-futures
2019-07-17 00:48:00 +03:00
ibaryshnikov
06c783d5e3
placed web-sys dependency behind a feature flag in wasm-bindgen-futures
2019-07-17 00:48:00 +03:00
ibaryshnikov
16c6bdc966
moved threadsafe futures implementation to a separate file, made updates after review
2019-07-17 00:48:00 +03:00
ibaryshnikov
e466e1a6f1
moved threadsafe futures behind a flag
2019-07-17 00:48:00 +03:00
ibaryshnikov
2fdfe79574
added polyfill implementation in rust
2019-07-17 00:48:00 +03:00
ibaryshnikov
c01575c1bc
typo fixed in Atomics docs
2019-07-17 00:48:00 +03:00
ibaryshnikov
d1d3021271
added polyfill for Atomics.wait and used it to notify futures
2019-07-17 00:48:00 +03:00
Nick Fitzgerald
8fd5f4ed6a
Check for use-after-move in JS glue when --debug
is enabled again
...
Fixes #1669
2019-07-16 13:35:59 -07:00
Alex Crichton
1807de74a7
Merge pull request #1665 from ia0/getElementsByClassName
...
Add Element::get_elements_by_class_name
2019-07-15 12:57:18 -05:00
Julien Cretin
170ce683d8
Add missing Element::get_elements_by_* methods
2019-07-15 19:47:09 +02:00
Nick Fitzgerald
a48a0aeb93
Merge pull request #1654 from fitzgen/no-import-shims
...
Skip generating JS import shims when unnecessary
2019-07-15 10:13:11 -07:00
Nick Fitzgerald
31ca527523
Bump wasm-webidl-bindings dep to 0.1.2
2019-07-15 09:35:22 -07:00
Nick Fitzgerald
afb33e5cf4
Assert that a bunch more function signatures don't require JS glue
2019-07-12 12:34:29 -07:00
Nick Fitzgerald
bce892b625
Add #[wasm_bindgen(assert_no_shim)]
on imported functions for testing
...
This should not be used outside of wasm-bindgen's test suite.
2019-07-12 12:34:29 -07:00
Alex Crichton
13b672aac0
Merge pull request #1661 from alexcrichton/fix-nightly
...
Fix parsing of `final` on Nightly Rust
2019-07-12 12:45:53 -05:00
Alex Crichton
4f86653e0d
Fix parsing of final
on Nightly Rust
...
This fixes an issue also reported to upstream (rust-lang/rust#62628 ) to
ensure that we parse the `final` attribute as either `r#final` or
`final`, since now the compiler is giving us `r#final` and we were
previously only accepting `final`.
The parsing here was a bit wonky, but this setup ended up working!
2019-07-12 10:05:11 -07:00
Nick Fitzgerald
2d0866da9a
cli-support: rustfmt
2019-07-11 15:44:16 -07:00
Nick Fitzgerald
d5d3e46334
cli-support: Skip generating JS shims for imports when unnecessary
...
After this change, any import that only takes and returns ABI-safe numbers (signed
integers less than 64 bits and unrestricted floating point numbers) will be a
direct import, and will not have a little JS shim in the middle.
We don't have a great mechanism for testing the generated bindings' contents --
as opposed to its behavior -- but I manually verified that everything here does
the Right Thing and doesn't have a JS shim:
```rust
\#[wasm_bindgen]
extern "C" {
fn trivial();
fn incoming_i32() -> i32;
fn incoming_f32() -> f32;
fn incoming_f64() -> f64;
fn outgoing_i32(x: i32);
fn outgoing_f32(y: f32);
fn outgoing_f64(z: f64);
fn many(x: i32, y: f32, z: f64) -> i32;
}
```
Furthermore, I verified that when our support for emitting native `anyref` is
enabled, then we do not have a JS shim for the following import, but if it is
disabled, then we do have a JS shim:
```rust
\#[wasm_bindgen]
extern "C" {
fn works_when_anyref_support_is_enabled(v: JsValue) -> JsValue;
}
```
Fixes #1636 .
2019-07-11 15:44:16 -07:00
Nick Fitzgerald
f2a4694c69
cli-support: Fix copy-pasted error message
...
This error case is for an invalid free function, not an invalid constructor.
2019-07-11 15:44:16 -07:00
Nick Fitzgerald
21fe8dc706
cli-support: Fix typo in comment
2019-07-11 15:44:16 -07:00
Alex Crichton
a3ddd097eb
Merge pull request #1660 from alexcrichton/bump
...
Bump to 0.2.48
0.2.48
2019-07-11 17:16:57 -05:00
Alex Crichton
5c975592be
Merge pull request #1657 from fitzgen/fix-dyn-warnings
...
Fix warnings about missing `dyn` on trait objects
2019-07-11 17:11:07 -05:00
Alex Crichton
e596ef596c
Bump to 0.2.48
2019-07-11 15:02:39 -07:00
Nick Fitzgerald
6252c7ab78
Fix warnings about missing dyn
on trait objects
2019-07-11 13:27:20 -07:00
Alex Crichton
c21c85a7ff
Merge pull request #1655 from rustwasm/dependabot/cargo/weedle-0.10
...
Update weedle requirement from 0.9 to 0.10
2019-07-11 09:09:33 -05:00
dependabot-preview[bot]
ce40388a7f
Update weedle requirement from 0.9 to 0.10
...
Updates the requirements on [weedle](https://github.com/rustwasm/weedle ) to permit the latest version.
- [Release notes](https://github.com/rustwasm/weedle/releases )
- [Commits](https://github.com/rustwasm/weedle/compare/0.9.0...0.10.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-11 10:07:41 +00:00
Nick Fitzgerald
d02e115fd4
Merge pull request #1650 from alexcrichton/less-csp
...
Use static accessors if possible to get global object
2019-07-10 09:37:56 -07:00
Alex Crichton
b64f5c0ad8
Merge pull request #1649 from alexcrichton/fix-futures
...
Update futures implementation to not destroy callbacks
2019-07-10 11:02:43 -05:00