From 02639f6b09375fe03fa2243868be17bec1dfa33c Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:43:06 -0800 Subject: [PATCH] Fix --- crates/sui-graphql-client-build/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/sui-graphql-client-build/README.md b/crates/sui-graphql-client-build/README.md index e64c2bc3e..ef9eeeef2 100644 --- a/crates/sui-graphql-client-build/README.md +++ b/crates/sui-graphql-client-build/README.md @@ -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. @@ -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. \