mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-02 10:21:07 +00:00
Merge pull request #699 from gnzlbg/patch-2
Remove warning, was fixed with the 0.2.16 release
This commit is contained in:
commit
f617dee794
@ -34,19 +34,6 @@ ton of documentation just yet, but a taste of how it works is:
|
|||||||
wasm-bindgen-test = { git = 'https://github.com/rustwasm/wasm-bindgen' }
|
wasm-bindgen-test = { git = 'https://github.com/rustwasm/wasm-bindgen' }
|
||||||
```
|
```
|
||||||
|
|
||||||
**WARNING**: the `console_error_panic_hook` has a dependency on `wasm-bindgen`
|
|
||||||
from `crates.io` which conflicts with the one from git used by `wasm-bindgen-test`:
|
|
||||||
it produces linker errors due to duplicated symbols.
|
|
||||||
|
|
||||||
Until `wasm-bindgen-test` is released on `crates.io`, the temporary workaround
|
|
||||||
is to patch the `crates.io`'s `wasm-bindgen` dependency to be the same that
|
|
||||||
`wasm-bindgen-test` uses by adding the following to your project's `Cargo.toml`:
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[patch.crates-io]
|
|
||||||
wasm-bindgen = { git = 'https://github.com/rustwasm/wasm-bindgen' }
|
|
||||||
```
|
|
||||||
|
|
||||||
* Next, write some tests!
|
* Next, write some tests!
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
Loading…
x
Reference in New Issue
Block a user