#rest

canapi-stdweb

Fetch your APIs in the browser

1 unstable release

Uses old Rust 2015

0.1.0 Sep 15, 2018

#327 in #rest

AGPL-3.0

4KB

Canapi-StdWeb

Fetch implementation for WASM projects.

use canapi_stdweb::WebFetch;

use my_api;

fn main() {
    let user = my_api::users.get::<WebFetch>(1).expect("fetch user");
    println!("{:?}", user);
}

Dependencies

~5–11MB
~143K SLoC