Add some notes about viewing bindings output. (#521)

* Add some notes about viewing bindings output.

I found this helpful when debugging, so I thought others might too.

* Fix formatting

* Another formatting fix
This commit is contained in:
Richard Dodd (dodj) 2018-07-20 16:41:31 +01:00 committed by Alex Crichton
parent ff1eb345e0
commit 801d62ae68

View File

@ -51,6 +51,13 @@
and look for warning messages that mention your new API. Figure out why
bindings weren't generated and then add support to `wasm_bindgen_webidl` for
whatever is needed to generate your API's bindings.
> You might find it helpful to view the generated rust bindings, to see if
they are what you would expect. The file will be located at
`target/wasm32-unknown-unknown/debug/build/web-sys-xxx/out/bindings.rs`,
where `xxx` is a combinations of numbers and letters that represents your
build. This file is pretty unintelligable until you run `rustfmt` on it, like
`rustfmt target/wasm32-unknown-unknown/debug/build/web-sys-xxx/out/bindings.rs`.
4. <input type="checkbox"/> Add a simple test for your new API to
`crates/web-sys/tests/all/`. See the [`web-sys` testing