From 73634545897ad3e44d0970cc40d9b1c1f9b17e70 Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Sun, 29 Sep 2024 08:46:30 -0700 Subject: [PATCH] chore: update crates to latest versions (#19) --- crates/sui-crypto/Cargo.toml | 16 ++++++++-------- crates/sui-graphql-client/Cargo.toml | 10 +++++----- crates/sui-sdk-types/Cargo.toml | 18 +++++++++--------- .../src/types/serialization_proptests.rs | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/crates/sui-crypto/Cargo.toml b/crates/sui-crypto/Cargo.toml index ec33f9ab0..24372bdb7 100644 --- a/crates/sui-crypto/Cargo.toml +++ b/crates/sui-crypto/Cargo.toml @@ -61,28 +61,28 @@ k256 = { version = "0.13.4", default-features = false, features = ["ecdsa"], opt # zklogin verification support ark-bn254 = { version = "0.4.0", optional = true } -ark-ff = { version = "0.4.1", features = ["asm"], optional = true } +ark-ff = { version = "0.4.2", features = ["asm"], optional = true } ark-groth16 = { version = "0.4.0", default-features = false, optional = true } ark-snark = { version = "0.4.0", optional = true } ark-std = { version = "0.4.0", optional = true } base64ct = { version = "1.6.0", features = ["alloc"], optional = true } -bnum = { version = "0.11.0", optional = true } -itertools = { version = "0.10.5", optional = true } -serde = { version = "1.0.190", optional = true } -serde_derive = { version = "1.0.190", optional = true } -serde_json = { version = "1.0.114", optional = true } +bnum = { version = "0.12.0", optional = true } +itertools = { version = "0.13.0", optional = true } +serde = { version = "1.0.210", optional = true } +serde_derive = { version = "1.0.210", optional = true } +serde_json = { version = "1.0.128", optional = true } [dev-dependencies] bcs = { version = "0.1.6" } hex = "0.4.3" -serde_json = { version = "1.0.114" } +serde_json = { version = "1.0.128" } # proptest support in tests # # Pin to this specific commit in order to work around an issue where proptest doesn't build properly in wasm environments # see https://github.com/proptest-rs/proptest/pull/270 for more info proptest = { git = "https://github.com/bmwill/proptest.git", rev = "bc36db126183bce18c8bc595f0c0cfeac48b870c", default-features = false, features = ["std"] } -test-strategy = "0.3.1" +test-strategy = "0.4.0" [target.wasm32-unknown-unknown.dev-dependencies] wasm-bindgen-test = "0.3" diff --git a/crates/sui-graphql-client/Cargo.toml b/crates/sui-graphql-client/Cargo.toml index fccb23444..453ec6316 100644 --- a/crates/sui-graphql-client/Cargo.toml +++ b/crates/sui-graphql-client/Cargo.toml @@ -9,16 +9,16 @@ readme = "README.md" description = "Sui GraphQL RPC Client for the Sui Blockchain" [dependencies] -anyhow = "1.0.86" -async-trait = "0.1.81" +anyhow = "1.0.8" +async-trait = "0.1.8" base64ct = { version = "1.6.0", features = ["alloc"] } bcs = "0.1.6" chrono = { version = "0.4.38" } -cynic = { version = "3.7.3" } +cynic = { version = "3.8.0" } reqwest = { version = "0.12", features = ["json"] } sui-types = { package = "sui-sdk-types", path = "../sui-sdk-types", features = ["serde"] } -tokio = { version = "1.39.2", features = ["full"] } +tokio = { version = "1.40.0", features = ["full"] } [build-dependencies] -cynic-codegen = { version = "3.7.3" } +cynic-codegen = { version = "3.8.0" } diff --git a/crates/sui-sdk-types/Cargo.toml b/crates/sui-sdk-types/Cargo.toml index 7af10b121..8b97caac0 100644 --- a/crates/sui-sdk-types/Cargo.toml +++ b/crates/sui-sdk-types/Cargo.toml @@ -33,15 +33,15 @@ base64ct = { version = "1.6.0", features = ["alloc"] } bs58 = "0.5.1" hex = "0.4.3" roaring = { version = "0.10.6", default-features = false } -bnum = "0.11.0" -winnow = "0.6.18" +bnum = "0.12.0" +winnow = "0.6.20" # Serialization and Deserialization support -serde = { version = "1.0.190", optional = true } -serde_derive = { version = "1.0.190", optional = true } +serde = { version = "1.0.210", optional = true } +serde_derive = { version = "1.0.210", optional = true } serde_with = { version = "3.9", default-features = false, features = ["alloc"], optional = true } bcs = { version = "0.1.6", optional = true } -serde_json = { version = "1.0.114", optional = true } +serde_json = { version = "1.0.128", optional = true } # JsonSchema definitions for types, useful for generating an OpenAPI Specificaiton. schemars = { version = "0.8.21", optional = true } @@ -54,9 +54,9 @@ blake2 = { version = "0.10.6", optional = true } [dev-dependencies] bcs = "0.1.6" -serde_json = "1.0.114" -num-bigint = "0.4.4" -jsonschema = { version = "0.18", default-features = false } +serde_json = "1.0.128" +num-bigint = "0.4.6" +jsonschema = { version = "0.20", default-features = false } paste = "1.0.15" # proptest support in tests @@ -64,7 +64,7 @@ paste = "1.0.15" # Pin to this specific commit in order to work around an issue where proptest doesn't build properly in wasm environments # see https://github.com/proptest-rs/proptest/pull/270 for more info proptest = { git = "https://github.com/bmwill/proptest.git", rev = "bc36db126183bce18c8bc595f0c0cfeac48b870c", default-features = false, features = ["std"] } -test-strategy = "0.3.1" +test-strategy = "0.4" [target.wasm32-unknown-unknown.dev-dependencies] wasm-bindgen-test = "0.3" diff --git a/crates/sui-sdk-types/src/types/serialization_proptests.rs b/crates/sui-sdk-types/src/types/serialization_proptests.rs index 8a6e43135..9663bc4fd 100644 --- a/crates/sui-sdk-types/src/types/serialization_proptests.rs +++ b/crates/sui-sdk-types/src/types/serialization_proptests.rs @@ -39,7 +39,7 @@ where { let root_schema = schemars::gen::SchemaGenerator::default().into_root_schema_for::(); let schema = serde_json::json!(root_schema); - let compiled = jsonschema::JSONSchema::compile(&schema).unwrap(); + let compiled = jsonschema::Validator::new(&schema).unwrap(); let instance = serde_json::json!(instance); let result = compiled.validate(&instance);