Skip to content

Commit b4f048d

Browse files
authored
Merge pull request #160 from panicbit/issue-118
Move the graphql_client crate to a subdirectory
2 parents 6fcd5e7 + ac4cfff commit b4f048d

File tree

73 files changed

+24
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+24
-25
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ script:
1010
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
1111
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy) fi
1212
- cargo test --all
13-
- cargo build --manifest-path=./examples/github/Cargo.toml
13+
- cargo build --manifest-path=./graphql_client/examples/github/Cargo.toml
1414
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml

Cargo.toml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
1-
[package]
2-
name = "graphql_client"
3-
version = "0.5.0"
4-
authors = ["Tom Houlé <[email protected]>"]
5-
description = "Typed GraphQL requests and responses"
6-
repository = "https://github.com/graphql-rust/graphql-client"
7-
license = "Apache-2.0 OR MIT"
8-
keywords = ["graphql", "api", "web", "webassembly", "wasm"]
9-
categories = ["network-programming", "web-programming", "wasm"]
10-
11-
[dependencies]
12-
failure = "0.1"
13-
graphql_query_derive = {path = "./graphql_query_derive", version = "0.5.0"}
14-
itertools = "0.7"
15-
serde = "^1.0.78"
16-
serde_derive = "1.0"
17-
serde_json = "1.0"
18-
191
[workspace]
202
members = [
21-
".",
22-
"examples/example_module",
23-
"examples/github",
3+
"graphql_client",
4+
"graphql_client/examples/example_module",
5+
"graphql_client/examples/github",
246
"graphql_query_derive",
257
"graphql_client_codegen",
268
"graphql_client_cli",

graphql_client/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "graphql_client"
3+
version = "0.5.0"
4+
authors = ["Tom Houlé <[email protected]>"]
5+
description = "Typed GraphQL requests and responses"
6+
repository = "https://github.com/graphql-rust/graphql-client"
7+
license = "Apache-2.0 OR MIT"
8+
keywords = ["graphql", "api", "web", "webassembly", "wasm"]
9+
categories = ["network-programming", "web-programming", "wasm"]
10+
11+
[dependencies]
12+
failure = "0.1"
13+
graphql_query_derive = {path = "../graphql_query_derive", version = "0.5.0"}
14+
itertools = "0.7"
15+
serde = "^1.0.78"
16+
serde_derive = "1.0"
17+
serde_json = "1.0"

src/lib.rs renamed to graphql_client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ use itertools::Itertools;
4040
///
4141
/// #[derive(GraphQLQuery)]
4242
/// #[graphql(
43-
/// query_path = "graphql_client_codegen/src/tests/star_wars_query.graphql",
44-
/// schema_path = "graphql_client_codegen/src/tests/star_wars_schema.graphql"
43+
/// query_path = "../graphql_client_codegen/src/tests/star_wars_query.graphql",
44+
/// schema_path = "../graphql_client_codegen/src/tests/star_wars_schema.graphql"
4545
/// )]
4646
/// struct StarWarsQuery;
4747
///
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

graphql_client_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path = "src/main.rs"
1212
[dependencies]
1313
failure = "0.1"
1414
reqwest = "^0.9.0"
15-
graphql_client = { version = "0.5.0", path = ".." }
15+
graphql_client = { version = "0.5.0", path = "../graphql_client" }
1616
graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.5.0" }
1717
structopt = "0.2"
1818
serde = "1.0"

0 commit comments

Comments
 (0)