You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,19 +30,23 @@ If you don't see a particular web API in `web-sys`, here is how to add it.
30
30
[very bottom](https://w3c.github.io/mediasession/#idl-index) of _that_ page
31
31
is the IDL.
32
32
2. Annotate the functions that can throw with `[Throws]`
33
-
3. Run `cargo run --release --package wasm-bindgen-webidl -- webidls src/features ./Cargo.toml`
34
-
4. Run `git add .` to add all the generated files into git.
35
-
5. Add an entry in CHANGELOG.md like the following
33
+
3.`cd crates/web-sys`
34
+
4. Run `cargo run --release --package wasm-bindgen-webidl -- webidls src/features ./Cargo.toml`
35
+
36
+
If formatting fails, you can run `cargo fmt` in the `crates/web-sys` directory. On Windows, you might also want to run `cargo fmt -- --config newline_style=Unix` depending on your git configuration.
37
+
38
+
5. Run `git add .` to add all the generated files into git.
39
+
6. Add an entry in CHANGELOG.md like the following
40
+
36
41
```md
37
42
...
38
-
43
+
39
44
## Unreleased
40
-
45
+
41
46
### Added
42
-
47
+
43
48
...
44
-
49
+
45
50
* Added <your addition>
46
-
[#1234](https://github.com/rustwasm/wasm-bindgen/pull/1234) # <- link to your PR
51
+
[#1234](https://github.com/rustwasm/wasm-bindgen/pull/1234) # <- link to your PR
0 commit comments