mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Merge pull request #830 from alexcrichton/fix-web-sys-dep
Fix dependencies sections for `web-sys` in guide
This commit is contained in:
commit
8da2e4dca2
@ -8,11 +8,11 @@ on the git version of it, and of `wasm-bindgen`:*
|
|||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen" }
|
wasm-bindgen = { git = "https://github.com/rustwasm/wasm-bindgen" }
|
||||||
web-sys = {
|
|
||||||
git = "https://github.com/rustwasm/wasm-bindgen",
|
[dependencies.web-sys]
|
||||||
|
git = "https://github.com/rustwasm/wasm-bindgen"
|
||||||
features = [
|
features = [
|
||||||
]
|
]
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Enable the cargo features for the APIs you're using
|
## Enable the cargo features for the APIs you're using
|
||||||
@ -30,12 +30,11 @@ documentation][search-resize-to]. We would find [the
|
|||||||
in `Cargo.toml`:
|
in `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
web-sys = {
|
[dependencies.web-sys]
|
||||||
git = "https://github.com/rustwasm/wasm-bindgen",
|
git = "https://github.com/rustwasm/wasm-bindgen"
|
||||||
features = [
|
features = [
|
||||||
"Window",
|
"Window"
|
||||||
]
|
]
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Call the method!
|
## Call the method!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user