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
639724a85e
Merge pull request #1100 from elpiel/port-examples-to-rust-2018
...
Port examples - console-log, closures and duck-typed-interfaces to Rust 2018
2018-12-11 08:53:35 -05:00
6eeb54bf9c
Merge pull request #1101 from andrehjr/port-rust-2018-edition-examples-v1
...
Port examples: add, canvas, char and hello_world to rust 2018 edition examples
2018-12-11 08:52:48 -05:00
90ed520394
[examples] closure - remove unnecessary use statement
2018-12-11 14:50:27 +01:00
c6a9d4851a
Remove extra web_sys call
2018-12-11 11:50:25 -02:00
ceb269b28a
run cargo fix --edition-idioms
2018-12-11 08:53:21 -02:00
573c14118a
[examples] duck-typed-interfaces - port to rust 2018
2018-12-11 08:45:26 +01:00
7107a896da
[examples] closures - port to rust 2018
2018-12-11 08:39:49 +01:00
26737a2888
[examples] console_log - port to rust 2018
2018-12-11 08:37:53 +01:00
88c8b9059e
Add edition 2018 to Cargo.toml
2018-12-10 23:44:59 -02:00
3d2f548ce2
Merge pull request #1098 from fitzgen/raf-loop-example
...
examples: Add a requestAnimationFrame loop example
2018-12-10 14:54:08 -08:00
77ddf5ebcd
examples: Add a requestAnimationFrame loop example
2018-12-10 12:50:19 -08:00
350112a77f
Merge pull request #1096 from rustwasm/dependabot/cargo/rouille-3.0.0
...
Update rouille requirement from 2.1.0 to 3.0.0
2018-12-10 10:56:47 -08:00
1610d199e3
Update rouille requirement from 2.1.0 to 3.0.0
...
Updates the requirements on [rouille](https://github.com/tomaka/rouille ) to permit the latest version.
- [Release notes](https://github.com/tomaka/rouille/releases )
- [Changelog](https://github.com/tomaka/rouille/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tomaka/rouille/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-12-10 08:16:06 +00:00
7768328fc4
Merge pull request #1084 from David-OConnor/master
...
Added an --out-name param to the CLI, to allow custom output file names
2018-12-04 23:16:36 -05:00
a4bc5049c6
Added an --out-name param to the CLI, to allow custom output file names
2018-12-04 21:35:05 -05:00
5665a0e6c0
Merge pull request #1081 from alexcrichton/bump
...
Bump to 0.2.29
0.2.29
2018-12-04 08:24:14 -06:00
63e3ba722d
Bump to 0.2.29
2018-12-04 06:04:47 -08:00
23f98dbfe0
Try to fix CI examples build
2018-12-03 10:38:55 -08:00
a9eb20b4dc
Merge pull request #1080 from tw1t611/fix-todomvc
...
Fix todomvc
2018-12-03 05:10:09 -06:00
53c65039b9
Change module import
2018-12-03 11:37:30 +01:00
a25925346a
Add index.css to build
2018-12-02 21:22:37 +01:00
46f70d3630
Merge pull request #1073 from daxpedda/patch-1
...
Fix typo in "wasm_bindgen::JsCast" trait docs
2018-12-01 13:17:11 -06:00
4105f7988b
Fix typo in "wasm_bindgen::JsCast" trait docs
...
This method will return `Err(self)` **is** `self.is_instance_of::<T>()` returns `false`
should be
This method will return `Err(self)` **if** `self.is_instance_of::<T>()` returns `false`
2018-12-01 12:22:39 +01:00
0e1494f2a6
Merge pull request #1072 from alexcrichton/dense
...
Ensure our JS heap is a dense array
2018-11-30 16:00:52 -06:00
30f52f7608
Merge pull request #1071 from ibaryshnikov/master
...
fixed link to compiled raytrace-parallel in examples
2018-11-30 15:24:36 -06:00
a83c3af4bf
Ensure our JS heap is a dense array
...
Turns out `heap.fill(undefined)` is required to ensure it's a dense
array, otherwise we'll accidentally be a sparse array and much slower
than necessary!
2018-11-30 13:23:41 -08:00
29531c0abf
Run rustfmt
2018-11-30 13:04:27 -08:00
2cdc45cef7
fixed link to compiled raytrace-parallel in examples
2018-11-30 23:36:27 +03:00
13d9e47d17
Merge pull request #1069 from alexcrichton/rejigger-stack
...
Switch from heap/stack to just a heap
2018-11-30 14:17:54 -06:00
49d835a7bc
Switch from heap/stack to just a heap
...
This commit switches strategies for storing `JsValue` from a heap/stack
to just one heap. This mirrors the new strategy for `JsValue` storage
in #1002 and should make multiplexing those strategies at
`wasm-bindgen`-time much easier.
Instead of having one array which acts as a stack for borrowed values
and one array for a heap of borrowed values, only one JS array is used
for storage of JS values now. This makes `getObject` far simpler by
simply being an array access, but it means that cloning an object now
reserves a new slot instead of reference counting it. If the old
reference counting behavior is needed it's thought that `Rc<JsValue>`
can be used in Rust.
The new "heap" has an initial stack pointer which grows downwards, and a
heap which grows upwards. The heap is a singly-linked-list which is
allocated/deallocated from. The stack grows downwards to zero and
presumably starts generating errors once it underflows. An initial stack
size of 32 is chosen as that should encompass all use cases today, but
we can eventually probably add configuration for this!
Note that the heap is initialized to all `null` for the stack and then
the initial JS values (`undefined`, `null`, `true`, `false`) are pushed
onto the heap in reserved locations.
2018-11-30 12:07:16 -08:00
e746ad5a0a
Merge pull request #1070 from tw1t611/fix-todomvc
...
Add #[wasm_bindgen(start)], plugins to webpack config, Update deps
2018-11-30 11:57:23 -06:00
caac2eba53
Add #[wasm_bindgen(start)], plugins to webpack config, Update deps
2018-11-30 17:42:36 +01:00
89e245bddf
Merge pull request #1068 from alexcrichton/defer-expose
...
Defer exposing methods until they're needed
2018-11-29 22:57:25 -06:00
07b148789d
Defer exposing methods until they're needed
...
Previously `catch` and `variadic` would exopse methods in our JS shims,
but they did so earlier than necessary. Turns out `variadic` didn't
actually need to expose anything and `catch` could do so much later!
2018-11-29 17:50:13 -08:00
fbad34a4cb
Merge pull request #1064 from alexcrichton/wasm2es6js-imports
...
wasm2es6js: Fix handling of exported imports
2018-11-30 01:01:45 +01:00
91e9495805
Merge pull request #1065 from alexcrichton/describe-closures
...
Move closure shims into the descriptor
2018-11-29 17:30:58 -06:00
5f966c5a8f
Merge pull request #1063 from alexcrichton/wasm2es6js-start
...
wasm2es6js: Fix handling of start function
2018-11-29 17:30:24 -06:00
2bd9c0eafb
Merge pull request #1067 from alexcrichton/minor-tweaks
...
A few minor CLI tweaks during work on #1002
2018-11-29 15:16:14 -06:00