4 releases

0.1.4 Jun 8, 2020
0.1.3 Apr 28, 2020
0.1.2 Apr 27, 2020
0.1.1 Apr 27, 2020

#957 in WebAssembly

MIT/Apache

8KB
159 lines

Silver_surf

Made for use in card_game.

Silver surf is a wrapper around surf to get rid of the builder pattern that surf uses and replaces it with a config struct. Optionally, you can enable the stdweb wrapper if you want to build for the web but don't want to use wasm-bindgen.

let res = call::<()>(Config {
    url: "your_url".into(),
    method: Method::Get,
    body: None,
    headers: None,
}).json::<YourStruct>().await;

Dependencies

~0.5–12MB
~150K SLoC