3100 Commits

Author SHA1 Message Date
Pauan
a75570de31
Merge pull request #2082 from guest271314/master
Update README.md
2020-04-15 12:33:11 +02:00
guest271314
a1fe1113ce
Update README.md 2020-04-15 00:36:33 +00:00
0xd4d
826538922f
Copy more doc comments to JS/TS files, unescape comments (#2070)
* Copy more doc comments to JS/TS files, unescape comments

* Move unescape code to macro-support
2020-04-13 13:51:32 -05:00
Josh Groves
fc86589715
Update to latest WebGPU WebIDL (#2080) 2020-04-13 09:30:37 -05:00
0xd4d
2b128288c7
Add ability to rename enums (js_name = new_name) (#2071)
* Add ability to rename enums (js_name = new_name)

* Add a test
2020-04-13 09:14:41 -05:00
a1trl9
b9f78aba57
try to fix js_name error when both getter and setter used (#2074)
* try to fix js_name error when both `getter` and `setter` used

* add tests
2020-04-10 11:57:36 -05:00
Andrew Straw
301a5f36eb
Installation instructions for wasm-bindgen CLI tool (#2076)
* Installation instructions for wasm-bindgen CLI tool

* Recommend wasm-pack

* Justify recommendation of wasm-pack to install wasm-bindgen.

Co-authored-by: Duane Johnson <duane.johnson@gmail.com>
2020-04-10 11:33:52 -05:00
Alex Crichton
a19c8a3fe0
Bump to 0.2.60 (#2051)
* Bump to 0.2.60

* Try to fix CI

* Fix CI syntax
0.2.60
2020-03-25 16:33:36 -05:00
Alex Crichton
b0ebc98a64 Don't build webxr example
It requires unstable features currently
2020-03-17 07:50:11 -07:00
Alex Crichton
d04930c2a2 Run rustfmt 2020-03-17 07:49:46 -07:00
Alex Crichton
29fabdddb1 Update macos build agent 2020-03-17 07:26:11 -07:00
kevthecoder
2b29650920
Webxrdevice (#2000)
* crates/web-sys/webidls/enabled/WebXRDevice.webidl

* Add WebXR Web IDL.

* Add WebXr example.

* Workaround in WebXR for FrozenArray and XRWebGLLayer constructor.

* Remove commented code.

* Attempt to improve WebXr example.

* Add WebXr as unstable WebIDL.

* Fixes for XRWebGLLayer.

* Tidy up WebXR example code.

* Update WebXr example docs.

Co-authored-by: Kev Kirkland <kev.kirkland@elucidata.co.uk>
2020-03-17 09:14:05 -05:00
t-yng
3c85ae1fbf
fix contributing docs url (#2043) 2020-03-17 09:09:46 -05:00
Alex Crichton
ceac51f260 Fix a test for upstream changes 2020-03-17 07:02:50 -07:00
Christian Fosli
8f14ccc56d
Add CI example for GitHub Actions (#2044)
* Add CI example for GitHub Actions

* Don't rely on other GitHub actions
2020-03-17 09:02:12 -05:00
Pauan
5acd6a3451
Merge pull request #1986 from clearloop/master
Add typescript_type attribute
2020-03-13 03:02:06 +01:00
Ashley
8a3bdbd8ee
Allow changing the wasm-bindgen-test-runner timeout via an env variable (#2036)
* Add WASM_BINDGEN_TEST_TIMEOUT

* Formatting
2020-03-10 10:36:00 -05:00
Josh Groves
035902ab51
Update to latest WebGPU WebIDL (#2037) 2020-03-10 09:27:48 -05:00
daxpedda
5534253280
Fix undefined error in worker. (#2038) 2020-03-10 09:13:50 -05:00
Alex Crichton
6d5fc3dcca
reenable UTF-8 BOM tests (#2031) 2020-03-04 16:19:36 -06:00
clearloop
003dc45d76 add: docs for typescript_type 2020-03-04 15:32:40 +08:00
clearloop
84f5fe2c00 add: tests for typescript_type attribute 2020-03-04 14:17:53 +08:00
Pauan
7a7b412bae
Merge pull request #2029 from Pauan/fixing-typescript-emit
Fixing the TypeScript type for the init function
2020-03-04 06:40:16 +01:00
Pauan
b99ab10696 Running rustfmt 2020-03-04 06:20:58 +01:00
Pauan
57f8ed2e1e
Improving the CHANGELOG and docs (#2027) 2020-03-03 22:53:18 -06:00
Pauan
5a752e5b84
Adding in typescript_type to the js_sys types (#2028) 2020-03-03 22:52:40 -06:00
Pauan
d193b2db8f Improving the TypeScript types for the init function 2020-03-04 05:23:05 +01:00
Alex Crichton
db8d3e4412
Bump to 0.2.59 (#2026)
Wow this is a big release!
0.2.59
2020-03-03 10:55:51 -06:00
Alex Crichton
597af6c2e6
Document unstable APIs in master docs (#2025) 2020-03-03 10:45:59 -06:00
Alex Crichton
db49d8124a Include new skip_typescript in book 2020-03-03 07:35:15 -08:00
Joey Watts
7ffb5ed70c
Add skip_typescript attribute to prevent .d.ts emit (#2016)
* Add skip_typescript attribute to prevent .d.ts emit

* Add guide page for typescript attribute
2020-03-03 09:34:28 -06:00
Pauan
3f4acc453b
Dramatically improving the build time of web-sys (#2012)
* Pre-generating web-sys

* Fixing build errors

* Minor refactor for the unit tests

* Changing to generate #[wasm_bindgen} annotations

* Fixing code generation

* Adding in main bin to wasm-bindgen-webidl

* Fixing more problems

* Adding in support for unstable APIs

* Fixing bug with code generation

* More code generation fixes

* Improving the webidl program

* Removing unnecessary cfg from the generated code

* Splitting doc comments onto separate lines

* Improving the generation for unstable features

* Adding in support for string values in enums

* Now runs rustfmt on the mod.rs file

* Fixing codegen for constructors

* Fixing webidl-tests

* Fixing build errors

* Another fix for build errors

* Renaming typescript_name to typescript_type

* Adding in docs for typescript_type

* Adding in CI script to verify that web-sys is up to date

* Fixing CI script

* Fixing CI script

* Don't suppress git diff output

* Remove duplicate definitions of `Location`

Looks to be a preexisting bug in wasm-bindgen?

* Regenerate webidl

* Try to get the git diff command right

* Handle named constructors in WebIDL

* Remove stray rustfmt.toml

* Add back NamedConstructorBar definition in tests

* Run stable rustfmt over everything

* Don't run Cargo in a build script

Instead refactor things so webidl-tests can use the Rust-code-generation
as a library in a build script. Also fixes `cargo fmt` in the
repository.

* Fixup generated code

* Running web-sys checks on stable

* Improving the code generation a little

* Running rustfmt

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
2020-03-02 17:39:36 -06:00
Nikhil Benesch
eb04cf2dda
Upgrade weedle to v0.11 (#2024) 2020-03-02 15:31:02 -06:00
Alex Crichton
381660c49b
Run rustfmt and keep it running on CI (#2023)
Thought we did this awhile back, but looks like we forgot to do so!
2020-03-02 11:44:14 -06:00
Alex Crichton
15e9c54a20
Update CI configuration (#2022)
* Move builders that can back to stable Rust
* Remove comments about sccache since it seems unlikely we'll bring it
  back soon.
2020-03-02 10:52:27 -06:00
Chinedu Francis Nwafili
bab83a7ff4
Whitelist send_with_u8_array slice (#2015)
* Whitelist send_with_u8_array slice

Fixes #2014

* Fix send slice

* Remove chromedriver comment

* Get slice tests running in CI
2020-03-02 09:13:15 -06:00
Ingvar Stepanyan
1e75e415b3
Fix TypedArray::subarray docs (#2021)
Looks like these were mistakenly copy-pasted from the `TypedArray::set` method.
2020-03-02 08:57:02 -06:00
Chris Johnson
93cb6cb65d
Symlink LICENSE files in crates (#2018) 2020-02-28 17:41:28 -06:00
Alex Crichton
fb51d9036f Don't doc unstable features on git for now
The generated HTML is too large to upload to gh-pages :(
2020-02-27 07:59:11 -08:00
Alex Crichton
654af576c7 Tweak some CI things for unstable APIs 2020-02-26 14:36:23 -08:00
Josh Groves
99c59a771e
[WIP] Add support for unstable WebIDL (#1997)
* Re-enable WebGPU WebIDL as experimental

* Add `web_sys_unstable_apis` attribute

* Add test for unstable WebIDL

* Include unstable WebIDL in docs.rs builds

* Add docs and doc comment for unstable APIs

* Add unstable API checks to CI
2020-02-26 16:30:11 -06:00
Ingvar Stepanyan
d26068dc6c
Propagate missing memory argument (#2011)
Fixes #2010.
2020-02-20 11:33:40 -06:00
Bennett Hardwick
ec1b9453c9
Allow web-sys to emit correct typescript declarations from webidl (#1998)
* Update to emit typescript names

* Update to use NamedAnyref

* Update incoming / outgoing

* Remove added space

* Remove comment

* Add basic typescript tests for web-sys
2020-02-19 09:14:32 -06:00
Bennett Hardwick
9d55978af5
Add webidl for Blob arraybuffer / text (#2008) 2020-02-19 09:11:01 -06:00
Richard Dodd (dodj)
7db01a7c7c
Add get/set for TypedArrays. (#2001)
* Add get/set for `TypedArray`s.

* Change names.

* Change name to @pauan suggestion.
2020-02-18 13:01:13 -06:00
clearloop
b6190700c9
Reflect optional struct fields in typescript (#1990)
* reflect option struct fields in typescript

* optional fields: move type checker to getter

* infer optional fields from ts_args
2020-02-18 09:15:37 -06:00
Pauan
156e1cb47f
Removing duplicate closure wrappers in the JS glue (#2002)
* Removing duplicate closure wrappers in the JS glue

* Fixing build error

* Adding in explanatory comment
2020-02-18 08:37:40 -06:00
Darin Morrison
673e9b7830
Add electron support via --omit-imports (#1958) 2020-02-12 09:52:59 -08:00
Pauan
ca742a84c4
Improving wasm loading logic (#1996)
* Improving wasm loading logic

* Adding in note to the book about the new loading functionality
2020-02-11 08:58:42 -08:00
Pauan
91f0dbdb28
Removing self from no-modules target (#1995) 2020-02-10 16:18:55 -06:00