Alex Crichton
8b2f34b51a
Zero out descriptor statics
...
This way postprocessing tools like `wasm-opt` can optimize out the data section
altogether, dropping lots of zeros
2018-03-14 10:50:12 -07:00
Alex Crichton
9825b7a7c9
Bump wasm-bindgen-cli-support to 0.1.2
2018-03-09 16:10:08 -08:00
Alex Crichton
6e75d4777c
Fix handling *almost* aligned data globals
...
Looks like LLD implicitly pads data values with zeros at the end rather than
explicitly listing them, this means that we need to read out the last byte, even
if it's not 4-byte aligned, as it could still represent a wasm-bindgen-generated
32-bit value.
2018-03-09 16:09:07 -08:00
Alex Crichton
0627c8f252
Attempt to fix CI
2018-03-09 11:51:42 -08:00
Alex Crichton
d8e5930799
Add an example of console.log
...
Also clean up some other exampels
2018-03-09 10:25:48 -08:00
Alex Crichton
8b74c6c6ec
Merge pull request #63 from fitzgen/literals
...
wasm-bindgen-macro: Formalize building literals with a trait
2018-03-07 19:26:09 -06:00
Nick Fitzgerald
92436069bd
wasm-bindgen-macro: Formalize building literals with a trait
2018-03-07 16:29:25 -08:00
Alex Crichton
c3b6191112
Merge pull request #62 from fitzgen/to-tokens
...
Implement quote::ToTokens for AST types
2018-03-07 17:05:13 -06:00
Nick Fitzgerald
c2e9a4b71e
Implement quote::ToTokens for AST types
...
They were already implemented, just without the formalization ;)
2018-03-07 14:49:40 -08:00
Alex Crichton
4c4d8dab26
Merge pull request #61 from fitzgen/test-for-dependency-types
...
Test for dependency types
2018-03-07 14:11:52 -06:00
Nick Fitzgerald
12d7c93a40
Add a test for using a dependency's types in bindings
2018-03-07 11:57:51 -08:00
Nick Fitzgerald
9e24dabe9c
test-support: Add ability to add new local dependencies to Cargo.toml
2018-03-07 10:06:25 -08:00
Alex Crichton
1a9e031ed0
Bump wasm-bindgen-cli to 0.1.1
2018-03-07 08:52:19 -08:00
Alex Crichton
8296e7feee
Bump wasm-bindgen-cli-support to 0.1.1
2018-03-07 08:51:40 -08:00
Alex Crichton
8254d9f516
Add an option to detect node at runtime
...
Sometimes builds are done once and used in both the browser and in node, so add
an option to do runtime detection if necessary
2018-03-07 08:50:56 -08:00
Alex Crichton
48c0f290f9
Merge pull request #58 from quelledanielle/fix-readme-link
...
Fix node.js link in README
2018-03-06 16:38:39 -06:00
Danielle Pham
0a6b7ab7e7
Fix node.js link in README
2018-03-06 17:35:12 -05:00
Alex Crichton
800376010d
Bump wasm-bindgen-macro to 0.1.1
2018-03-06 13:50:45 -08:00
Alex Crichton
ac9f266005
Merge pull request #56 from fitzgen/disambiguate
...
Disambiguate generated wrappers
2018-03-06 15:50:21 -06:00
Nick Fitzgerald
3ad3123882
Disambiguate generated wrappers
2018-03-06 13:45:44 -08:00
Alex Crichton
46f1b5680f
Add the wasm category to wasm-bindgen-cli
2018-03-05 20:28:45 -08:00
Alex Crichton
69e5798377
Update README for publication to crates.io
2018-03-05 20:27:34 -08:00
Alex Crichton
f58c436f77
Prep work for the 0.1 release
2018-03-05 20:24:35 -08:00
Alex Crichton
98030e0e4a
Switch from version strings to schema versions
...
Should help reduce some churn a bit!
2018-03-05 20:05:44 -08:00
Alex Crichton
1db5b3fb50
Add Travis/AppVeyor deployments
2018-03-05 20:05:39 -08:00
Alex Crichton
ddf27f0ab1
Merge pull request #55 from sendilkumarn/fix-no-mangle
...
Remove no_mangle and extern wherever applicable
2018-03-05 17:07:08 -06:00
Sendil Kumar
49a7b9fef5
Merge branch 'master' into fix-no-mangle
2018-03-05 23:26:22 +01:00
Sendil Kumar
0dd8a77757
fix: remove unwanted no_mangle and extern wherever applicable
2018-03-05 23:25:15 +01:00
Alex Crichton
e46a613ad7
Merge pull request #54 from sendilkumarn/fix-file-name
...
feat: rename generated file to have bg instead of wasm
2018-03-05 16:07:21 -06:00
Sendil Kumar
d5ac523fe2
feat: rename generated file to have bg instead of wasm
2018-03-05 22:25:14 +01:00
Alex Crichton
644e96cd46
Tweak layout for Chrome
2018-03-05 02:51:10 -08:00
Alex Crichton
568939bbcc
Merge branch 'hello-wasm2es6js' of https://github.com/sophiebits/wasm-bindgen
2018-03-05 02:34:03 -08:00
Alex Crichton
67601c4293
No more need to optimize in dev!
2018-03-04 18:23:23 -08:00
Alex Crichton
f06dfd0a7d
Hopefully fix up yml
2018-03-04 12:48:53 -08:00
Alex Crichton
94001c3303
Don't run servers on CI
2018-03-04 12:16:01 -08:00
Sophie Alpert
67411f519c
Add workaround for hello_world running in Chrome
...
Fixes #50 .
2018-03-03 10:46:43 -08:00
Alex Crichton
98b9bee876
Add some comments to the hello-world example
2018-03-02 20:32:48 -08:00
Alex Crichton
e7f7f7864a
Run smorgasboard example on CI
2018-03-02 20:21:44 -08:00
Alex Crichton
4ebb3df330
Add a smorgasboard example
2018-03-02 20:19:39 -08:00
Alex Crichton
4aa6793b9e
Rewrite the README using Webpack
...
Right now Webpack probably has the most mature support for loading wasm modules,
so let's show off how to do that! Additionally this commits hello world as an
example to the repository.
2018-03-02 20:12:00 -08:00
Alex Crichton
30986dacad
Merge pull request #48 from alexcrichton/no-glboal
...
Don't run `npm install` during tests
2018-03-02 21:29:02 -06:00
Alex Crichton
d9e1dae298
Migrate from rollup
to webpack
in tests
...
Building on the previous commit to invoke not invoke `npm install` this takes
the commit a step further (to hopefully fix some races) to use Webpack's native
bundled wasm support.
It turns out the circular dependencies between the wasm module and the module
using it wasn't quite working out so a number of imports had to be tweaked, but
otherwise it's a nice transition where we don't have to base64 encode anything
in tests any more!
2018-03-02 19:20:14 -08:00
Alex Crichton
353794417c
Don't run npm install
during tests
...
Instead add a `package.json` and use `yarn run`.
2018-03-02 15:44:28 -08:00
Alex Crichton
31853ad0ba
Require version agreement between CLI and dep
...
One day may be able to relax this but for now its not tenable!
Closes #47
2018-03-01 19:36:59 -08:00
Alex Crichton
1c8061e675
Implement a version string
...
Add a `--version` and `-V` to the command to print out the version
2018-03-01 19:19:12 -08:00
Alex Crichton
36f064bed0
Merge pull request #40 from rylev/return-vec-jsvalue
...
Enable returning a vector of js values
2018-02-28 11:59:15 -06:00
Ryan Levick
17ca87cabb
Add to README that Vec<JsValue> cannot be passed to functions
2018-02-28 17:33:16 +01:00
Ryan Levick
37da9eba14
Address feedback on commit dab6ba1
2018-02-28 17:29:40 +01:00
Ryan Levick
dab6ba1df8
Enable returning a vector of js values
2018-02-28 10:56:56 +01:00
Alex Crichton
19f88f0fd2
Update parity-wasm dep
2018-02-26 17:11:56 -08:00