File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " graphql_client_web"
3- version = " 0.1.0 "
3+ version = " 0.5.1 "
44authors = [" Tom Houlé <tom@tomhoule.com>" ]
55edition = " 2018"
66
Original file line number Diff line number Diff line change 44
55// #![deny(warnings)]
66#![ deny( missing_docs) ]
7+ #![ feature( non_exhaustive) ]
78
89#[ macro_use]
910pub extern crate graphql_client;
1011#[ macro_use]
1112extern crate wasm_bindgen;
1213
14+ pub use graphql_client:: GraphQLQuery ;
1315use failure:: * ;
1416use futures:: { Future , IntoFuture } ;
15- pub use graphql_client:: GraphQLQuery ;
1617use log:: * ;
17- use wasm_bindgen:: JsCast ;
18- use wasm_bindgen:: JsValue ;
18+ use std:: collections:: HashMap ;
1919use wasm_bindgen_futures:: JsFuture ;
20+ use wasm_bindgen:: { JsCast , JsValue } ;
2021
2122/// The main interface to the library.
2223///
@@ -27,6 +28,7 @@ use wasm_bindgen_futures::JsFuture;
2728/// - use it to perform queries with the [call] method
2829pub struct Client {
2930 endpoint : String ,
31+ headers : HashMap < String , String > ,
3032}
3133
3234/// All the ways a request can go wrong.
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ use graphql_client_web::Client;
99use wasm_bindgen:: JsValue ;
1010use wasm_bindgen_test:: * ;
1111
12- use std:: panic;
13-
1412use wasm_bindgen_test:: wasm_bindgen_test_configure;
1513
1614wasm_bindgen_test_configure ! ( run_in_browser) ;
You can’t perform that action at this time.
0 commit comments