Skip to content

Commit

Permalink
Ensure web assembly support in CI #2
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkhlghatyan committed Jan 2, 2021
1 parent 3792162 commit 7b3b2a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ jobs:
cache: cargo
script:
- cargo build --verbose
- cargo test --verbose
- cargo test --verbose
matrix:
include:
- language: rust
rust: stable
name: "check wasm32 support"
install: rustup target add wasm32-unknown-unknown
script: cargo check --target wasm32-unknown-unknown
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Minimal GraphQL client for Rust

* Simple API, supports queries and mutations
* Does not require schema file for introspection
* Supports WebAssembly

# Basic Usage

Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'a> GQLClient<'a> {
let raw_response = request.send().await?;
let json_response = raw_response.json::<GraphQLResponse<K>>().await;

// Check weather JSON is parsed successfully
// Check whether JSON is parsed successfully
match json_response {
Ok(json) => {
// Check if error messages have been received
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//!
//! * Simple API, supports queries and mutations
//! * Does not require schema file for introspection
//! * Supports WebAssembly
//!
//! # Basic Usage
//!
Expand Down

0 comments on commit 7b3b2a7

Please sign in to comment.