Skip to content

Commit daf2a19

Browse files
authored
Merge pull request #44 from tomhoule/fix-js-example
Fix the wasm example
2 parents 9e14b16 + ba63b4e commit daf2a19

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22
node_modules/
33
**/*.rs.bk
44
Cargo.lock
5+
.idea

examples/call_from_js/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ serde = "1.0.67"
1313
serde_derive = "1.0.67"
1414
serde_json = "1.0.22"
1515
lazy_static = "1.0.1"
16+
17+
[workspace]
18+
members = ["."]

examples/call_from_js/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set -ex
22

3-
cargo +nightly build --target wasm32-unknown-unknown --release
3+
cargo +nightly build --target wasm32-unknown-unknown
44

55
wasm-bindgen \
66
../../target/wasm32-unknown-unknown/debug/call_from_js.wasm --out-dir .

graphql_query_derive/src/inputs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use proc_macro2::{Ident, Span, TokenStream};
66
use query::QueryContext;
77
use std::collections::HashMap;
88

9+
/// Represents an input object type from a GraphQL schema
910
#[derive(Debug, PartialEq)]
1011
pub struct GqlInput {
1112
pub name: String,

0 commit comments

Comments
 (0)