Add error to JsValue conversion and example (#691)
This commit is contained in:
committed by
Sean McArthur
parent
57300edbc4
commit
43f2ff083c
18
examples/wasm_github_fetch/Cargo.toml
Normal file
18
examples/wasm_github_fetch/Cargo.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "wasm"
|
||||
version = "0.1.0"
|
||||
authors = ["John Gallagher <john.willis.gallagher@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# Config mostly pulled from: https://github.com/rustwasm/wasm-bindgen/blob/master/examples/fetch/Cargo.toml
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
reqwest = {path = "../../"}
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
serde_derive = "^1.0.59"
|
||||
wasm-bindgen-futures = "0.4.1"
|
||||
serde_json = "1.0.41"
|
||||
wasm-bindgen = { version = "0.2.51", features = ["serde-serialize"] }
|
||||
Reference in New Issue
Block a user