Nik Graf
005630929c
clarify js part in the readme
2018-06-13 19:13:02 +02:00
Nick Fitzgerald
0cd767c9d4
Merge pull request #266 from ohanar/webidl_attributes
...
WebIDL: add support for typedefs and interface attributes
2018-06-11 21:42:15 -07:00
Nick Fitzgerald
9ad4956116
Merge pull request #264 from ohanar/webidl_integration_tests
...
webidl: add initial support for integration tests
2018-06-11 21:36:56 -07:00
R. Andrew Ohana
be0e436c03
webidl: add basic support for attributes
2018-06-11 18:45:19 -07:00
R. Andrew Ohana
d065f4b05d
webidl: add support for typedefs
2018-06-11 18:43:45 -07:00
R. Andrew Ohana
9b8c0b8fb9
small cleanup in testing framework
2018-06-11 18:00:33 -07:00
Nick Fitzgerald
3710d87f3b
Merge pull request #262 from ohanar/snake_case_methods
...
webidl: translate methods from camelCase to snake_case
2018-06-11 16:09:34 -07:00
R. Andrew Ohana
077f50c6f2
webidl: add initial support for integration tests
2018-06-10 23:04:17 -07:00
R. Andrew Ohana
04907477ba
webidl: translate methods from camelCase to snake_case
2018-06-09 21:49:42 -07:00
Santiago Pastorino
71107b8e80
Merge pull request #236 from spastorino/remove-wrong-types-conversion
...
Remove wrong types conversion from typescript crate
2018-06-07 15:24:38 -03:00
Santiago Pastorino
37eaca47b4
Pretty print output on main example
2018-06-07 14:58:20 -03:00
Santiago Pastorino
d6ec2289fc
Remove wrong types conversion from js to rust
...
We can revisit this when we have better tests.
2018-06-07 14:57:44 -03:00
Nick Fitzgerald
1ea2d95d9e
Merge pull request #230 from xtuc/fix-webpack-version
...
Bump webpack
2018-06-07 10:07:38 -07:00
Nick Fitzgerald
e90f0e816d
Merge pull request #229 from anderspitman/patch-1
...
Update README.md
2018-06-07 10:06:46 -07:00
Sven SAULEAU
a0aecec506
chore: update package lock
2018-06-06 10:11:02 +02:00
Sven SAULEAU
b67df02d01
feat: bump webpack
2018-06-06 10:07:02 +02:00
Anders Pitman
8ac5f2e6e6
Update README.md
2018-06-05 17:34:15 -07:00
Nick Fitzgerald
065a4b28e3
Merge pull request #228 from spastorino/wasm-bindgen-typescript
...
Add prototype of wasm-bindgen-typescript
2018-06-05 16:06:45 -07:00
Santiago Pastorino
fa8961e56a
Add prototype of wasm-bindgen-typescript
2018-06-04 17:28:12 -03:00
Nick Fitzgerald
a02f9e0eed
Merge pull request #227 from fitzgen/webidl
...
webidl: add features necessary to support Event.initEvent
2018-06-01 16:58:08 -07:00
Nick Fitzgerald
8865e019f8
webidl: add features necessary to support Event.initEvent
...
1. Adds support for binding `DOMString` arguments to `&str`.
2. Ignore whether an argument is optional, and just always emit bindings for it.
2018-06-01 16:41:15 -07:00
Nick Fitzgerald
cb5bd3b9c9
Merge pull request #225 from fitzgen/webidl
...
webidl: Add logging and use env_logger in the tests
2018-06-01 16:09:36 -07:00
Nick Fitzgerald
8faebc56f2
webidl: Add logging and use env_logger in the tests
2018-06-01 16:09:15 -07:00
Alex Crichton
659583b40d
Implement PartialEq
for JsValue
( #217 )
...
Dispatch to JS's `===` operator internally
2018-06-01 16:47:45 -05:00
Alex Crichton
cb1e5cf136
Optimize JsValue::{from_bool, undefined, null} constructors ( #220 )
...
This commit optimizes constructing an instance of `JsValue` which is one of
`null`, `undefined`, `true`, or `false`. These are commonly created on the Rust
side of things and since there's only a limited set of values we can easily
prepopulate the global slab with a few entries and use hardcoded indices to
refer to these constants. This should avoid the need to travel into JS to insert
a `null` or and `undefined` into the global slab.
2018-06-01 16:46:42 -05:00
Nick Fitzgerald
346d2fda22
Merge pull request #223 from fitzgen/webidl
...
webidl: emit methods for regular operations on interfaces
2018-06-01 14:22:11 -07:00
Alex Crichton
ad89d8457e
Fix tests by pinning versions of webpack ( #219 )
...
Looks like a newer version of webpack has broken tests, so let's use
package-lock.json to pin to an older version while we wait for a fix.
2018-06-01 13:42:59 -05:00
Alex Crichton
a4428f01b6
Update parity-wasm dependency
2018-06-01 07:48:32 -07:00
Nick Fitzgerald
7ea0a7cc26
webidl: emit methods for regular operations
2018-05-31 22:54:40 -07:00
Nick Fitzgerald
c7819930b4
backend::ast: rustfmt
2018-05-31 22:52:43 -07:00
Nick Fitzgerald
ce8238cdd8
webidl: Compile and test the bindings emitted from WebIDL compilation
2018-05-31 22:52:43 -07:00
Nick Fitzgerald
ba4697bfb1
Merge pull request #216 from fitzgen/webidl
...
More WebIDL testing infrastructure
2018-05-30 15:53:28 -07:00
Nick Fitzgerald
25132ae3ae
webidl: Run the WebIDL tests in Travis CI
2018-05-30 15:45:01 -07:00
Nick Fitzgerald
a3d91bdd7c
webidl: make writing new tests really easy
2018-05-30 15:45:01 -07:00
Nick Fitzgerald
c773b29d6d
webidl: add compile
and compile_file
...
These will be the functions invoked by crates compiling WebIDL into wasm-bindgen
Rust sources inside `build.rs`.
2018-05-30 14:30:40 -07:00
Nick Fitzgerald
a30ccd7c18
webidl: Use Default for pub
tokens ( #215 )
2018-05-30 15:07:20 -05:00
Nick Fitzgerald
4a54e6fd52
Merge pull request #214 from fitzgen/webidl
...
Add a WebIDL frontend
2018-05-30 11:52:16 -07:00
Alex Crichton
6d23c8533b
Avoid deprecated constructor
2018-05-29 18:02:00 -07:00
Alex Crichton
5e94dc2b75
Update parity-wasm dependency
2018-05-29 18:00:09 -07:00
Nick Fitzgerald
3879f6f427
Introduce the wasm-bindgen-webidl frontend
...
This is still a work in progress. Parse WebIDL source text and convert it into
wasm-bindgen AST, so that we can automatically emit bindings for the types and
functions described in the WebIDL.
2018-05-29 14:22:53 -07:00
Nick Fitzgerald
daabbbd06e
Add a stub test module for when we have webidl tests
2018-05-29 14:20:15 -07:00
Nick Fitzgerald
3369498dca
Merge pull request #213 from fitzgen/ast-debug
...
backend: All AST types should implement Debug
2018-05-29 13:14:55 -07:00
Nick Fitzgerald
6885ea073e
Only derive extra traits when the extra-traits
feature is enabled
2018-05-29 11:24:40 -07:00
Nick Fitzgerald
07d5afa268
backend: All AST types should implement Eq
2018-05-25 16:33:22 -07:00
Nick Fitzgerald
018f083402
backend: All AST types should implement Debug
2018-05-25 16:20:07 -07:00
Nick Fitzgerald
50b8842b95
Add a feature for printing the macro's generated code ( #212 )
2018-05-25 18:17:54 -05:00
Alex Crichton
4c27c349ea
Bump to 0.2.11
2018-05-24 08:56:28 -07:00
Alex Crichton
7009c506c1
Revert "Revert "Revert "Disable the span
feature temporarily"""
...
This reverts commit b3cb44eb53
.
2018-05-24 07:16:36 -07:00
Alex Crichton
151acf8eb3
Add an example of importing non-browser functions
...
Closes #208
2018-05-23 12:14:12 -07:00
Robert Masen
4ddd93d75d
add char support ( #206 )
...
* add char support
* add char test
* remove __wbindgen_char fns
* re-order travis script
* update serve script
* remove binds to unused char functions
* add more wide character items to chars list
* remove unused code
* add char to readme
* remove built file
2018-05-22 12:34:41 -05:00