From 0e406af7f39c894c10bb4f5ec479d2b53462e6e2 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 21 Mar 2023 12:12:03 +0100 Subject: [PATCH] Drop more dependencies --- Cargo.lock | 40 ++-------------------------------------- connector/Cargo.toml | 13 ------------- lib/Cargo.toml | 3 --- 3 files changed, 2 insertions(+), 54 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d3b176..e1b43bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -417,37 +417,16 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f61305cacf1d0c5c9d3ee283d22f8f1f8c743a18ceb44a1b102bd53476c141de" -[[package]] -name = "async-stream" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22068c0c19514942eefcfd4daf8976ef1aad84e61539f95cd200c35202f80af5" -dependencies = [ - "async-stream-impl 0.2.1", - "futures-core", -] - [[package]] name = "async-stream" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dad5c83079eae9969be7fadefe640a1c566901f05ff91ab221de4b6f68d9507e" dependencies = [ - "async-stream-impl 0.3.3", + "async-stream-impl", "futures-core", ] -[[package]] -name = "async-stream-impl" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25f9db3b38af870bf7e5cc649167533b493928e50744e2c30ae350230b414670" -dependencies = [ - "proc-macro2 1.0.50", - "quote 1.0.23", - "syn 1.0.107", -] - [[package]] name = "async-stream-impl" version = "0.3.3" @@ -3046,27 +3025,15 @@ name = "mango-feeds-connector" version = "0.1.0" dependencies = [ "anyhow", - "arrayref", "async-channel", - "async-stream 0.2.1", "async-trait", - "base64 0.21.0", - "bs58 0.4.0", - "bytemuck", - "bytes 1.4.0", - "chrono", "futures 0.3.26", - "futures-core", - "futures-util", - "itertools 0.10.5", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core-client", "log 0.4.17", - "rand 0.7.3", "rustls", "serde", "serde_derive", - "serde_json", "solana-account-decoder", "solana-client", "solana-rpc", @@ -3083,9 +3050,7 @@ version = "0.1.0" dependencies = [ "anchor-lang", "anyhow", - "arrayref", "async-channel", - "async-stream 0.2.1", "async-trait", "base64 0.21.0", "bs58 0.4.0", @@ -3095,7 +3060,6 @@ dependencies = [ "fixed", "futures 0.3.26", "futures-core", - "futures-util", "itertools 0.10.5", "jsonrpc-core 18.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core-client", @@ -7409,7 +7373,7 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f219fad3b929bef19b1f86fbc0358d35daed8f2cac972037ac0dc10bbb8d5fb" dependencies = [ - "async-stream 0.3.3", + "async-stream", "async-trait", "axum", "base64 0.13.1", diff --git a/connector/Cargo.toml b/connector/Cargo.toml index 9601c4a..c7e678b 100644 --- a/connector/Cargo.toml +++ b/connector/Cargo.toml @@ -16,32 +16,19 @@ solana-client = "~1.14.9" solana-account-decoder = "~1.14.9" solana-sdk = "~1.14.9" -arrayref = "*" -bytemuck = "*" - tokio = { version = "1", features = ["full"] } rustls = "0.20.8" serde = "1.0.130" serde_derive = "1.0.130" -serde_json = "1.0.68" tonic = "0.8" -bs58 = "*" -base64 = "*" log = "0.4" -rand = "0.7" anyhow = "1.0" -bytes = "1.0" -itertools = "0.10.5" -chrono = "0.4.23" futures = "0.3.17" -futures-core = "0.3" -futures-util = "0.3" -async-stream = "0.2" async-channel = "1.6" async-trait = "0.1" diff --git a/lib/Cargo.toml b/lib/Cargo.toml index b3652cc..16889bb 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -19,7 +19,6 @@ solana-account-decoder = "~1.14.9" solana-sdk = "~1.14.9" mango-v4 = { git = "https://github.com/blockworks-foundation/mango-v4", branch = "dev", features = ["client"] } -arrayref = "*" bytemuck = "*" fixed = { version = "*", features = ["serde"] } @@ -48,9 +47,7 @@ chrono = "0.4.23" futures = "0.3.17" futures-core = "0.3" -futures-util = "0.3" -async-stream = "0.2" async-channel = "1.6" async-trait = "0.1"