From c548c85dffa64f325d95485b59ba6ea4d10540d3 Mon Sep 17 00:00:00 2001 From: "Jean Marchand (Exotic Markets)" Date: Sat, 22 Jul 2023 12:43:56 +0200 Subject: [PATCH] chore: Remove unused crates (#2577) --- Cargo.lock | 14 -------------- avm/Cargo.toml | 2 -- cli/Cargo.toml | 1 - lang/attribute/access-control/Cargo.toml | 2 -- lang/attribute/account/Cargo.toml | 2 -- lang/attribute/constant/Cargo.toml | 1 - lang/attribute/error/Cargo.toml | 1 - lang/attribute/event/Cargo.toml | 1 - lang/attribute/program/Cargo.toml | 2 -- lang/derive/accounts/Cargo.toml | 2 -- 10 files changed, 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ace511420d..4c2a2935c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,10 +112,8 @@ name = "anchor-attribute-access-control" version = "0.28.0" dependencies = [ "anchor-syn", - "anyhow", "proc-macro2 1.0.60", "quote 1.0.28", - "regex", "syn 1.0.109", ] @@ -124,11 +122,9 @@ name = "anchor-attribute-account" version = "0.28.0" dependencies = [ "anchor-syn", - "anyhow", "bs58 0.5.0", "proc-macro2 1.0.60", "quote 1.0.28", - "rustversion", "syn 1.0.109", ] @@ -137,7 +133,6 @@ name = "anchor-attribute-constant" version = "0.28.0" dependencies = [ "anchor-syn", - "proc-macro2 1.0.60", "quote 1.0.28", "syn 1.0.109", ] @@ -147,7 +142,6 @@ name = "anchor-attribute-error" version = "0.28.0" dependencies = [ "anchor-syn", - "proc-macro2 1.0.60", "quote 1.0.28", "syn 1.0.109", ] @@ -157,7 +151,6 @@ name = "anchor-attribute-event" version = "0.28.0" dependencies = [ "anchor-syn", - "anyhow", "proc-macro2 1.0.60", "quote 1.0.28", "syn 1.0.109", @@ -168,8 +161,6 @@ name = "anchor-attribute-program" version = "0.28.0" dependencies = [ "anchor-syn", - "anyhow", - "proc-macro2 1.0.60", "quote 1.0.28", "syn 1.0.109", ] @@ -206,7 +197,6 @@ dependencies = [ "solang-parser", "syn 1.0.109", "tar", - "tokio", "toml 0.7.6", "walkdir", ] @@ -233,8 +223,6 @@ name = "anchor-derive-accounts" version = "0.28.0" dependencies = [ "anchor-syn", - "anyhow", - "proc-macro2 1.0.60", "quote 1.0.28", "syn 1.0.109", ] @@ -661,9 +649,7 @@ dependencies = [ "reqwest", "semver", "serde", - "serde_json", "tempfile", - "thiserror", ] [[package]] diff --git a/avm/Cargo.toml b/avm/Cargo.toml index 53faaabbed..2f4d22676a 100644 --- a/avm/Cargo.toml +++ b/avm/Cargo.toml @@ -21,6 +21,4 @@ once_cell = { version = "1.8.0" } reqwest = { version = "0.11.9", default-features = false, features = ["blocking", "json", "rustls-tls"] } semver = "1.0.4" serde = { version = "1.0.136", features = ["derive"] } -serde_json = "1.0.78" tempfile = "3.3.0" -thiserror = "1.0.30" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index f7c978da73..1c82253852 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -45,6 +45,5 @@ solana-sdk = ">=1.14, <1.17" solang-parser = "=0.3.1" syn = { version = "1.0.60", features = ["full", "extra-traits"] } tar = "0.4.35" -tokio = "~1.14.1" toml = "0.7.6" walkdir = "2.3.2" diff --git a/lang/attribute/access-control/Cargo.toml b/lang/attribute/access-control/Cargo.toml index ed7fdca286..0dc0312a24 100644 --- a/lang/attribute/access-control/Cargo.toml +++ b/lang/attribute/access-control/Cargo.toml @@ -16,8 +16,6 @@ anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0" } -anyhow = "1" proc-macro2 = "1" quote = "1" -regex = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/attribute/account/Cargo.toml b/lang/attribute/account/Cargo.toml index aed90e7224..92eeda4bdc 100644 --- a/lang/attribute/account/Cargo.toml +++ b/lang/attribute/account/Cargo.toml @@ -17,9 +17,7 @@ anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0", features = ["hash"] } -anyhow = "1" bs58 = "0.5" proc-macro2 = "1" quote = "1" -rustversion = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/attribute/constant/Cargo.toml b/lang/attribute/constant/Cargo.toml index af7934cf6a..fdfb63eec3 100644 --- a/lang/attribute/constant/Cargo.toml +++ b/lang/attribute/constant/Cargo.toml @@ -17,6 +17,5 @@ anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0" } -proc-macro2 = "1" quote = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/attribute/error/Cargo.toml b/lang/attribute/error/Cargo.toml index 34126937c7..276e3bdbe8 100644 --- a/lang/attribute/error/Cargo.toml +++ b/lang/attribute/error/Cargo.toml @@ -17,6 +17,5 @@ anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0" } -proc-macro2 = "1" quote = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/attribute/event/Cargo.toml b/lang/attribute/event/Cargo.toml index 228f58a340..9c1d810709 100644 --- a/lang/attribute/event/Cargo.toml +++ b/lang/attribute/event/Cargo.toml @@ -18,7 +18,6 @@ event-cpi = ["anchor-syn/event-cpi"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0", features = ["hash"] } -anyhow = "1" proc-macro2 = "1" quote = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/attribute/program/Cargo.toml b/lang/attribute/program/Cargo.toml index 40c00a8ef0..370c235b7c 100644 --- a/lang/attribute/program/Cargo.toml +++ b/lang/attribute/program/Cargo.toml @@ -17,7 +17,5 @@ anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] anchor-syn = { path = "../../syn", version = "0.28.0" } -anyhow = "1" -proc-macro2 = "1" quote = "1" syn = { version = "1", features = ["full"] } diff --git a/lang/derive/accounts/Cargo.toml b/lang/derive/accounts/Cargo.toml index cd2f8c78de..5ad7a08603 100644 --- a/lang/derive/accounts/Cargo.toml +++ b/lang/derive/accounts/Cargo.toml @@ -19,8 +19,6 @@ idl-build = ["anchor-syn/idl-build"] anchor-debug = ["anchor-syn/anchor-debug"] [dependencies] -anyhow = "1" -proc-macro2 = "1" quote = "1" syn = { version = "1", features = ["full"] } anchor-syn = { path = "../../syn", version = "0.28.0" }