c849ef3cf4
Add naive spawn_local implementation + tests
...
This is just a naive implementation. It seems it can be improved using a
custom task queue, but that can be in a separate PR.
2019-01-05 14:34:50 +00:00
2d7f601696
Add conversions between typed arrays and Rust
...
For all typed arrays, this commit adds:
* `TypedArray::view(src: &[Type])`
* `TypedArray::copy_to(&self, dst: &mut [Type])`
The `view` function is unsafe because it doesn't provide any guarantees
about lifetimes or mutability. The `copy_to` function is, however, safe.
Closes #811
2019-01-04 10:42:14 -08:00
1758c8d5af
Merge pull request #1145 from alexcrichton/less-gc
...
Fix order of export/gc
2019-01-04 10:07:56 -06:00
b4f172899c
Fix order of export/gc
...
We might gc a table away so if we need to export it be sure to do so
before we gc! Additionally remove an extraneous gc that snuck in at some
point, no need to do more than one.
Closes #1130
2019-01-03 11:38:28 -08:00
bea4dfc0c2
Merge pull request #1142 from andrewdavidmackenzie/patch-1
...
Remove separators that cause numbering jumps
2019-01-02 11:50:28 -06:00
929be71c32
Merge pull request #1138 from tomhoule/fix-small-formatting-issue
...
Fix tiny comment formatting issue in docs
2019-01-02 10:36:57 -06:00
47c4347955
Update UI tests
2019-01-02 08:35:05 -08:00
8f23ee6a59
Merge pull request #1137 from DBarney/patch-1
...
fixing a small spelling error
2019-01-02 10:32:47 -06:00
4139fc10f7
Remove separators that cause numbering jumps
...
I have removed the "--------------------" separators as they cause a section number to be skipped and hence incorrect section numbering in the left panel TOC.
Take a look at https://rustwasm.github.io/wasm-bindgen/web-sys/index.html left panel, towards the bottom, and you will see that it's jumps from section 3, to 5, to 7 to 9 - which I am assuming is NOT what you wanted.
2019-01-01 17:38:45 +01:00
1f2adb7422
Fix tiny comment formatting issue in docs
2018-12-30 10:14:07 +01:00
3858fe773f
fixing a small spelling error
...
I realize that this is just fixing spelling on some comments and a fairly minor correction at that.
2018-12-29 22:26:51 -07:00
465bb38d22
Merge pull request #1124 from KSXGitHub/patch-1
...
Fix typo
2018-12-22 10:04:09 -06:00
af06c6fc3d
Fix typo
2018-12-22 16:15:12 +07:00
9db0addb63
Update wat syntax with upstream changes
2018-12-19 15:49:05 -08:00
47d0381907
Update xargo to fix raytracer build
2018-12-19 15:31:36 -08:00
fcee465692
Add a comment about memory management
2018-12-19 12:00:42 -08:00
46464b6abf
Merge pull request #1117 from alexcrichton/structural
...
Flag all web-sys methods as `structural`
2018-12-17 19:43:38 -06:00
9237d4cf2c
Flag all web-sys methods as structural
...
This was an intended change from #1019 , but we forgot to apply it!
Closes #1095
2018-12-17 10:43:48 -08:00
3e05489fd5
Merge pull request #1113 from alexcrichton/uncomment
...
Uncomment a webidl method we now support
2018-12-14 17:10:09 -06:00
ae49dd8697
Uncomment a webidl method we now support
...
First commented out in #568 when we didn't support this we now do!
Closes #1111
2018-12-14 13:25:35 -08:00
4054ce8a2c
More fixes for iterating example
2018-12-13 10:40:07 -08:00
0617398bac
Merge pull request #1110 from jrvidal/outdated-links
...
Fixes outdated links
2018-12-13 08:45:39 -06:00
08680276ae
Fixes outdated links
2018-12-13 15:25:15 +01:00
53d6e00b70
Fix compilation of example in docs
...
Stray `match` keyword!
Closes #1109
2018-12-12 08:20:35 -08:00
df09df42d1
Merge pull request #1108 from elpiel/port-examples-julia_set-no_modules-paint-performance-to-rust-2018
...
Port `julia_set`, `no_modules`, `paint` and `performance` to Rust 2018
2018-12-12 09:11:02 -06:00
f29f78e302
[examples] performance - remove one more unnecessary import
2018-12-12 08:16:36 +01:00
a211e4af9c
[examples] performance - port to rust 2018
2018-12-12 08:14:08 +01:00
55f199ee77
[examples] paint - port to rust 2018
2018-12-12 08:12:51 +01:00
e1d11fda95
[examples] no_modules - port to rust 2018
2018-12-12 08:11:18 +01:00
dd82cd4722
[examples] julia_set - port to rust 2018
2018-12-12 08:10:02 +01:00
82b322a12f
Merge pull request #1103 from T5uku5hi/port-examples-to-rust-2018
...
Port dom, fetch, guide-supported-types-examples, import_js examples to Rust 2018 edition
2018-12-11 16:37:16 -06:00
b6db977795
removed extern crate lines
2018-12-12 07:14:26 +09:00
0003fc9115
remove unnecessary lines
2018-12-12 06:56:09 +09:00
c92b261fc4
Merge pull request #1107 from andrehjr/port-rust-2018-edition-v3
...
Port raytrace-parallel and wasm2js to rust 2018 edition
2018-12-11 15:48:50 -06:00
c6b74ffb43
Merge pull request #1106 from mvlabat/default-support
...
Add support for importing default exports
2018-12-11 15:48:10 -06:00
9aa15bf600
Update wasm2js to rust 2018
2018-12-11 19:31:50 -02:00
bfcecb426e
Update raytrace-parallel to rust 2018
2018-12-11 19:28:11 -02:00
371e864509
Add support for importing default exports
2018-12-11 21:00:00 +02:00
01fa5dd6c9
Merge pull request #1102 from andrehjr/port-rust-2018-edition-v2
...
Port WebGL, webaudio, wasm-in-wasm, and todomvc examples to Rust 2018 edition
2018-12-11 12:09:36 -05:00
7cf2942e25
[examples] import_js - port to rust 2018
2018-12-12 00:53:11 +09:00
56b3e0a318
run cargo fix --edition-idioms
2018-12-12 00:51:23 +09:00
48cc61147b
[examples] guide-supported-types-examples - port to rust 2018
2018-12-12 00:50:41 +09:00
2d9dcf6ace
run cargo fix --edition-idioms
2018-12-12 00:48:10 +09:00
f148164cd3
[examples] fetch - port to rust 2018
2018-12-12 00:47:22 +09:00
b2afc0e38a
run cargo fix --edition-idioms
2018-12-12 00:40:00 +09:00
2c30818b7c
Update todomvc example to the 2018 edition
2018-12-11 13:39:36 -02:00
493130ee36
[examples] dom - port to rust 2018
2018-12-12 00:39:22 +09:00
a8fb4c3bf8
Update wasm-in-wasm example to the 2018 edition
2018-12-11 13:36:24 -02:00
00d4c6b5a5
Update webaudio example to the 2018 edition
2018-12-11 13:36:08 -02:00
67c99a8b08
Update webgl example to the 2018 edition
2018-12-11 13:35:48 -02:00