Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid duplicate crates #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
[workspace]
resolver = "2"
members = ["crates/*"]

[workspace.dependencies]
anyhow = "1.0.71"
ark-bn254 = "0.4.0"
ark-ff = "0.4.2"
ark-groth16 = { version = "0.4.0", default-features = false }
ark-snark = "0.4.0"
ark-std = "0.4.0"
async-stream = "0.3.3"
async-trait = "0.1.61"
base64ct = "1.6.0"
bcs = "0.1.6"
blake2 = "0.10.6"
bnum = "0.12.0"
bs58 = "0.5.1"
chrono = "0.4.26"
cynic = "3.7.3"
cynic-codegen = "3.8.0"
ed25519-dalek = "2.1.1"
futures = "0.3.29"
hex = "0.4.3"
itertools = "0.13.0"
k256 = { version = "0.13.4", default-features = false }
num-bigint = "0.4.6"
p256 = { version = "0.13.2", default-features = false }
paste = "1.0.15"
pem-rfc7468 = "0.7"
pkcs8 = "0.10"
proptest = { version = "1.6.0", default-features = false }
rand = "0.8.5"
rand_core = "0.6.4"
reqwest = { version = "0.12", default-features = false }
roaring = { version = "0.10.9", default-features = false }
serde = "1.0.210"
serde_derive = "1.0.210"
serde_json = "1.0.128"
serde_with = { version = "3.9", default-features = false }
sha2 = "0.10.8"
signature = "2.2"
sui-crypto = { path = "crates/sui-crypto" }
sui-graphql-client = { path = "crates/sui-graphql-client" }
sui-sdk-types = { version = "0.0.2", path = "crates/sui-sdk-types", default-features = false }
sui-types = { path = "crates/sui-sdk-types" }
sui_graphql_client_build = { path = "crates/sui-graphql-client-build" }
test-strategy = "0.4.0"
thiserror = "2.0"
tokio = "1.40.0"
tracing = "0.1.37"
url = "2.5.3"
winnow = "0.7"
50 changes: 25 additions & 25 deletions crates/sui-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,49 +53,49 @@ pem = [
]

[dependencies]
signature = "2.2"
sui-sdk-types = { version = "0.0.2", path = "../sui-sdk-types", default-features = false, features = ["hash", "serde"] }
signature = { workspace = true }
sui-sdk-types = { workspace = true, features = ["hash", "serde"] }

# RNG support
rand_core = { version = "0.6.4", optional = true }
rand_core = { workspace = true, optional = true }

# ed25519 support
ed25519-dalek = { version = "2.1.1", optional = true }
ed25519-dalek = { workspace = true, optional = true }

# secp256r1 support
p256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "std"], optional = true }
p256 = { workspace = true, features = ["ecdsa", "std"], optional = true }

# passkey verification support
sha2 = { version = "0.10.8", optional = true }
sha2 = { workspace = true, optional = true }

# secp256k1 support
k256 = { version = "0.13.4", default-features = false, features = ["ecdsa"], optional = true }
k256 = { workspace = true, features = ["ecdsa"], optional = true }

# zklogin verification support
ark-bn254 = { version = "0.4.0", 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.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 }
ark-bn254 = { workspace = true, optional = true }
ark-ff = { workspace = true, features = ["asm"], optional = true }
ark-groth16 = { workspace = true, optional = true }
ark-snark = { workspace = true, optional = true }
ark-std = { workspace = true, optional = true }
base64ct = { workspace = true, features = ["alloc"], optional = true }
bnum = { workspace = true, optional = true }
itertools = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }

# pkcs8 der and pem support
pkcs8 = { version = "0.10", optional = true, features = ["std"] }
pem-rfc7468 = { version = "0.7", optional = true, features = ["std"] }
pkcs8 = { workspace = true, features = ["std"], optional = true }
pem-rfc7468 = { workspace = true, features = ["std"], optional = true }

[dev-dependencies]
bcs = { version = "0.1.6" }
hex = "0.4.3"
serde_json = { version = "1.0.128" }
bcs = { workspace = true }
hex = { workspace = true }
serde_json = { workspace = true }

# proptest support in tests
proptest = { version = "1.6.0", default-features = false, features = ["std"] }
test-strategy = "0.4.0"
proptest = { workspace = true, features = ["std"] }
test-strategy = { workspace = true }

[target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-graphql-client-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"

[dependencies]
cynic-codegen = "3.8.0"
cynic-codegen = { workspace = true }

36 changes: 18 additions & 18 deletions crates/sui-graphql-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ readme = "README.md"
description = "Sui GraphQL RPC Client for the Sui Blockchain"

[dependencies]
anyhow = "1.0.71"
async-stream = "0.3.3"
async-trait = "0.1.61"
base64ct = { version = "1.6.0", features = ["alloc", "std"] }
bcs = "0.1.4"
chrono = "0.4.26"
cynic = "3.7.3"
futures = "0.3.29"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"] }
serde = { version = "1.0.144" }
serde_json = {version = "1.0.95"}
sui-types = { package = "sui-sdk-types", path = "../sui-sdk-types", features = ["serde"] }
tracing = "0.1.37"
tokio = "1.36.0"
url = "2.5.3"
anyhow = { workspace = true }
async-stream = { workspace = true }
async-trait = { workspace = true }
base64ct = { workspace = true, features = ["alloc", "std"] }
bcs = { workspace = true }
chrono = { workspace = true }
cynic = { workspace = true }
futures = { workspace = true }
reqwest = { workspace = true, features = ["rustls-tls", "json"] }
serde = { workspace = true }
serde_json = { workspace = true }
sui-types = { workspace = true, features = ["serde"] }
tracing = { workspace = true }
tokio = { workspace = true }
url = { workspace = true }

[dev-dependencies]
sui-types = { package = "sui-sdk-types", path = "../sui-sdk-types", features = ["serde", "rand", "hash"] }
rand = "0.8.5"
tokio = { version = "1.40.0", features = ["full"] }
sui-types = { workspace = true, features = ["serde", "rand", "hash"] }
rand = { workspace = true }
tokio = { workspace = true, features = ["full"] }

[build-dependencies]
sui_graphql_client_build = { package = "sui-graphql-client-build", path = "../sui-graphql-client-build" }
Expand Down
38 changes: 19 additions & 19 deletions crates/sui-sdk-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,35 @@ hash = ["dep:blake2"]
proptest = ["dep:proptest", "dep:test-strategy", "serde"]

[dependencies]
base64ct = { version = "1.6.0", features = ["alloc"] }
bs58 = "0.5.1"
hex = "0.4.3"
roaring = { version = "0.10.9", default-features = false }
bnum = "0.12.0"
winnow = "0.7"
base64ct = { workspace = true, features = ["alloc"] }
bs58 = { workspace = true }
hex = { workspace = true }
roaring = { workspace = true }
bnum = { workspace = true }
winnow = { workspace = true }

# Serialization and Deserialization support
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.128", optional = true }
serde = { workspace = true, optional = true }
serde_derive = { workspace = true, optional = true }
serde_with = { workspace = true, features = ["alloc"], optional = true }
bcs = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }

# RNG support
rand_core = { version = "0.6.4", optional = true }
rand_core = { workspace = true, optional = true }

# Hash support
blake2 = { version = "0.10.6", optional = true }
blake2 = { workspace = true, optional = true }

# proptest support
proptest = { version = "1.6.0", default-features = false, features = ["std"], optional = true }
test-strategy = { version = "0.4", optional = true }
proptest = { workspace = true, features = ["std"], optional = true }
test-strategy = { workspace = true, optional = true }

[dev-dependencies]
bcs = "0.1.6"
serde_json = "1.0.128"
num-bigint = "0.4.6"
paste = "1.0.15"
bcs = { workspace = true }
serde_json = { workspace = true }
num-bigint = { workspace = true }
paste = { workspace = true }

[target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.3"
Expand Down
28 changes: 14 additions & 14 deletions crates/sui-transaction-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ readme = "README.md"
description = "Transaction API for the Rust SDK for the Sui Blockchain"

[dependencies]
base64ct = { version = "1.6", features = ["std"] }
bcs = "0.1.6"
serde = { version = "1.0", features = ["derive"] }
serde_with = { version = "3.9", default-features = false, features = ["alloc"] }
sui-types = { package = "sui-sdk-types", path = "../sui-sdk-types", features = ["serde", "hash"] }
thiserror = "2.0"
serde_json = { version = "1.0.128" }
base64ct = { workspace = true, features = ["std"] }
bcs = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_with = { workspace = true, features = ["alloc"] }
sui-types = { workspace = true, features = ["serde", "hash"] }
thiserror = { workspace = true }
serde_json = { workspace = true }

[dev-dependencies]
anyhow = "1.0"
rand = "0.8"
serde_json = "1.0"
sui-crypto = { package = "sui-crypto", path = "../sui-crypto" , features = ["ed25519"] }
sui-graphql-client = { package = "sui-graphql-client", path = "../sui-graphql-client" }
sui-types = { package = "sui-sdk-types", path = "../sui-sdk-types", features = ["rand"] }
tokio = { version = "1.0", features = ["full"] }
anyhow = { workspace = true }
rand = { workspace = true }
serde_json = { workspace = true }
sui-crypto = { workspace = true, features = ["ed25519"] }
sui-graphql-client = { workspace = true }
sui-types = { workspace = true, features = ["rand"] }
tokio = { workspace = true, features = ["full"] }