Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Dec 18, 2024
1 parent 8188af6 commit 02639f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/sui-graphql-client-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ this function in a `build.rs` file in your crate if you need to build custom que
1. Add this crate as a build dependency in your `Cargo.toml` file.
```toml
[build-dependencies]
sui_graphql_client_build = { git = "https://github.com/mystenlabs/sui-rust-sdk", package = "sui-graphql-client-build", branch = "master" }
sui-graphql-client-build = { git = "https://github.com/mystenlabs/sui-rust-sdk", package = "sui-graphql-client-build", branch = "master" }
```

2. Add a `build.rs` file in your crate root directory and call the `register_schema` function in it.
Expand All @@ -24,9 +24,10 @@ fn main() {
...
[dependencies]
cynic = "3.8.0"
...
sui-graphql-client = { git = "https://github.com/mystenlabs/sui-rust-sdk", package = "sui-graphql-client", branch = "master" }

[build-dependencies]
sui_graphql_client_build = { git = "https://github.com/mystenlabs/sui-rust-sdk", package = "sui-graphql-client-build", branch = "master" }
sui-graphql-client-build = { git = "https://github.com/mystenlabs/sui-rust-sdk", package = "sui-graphql-client-build", branch = "master" }
```

4. If using `cynic`, use the cynic generator to generate the Rust types from the GraphQL schema. \
Expand Down

0 comments on commit 02639f6

Please sign in to comment.