Skip to content

Commit

Permalink
chore: remove unused deps (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Oct 1, 2024
1 parent 5eb722a commit edc8840
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 454 deletions.
433 changes: 54 additions & 379 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ tempfile = "3.9.0"
test-log = "0.2.11"
thiserror = "1.0.32"
tokio = { version = "1.39.2", features = [ "full" ] }
tokio-util = "0.7.12"
toml = "0.8"
tower = "0.4.13"
tower-http = "0.4.4"
Expand Down
25 changes: 7 additions & 18 deletions crates/dojo-lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ testing = [ ]

[dependencies]
anyhow.workspace = true
cainome.workspace = true
cairo-lang-compiler.workspace = true
cairo-lang-debug.workspace = true
cairo-lang-defs.workspace = true
cairo-lang-diagnostics.workspace = true
cairo-lang-filesystem.workspace = true
cairo-lang-formatter.workspace = true
cairo-lang-lowering.workspace = true
cairo-lang-parser.workspace = true
cairo-lang-plugins.workspace = true
cairo-lang-project.workspace = true
cairo-lang-semantic.workspace = true
Expand All @@ -31,35 +27,28 @@ cairo-lang-test-plugin.workspace = true
cairo-lang-utils.workspace = true
camino.workspace = true
convert_case.workspace = true
directories = "5"
dojo-types = { path = "../dojo-types" }
dojo-world = { path = "../dojo-world", features = [ "manifest", "metadata" ] }
dojo-types.workspace = true
dojo-world = { workspace = true, features = [ "manifest", "metadata" ] }
indoc.workspace = true
itertools.workspace = true
lazy_static.workspace = true
num-traits.workspace = true
once_cell.workspace = true
regex.workspace = true
salsa.workspace = true
scarb.workspace = true
scarb-ui.workspace = true
semver.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
smol_str.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
toml.workspace = true
tracing.workspace = true
url.workspace = true

[dev-dependencies]
assert_fs.workspace = true
cairo-lang-debug.workspace = true
cairo-lang-parser.workspace = true
cairo-lang-semantic.workspace = true
cairo-lang-test-utils.workspace = true
dojo-test-utils = { path = "../dojo-test-utils" }
env_logger = "0.10.0"
pretty_assertions.workspace = true
dojo-test-utils.workspace = true
once_cell.workspace = true
salsa.workspace = true
test-log.workspace = true
2 changes: 2 additions & 0 deletions crates/dojo-lang/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(unused_crate_dependencies)]

//! Dojo capabilities and utilities on top of Starknet.
//!
//! Dojo is a full stack toolchain for developing onchain games in Cairo.
Expand Down
9 changes: 0 additions & 9 deletions crates/dojo-test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ version.workspace = true
anyhow.workspace = true
assert_fs.workspace = true
async-trait.workspace = true
cairo-lang-compiler.workspace = true
cairo-lang-filesystem.workspace = true
cairo-lang-project.workspace = true
cairo-lang-starknet.workspace = true
camino.workspace = true
dojo-lang = { path = "../dojo-lang" }
dojo-world = { path = "../dojo-world", features = [ "manifest", "migration" ] }
Expand All @@ -23,18 +19,13 @@ katana-node.workspace = true
katana-primitives = { path = "../katana/primitives" }
katana-rpc = { path = "../katana/rpc/rpc" }
katana-rpc-api = { path = "../katana/rpc/rpc-api" }
katana-starknet = { package = "starknet", version = "=0.10.0" }
scarb.workspace = true
scarb-ui.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
smol_str.workspace = true
starknet.workspace = true
thiserror.workspace = true
tokio = { version = "1.28.0", features = [ "full" ] }
toml.workspace = true
tracing.workspace = true
url.workspace = true

[build-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions crates/dojo-test-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(unused_crate_dependencies)]

pub mod compiler;
pub mod migration;
pub mod rpc;
Expand Down
3 changes: 0 additions & 3 deletions crates/katana/runner/macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ proc-macro = true
proc-macro2 = "1.0.86"
quote = "1.0"
syn = { version = "2.0", features = [ "fold", "full" ] }

[dev-dependencies]
starknet.workspace = true
1 change: 0 additions & 1 deletion crates/katana/storage/provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ test-utils = [ "dep:alloy-primitives", "dep:serde_json" ]

[dev-dependencies]
alloy-primitives.workspace = true
katana-core.workspace = true
katana-runner.workspace = true
lazy_static.workspace = true
rand.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/katana/tasks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ rayon.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-metrics = "0.3.1"
tokio-util = { version = "0.7.11", features = [ "rt" ] }
tokio-util = { workspace = true, features = [ "rt" ] }
tracing.workspace = true
1 change: 0 additions & 1 deletion crates/sozo/ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ assert_fs.workspace = true
dojo-test-utils = { workspace = true, features = [ "build-examples" ] }
ipfs-api-backend-hyper = { git = "https://github.com/ferristseng/rust-ipfs-api", rev = "af2c17f7b19ef5b9898f458d97a90055c3605633", features = [ "with-hyper-rustls" ] }
katana-runner.workspace = true
tee = "0.1.0"

[features]
test-utils = [ "dep:dojo-test-utils", "dep:katana-runner" ]
Expand Down
11 changes: 5 additions & 6 deletions crates/torii/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ version.workspace = true
[dependencies]
async-trait.workspace = true
crypto-bigint.workspace = true
dojo-types = { path = "../../dojo-types" }
dojo-world = { path = "../../dojo-world", features = [ "contracts" ] }
dojo-types.workspace = true
dojo-world = { workspace = true, features = [ "contracts" ] }
futures.workspace = true
futures-util.workspace = true
libp2p-gossipsub = "0.46.1"
num-traits.workspace = true
parking_lot.workspace = true
serde.workspace = true
Expand All @@ -21,8 +20,8 @@ starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
tokio = { version = "1.32.0", features = [ "sync" ], default-features = false }
torii-grpc = { path = "../grpc", features = [ "client" ] }
torii-relay = { path = "../libp2p" }
torii-grpc = { workspace = true, features = [ "client" ] }
torii-relay = { workspace = true }
url.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand All @@ -35,5 +34,5 @@ wasm-tonic.workspace = true

[dev-dependencies]
camino.workspace = true
dojo-world = { path = "../../dojo-world" }
dojo-world.workspace = true
tokio.workspace = true
19 changes: 6 additions & 13 deletions crates/torii/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,32 @@ version.workspace = true
anyhow.workspace = true
async-trait.workspace = true
base64.workspace = true
bitflags = "2.6.0"
cainome.workspace = true
chrono.workspace = true
crypto-bigint.workspace = true
dojo-types = { path = "../../dojo-types" }
dojo-world = { path = "../../dojo-world", features = [ "contracts", "manifest" ] }
dojo-types.workspace = true
dojo-world = { workspace = true, features = [ "contracts", "manifest" ] }
futures-channel = "0.3.0"
futures-util.workspace = true
hashlink.workspace = true
hex.workspace = true
lazy_static.workspace = true
log.workspace = true
num-traits.workspace = true
once_cell.workspace = true
reqwest.workspace = true
scarb-ui.workspace = true
serde.workspace = true
serde_json.workspace = true
slab = "0.4.2"
sozo-ops.workspace = true
sqlx.workspace = true
starknet-crypto.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
tokio = { version = "1.32.0", features = [ "sync" ], default-features = true }
tokio-stream = "0.1.11"
tokio-util = "0.7.7"
tokio-util.workspace = true
tracing.workspace = true
clap.workspace = true
bitflags = "2.6.0"

[dev-dependencies]
camino.workspace = true
dojo-test-utils = { path = "../../dojo-test-utils" }
dojo-test-utils.workspace = true
dojo-utils.workspace = true
katana-runner.workspace = true
scarb.workspace = true
2 changes: 2 additions & 0 deletions crates/torii/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(unused_crate_dependencies)]

pub mod cache;
pub mod engine;
pub mod error;
Expand Down
12 changes: 6 additions & 6 deletions crates/torii/graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@ base64.workspace = true
cainome.workspace = true
chrono.workspace = true
convert_case = "0.6.0"
dojo-types = { path = "../../dojo-types" }
dojo-types.workspace = true
lazy_static.workspace = true
regex.workspace = true
scarb-ui.workspace = true
serde.workspace = true
serde_json.workspace = true
sozo-ops.workspace = true
sqlx.workspace = true
strum.workspace = true
strum_macros.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-stream = "0.1.11"
tokio-util = "0.7.7"
tokio.workspace = true
toml.workspace = true
torii-core = { path = "../core" }
torii-core.workspace = true
tracing.workspace = true
url.workspace = true
warp.workspace = true

[dev-dependencies]
camino.workspace = true
dojo-test-utils = { path = "../../dojo-test-utils", features = [ "build-examples" ] }
dojo-test-utils = { workspace = true, features = [ "build-examples" ] }
dojo-utils.workspace = true
dojo-world.workspace = true
katana-runner.workspace = true
scarb.workspace = true
serial_test = "2.0.0"
starknet-crypto.workspace = true
sozo-ops.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
16 changes: 5 additions & 11 deletions crates/torii/grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ repository.workspace = true
version.workspace = true

[dependencies]
bytes.workspace = true
dojo-types = { path = "../../dojo-types" }
futures-util.workspace = true
dojo-types.workspace = true
futures.workspace = true
futures-util.workspace = true
num-traits.workspace = true
parking_lot.workspace = true
rayon.workspace = true
itertools.workspace = true
starknet-crypto.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
torii-core = { path = "../core", optional = true }

Expand All @@ -26,7 +23,6 @@ strum_macros.workspace = true

# server
dojo-world = { path = "../../dojo-world", features = [ "contracts" ] }
hex.workspace = true
hyper.workspace = true
rand.workspace = true
serde_json.workspace = true
Expand All @@ -40,7 +36,6 @@ dojo-test-utils.workspace = true
dojo-utils.workspace = true
katana-runner.workspace = true
scarb.workspace = true
sozo-ops.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
tonic-web-wasm-client.workspace = true
Expand All @@ -50,12 +45,11 @@ wasm-tonic.workspace = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
prost.workspace = true
sqlx.workspace = true
tokio-stream = "0.1.14"
tokio.workspace = true
tokio-stream = "0.1.14"
tonic.workspace = true
tonic-reflection.workspace = true
tonic-web.workspace = true
tonic.workspace = true
url.workspace = true

[build-dependencies]
tonic-build.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions crates/torii/grpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(unused_crate_dependencies)]

#[cfg(target_arch = "wasm32")]
extern crate wasm_prost as prost;
#[cfg(target_arch = "wasm32")]
Expand Down
8 changes: 2 additions & 6 deletions crates/torii/libp2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,28 @@ rand.workspace = true
serde.workspace = true
# preserve order
anyhow.workspace = true
async-trait.workspace = true
cainome.workspace = true
chrono.workspace = true
crypto-bigint.workspace = true
dojo-types.workspace = true
dojo-world = { path = "../../dojo-world", features = [ "contracts" ] }
indexmap.workspace = true
regex.workspace = true
serde_json.workspace = true
starknet.workspace = true
starknet-crypto.workspace = true
thiserror.workspace = true
tracing.workspace = true
tracing-subscriber = { version = "0.3", features = [ "env-filter" ] }

[dev-dependencies]
dojo-test-utils.workspace = true
katana-runner.workspace = true
tempfile.workspace = true
tokio.workspace = true
tracing-subscriber.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
libp2p = { git = "https://github.com/libp2p/rust-libp2p", features = [ "dns", "ed25519", "gossipsub", "identify", "macros", "noise", "ping", "quic", "relay", "tcp", "tokio", "websocket", "yamux" ], rev = "cdc9638" }
libp2p-webrtc = { git = "https://github.com/libp2p/rust-libp2p", features = [ "pem", "tokio" ], rev = "cdc9638" }
rcgen = "0.13.1"
sqlx.workspace = true
tokio.workspace = true
torii-core.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions crates/torii/libp2p/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![warn(unused_crate_dependencies)]

pub mod client;
mod constants;
pub mod errors;
Expand Down

0 comments on commit edc8840

Please sign in to comment.