From ac0fa99dcf5f19bdac5948d6caddc7cf9e69e741 Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Sun, 13 Oct 2024 15:44:06 -0400 Subject: [PATCH] chore: clean up unused deps (#2532) --- Cargo.lock | 10 ---------- bin/saya/Cargo.toml | 5 ----- bin/saya/src/main.rs | 2 ++ crates/torii/graphql/Cargo.toml | 11 +++-------- crates/torii/graphql/src/lib.rs | 2 ++ 5 files changed, 7 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d5cab82b5..de1ac5d278 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12195,14 +12195,9 @@ version = "1.0.0-alpha.15" dependencies = [ "anyhow", "clap", - "clap-verbosity-flag", - "clap_complete", "console", "dojo-utils", - "katana-primitives", - "katana-rpc-api", "saya-core", - "serde_json", "starknet 0.12.0", "starknet-crypto 0.7.2", "tokio", @@ -14897,9 +14892,7 @@ dependencies = [ "async-graphql", "async-graphql-warp", "async-recursion", - "async-trait", "base64 0.21.7", - "cainome 0.2.3 (git+https://github.com/cartridge-gg/cainome?tag=v0.4.1)", "camino", "chrono", "convert_case 0.6.0", @@ -14911,11 +14904,9 @@ dependencies = [ "lazy_static", "regex", "scarb", - "scarb-ui", "serde", "serde_json", "serial_test", - "sozo-ops", "sqlx", "starknet 0.12.0", "starknet-crypto 0.7.2", @@ -14925,7 +14916,6 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", - "tokio-util", "toml 0.8.19", "torii-core", "tracing", diff --git a/bin/saya/Cargo.toml b/bin/saya/Cargo.toml index 8c472daa07..439adc9dbe 100644 --- a/bin/saya/Cargo.toml +++ b/bin/saya/Cargo.toml @@ -9,14 +9,9 @@ version.workspace = true [dependencies] anyhow.workspace = true clap.workspace = true -clap-verbosity-flag.workspace = true -clap_complete.workspace = true console.workspace = true dojo-utils.workspace = true -katana-primitives.workspace = true -katana-rpc-api.workspace = true saya-core.workspace = true -serde_json.workspace = true starknet.workspace = true tokio.workspace = true tracing.workspace = true diff --git a/bin/saya/src/main.rs b/bin/saya/src/main.rs index bf0ff83b14..f023eaeade 100644 --- a/bin/saya/src/main.rs +++ b/bin/saya/src/main.rs @@ -1,3 +1,5 @@ +#![warn(unused_crate_dependencies)] + //! Saya executable entry point. use clap::Parser; use console::Style; diff --git a/crates/torii/graphql/Cargo.toml b/crates/torii/graphql/Cargo.toml index b4c2d3ced6..7ec5edc7a1 100644 --- a/crates/torii/graphql/Cargo.toml +++ b/crates/torii/graphql/Cargo.toml @@ -13,15 +13,12 @@ anyhow.workspace = true async-graphql = { version = "6.0.7", features = [ "chrono", "dynamic-schema" ] } async-graphql-warp = "6.0.7" async-recursion = "1.0.5" -async-trait.workspace = true base64.workspace = true -cainome.workspace = true chrono.workspace = true convert_case = "0.6.0" dojo-types.workspace = true lazy_static.workspace = true regex.workspace = true -scarb-ui.workspace = true serde.workspace = true serde_json.workspace = true sqlx.workspace = true @@ -29,10 +26,8 @@ starknet-crypto.workspace = true strum.workspace = true strum_macros.workspace = true thiserror.workspace = true -tokio-stream = "0.1.11" -tokio-util = "0.7.7" tokio.workspace = true -toml.workspace = true +tokio-stream = "0.1.11" torii-core.workspace = true tracing.workspace = true url.workspace = true @@ -46,7 +41,7 @@ dojo-world.workspace = true katana-runner.workspace = true scarb.workspace = true serial_test = "2.0.0" -sozo-ops.workspace = true -starknet-crypto.workspace = true starknet.workspace = true +starknet-crypto.workspace = true tempfile.workspace = true +toml.workspace = true diff --git a/crates/torii/graphql/src/lib.rs b/crates/torii/graphql/src/lib.rs index 6925744b44..d9c57ed18d 100644 --- a/crates/torii/graphql/src/lib.rs +++ b/crates/torii/graphql/src/lib.rs @@ -1,3 +1,5 @@ +#![warn(unused_crate_dependencies)] + pub mod object; mod constants;