Alex Crichton
f4b49226b6
Fix webidl crate
2018-07-05 21:25:40 -07:00
teovoinea
7cd3ca02a2
Update with masters and fix PR changes
2018-07-02 20:35:05 -07:00
Alex Crichton
4ceaf3e0f4
Some small cleanups ( #366 )
...
* No need for version deps in dev-deps
These are all internal so we can drop the version
* Remove wasm-bindgen-cli's parity-wasm dep
No longer needed
* Tweak file hierarchy in webidl tests
Use Cargo's conventions to avoid the need to define `[[test]]` sections
* Remove unused imports
2018-07-02 11:57:39 -05:00
Nick Fitzgerald
8fbf478058
Move some utility functions from the webidl crate into the backend crate
2018-06-25 10:45:53 -07:00
Nick Fitzgerald
224d20337f
Merge pull request #274 from fitzgen/js-sys
...
Expose objects and functions from the JavaScript global scope
2018-06-19 10:42:04 -07:00
Nick Fitzgerald
d9cac3bd90
Don't document descriptor functions
...
They aren't part of any public API, and are just an implementation detail of
wasm-bindgen.
2018-06-18 16:44:19 -07:00
R. Andrew Ohana
0938858aa8
webidl: add support for static attributes
2018-06-15 12:22:14 -07:00
R. Andrew Ohana
fe5cde8636
webidl: add support for static methods
2018-06-15 12:09:42 -07:00
R. Andrew Ohana
cbec42e86c
webidl: add support for named constructors
2018-06-14 16:20:20 -07:00
R. Andrew Ohana
c65cb51fba
webidl: add support for constructors
2018-06-14 16:15:25 -07:00
R. Andrew Ohana
400015a061
webidl: refactor method/getter/getter generation
2018-06-14 14:39:04 -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
04907477ba
webidl: translate methods from camelCase to snake_case
2018-06-09 21:49:42 -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
8faebc56f2
webidl: Add logging and use env_logger in the tests
2018-06-01 16:09:15 -07:00
Nick Fitzgerald
7ea0a7cc26
webidl: emit methods for regular operations
2018-05-31 22:54:40 -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
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
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