From 5c27f752e52a9781858cd0e856975b9d3b7ceee9 Mon Sep 17 00:00:00 2001 From: lmlmt Date: Sat, 21 Dec 2024 13:49:25 -0500 Subject: [PATCH] Revert "Reduce dependencies for library consumers (#67)" This reverts commit b0ce626bcc6d023f685c4b9e529d0e86a020e91f. --- Cargo.toml | 13 +++++++------ {examples => src/bin}/agent.rs | 0 {examples => src/bin}/bridge_withdraw.rs | 0 {examples => src/bin}/class_transfer.rs | 0 {examples => src/bin}/info.rs | 0 {examples => src/bin}/leverage.rs | 0 {examples => src/bin}/market_maker.rs | 0 {examples => src/bin}/market_order_and_cancel.rs | 0 {examples => src/bin}/order_and_cancel.rs | 0 {examples => src/bin}/order_and_cancel_cloid.rs | 0 {examples => src/bin}/set_referrer.rs | 0 {examples => src/bin}/spot_order.rs | 0 {examples => src/bin}/spot_transfer.rs | 0 {examples => src/bin}/usdc_transfer.rs | 0 {examples => src/bin}/vault_transfer.rs | 0 {examples => src/bin}/ws_all_mids.rs | 0 {examples => src/bin}/ws_candles.rs | 0 {examples => src/bin}/ws_l2_book.rs | 0 {examples => src/bin}/ws_notification.rs | 0 {examples => src/bin}/ws_orders.rs | 0 {examples => src/bin}/ws_trades.rs | 0 {examples => src/bin}/ws_user_events.rs | 0 {examples => src/bin}/ws_user_fundings.rs | 0 .../bin}/ws_user_non_funding_ledger_updates.rs | 0 24 files changed, 7 insertions(+), 6 deletions(-) rename {examples => src/bin}/agent.rs (100%) rename {examples => src/bin}/bridge_withdraw.rs (100%) rename {examples => src/bin}/class_transfer.rs (100%) rename {examples => src/bin}/info.rs (100%) rename {examples => src/bin}/leverage.rs (100%) rename {examples => src/bin}/market_maker.rs (100%) rename {examples => src/bin}/market_order_and_cancel.rs (100%) rename {examples => src/bin}/order_and_cancel.rs (100%) rename {examples => src/bin}/order_and_cancel_cloid.rs (100%) rename {examples => src/bin}/set_referrer.rs (100%) rename {examples => src/bin}/spot_order.rs (100%) rename {examples => src/bin}/spot_transfer.rs (100%) rename {examples => src/bin}/usdc_transfer.rs (100%) rename {examples => src/bin}/vault_transfer.rs (100%) rename {examples => src/bin}/ws_all_mids.rs (100%) rename {examples => src/bin}/ws_candles.rs (100%) rename {examples => src/bin}/ws_l2_book.rs (100%) rename {examples => src/bin}/ws_notification.rs (100%) rename {examples => src/bin}/ws_orders.rs (100%) rename {examples => src/bin}/ws_trades.rs (100%) rename {examples => src/bin}/ws_user_events.rs (100%) rename {examples => src/bin}/ws_user_fundings.rs (100%) rename {examples => src/bin}/ws_user_non_funding_ledger_updates.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 02fcd12..a96727b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,22 +9,23 @@ readme = "README.md" documentation = "https://github.com/hyperliquid-dex/hyperliquid-rust-sdk" repository = "https://github.com/hyperliquid-dex/hyperliquid-rust-sdk" +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + [dependencies] chrono = "0.4.26" +env_logger = "0.10.0" ethers = {version = "2.0.14", features = ["eip712", "abigen"]} futures-util = "0.3.28" +hex = "0.4.3" +http = "0.2.9" lazy_static = "1.3" log = "0.4.19" rand = "0.8.5" reqwest = "0.11.18" -rmp-serde = "1.0.0" serde = {version = "1.0.175", features = ["derive"]} serde_json = "1.0.103" +rmp-serde = "1.0.0" thiserror = "1.0.44" -tokio = {version = "1.29.1", features = ["net", "sync"]} +tokio = {version = "1.29.1", features = ["full"]} tokio-tungstenite = {version = "0.20.0", features = ["native-tls"]} uuid = {version = "1.6.1", features = ["v4"]} - -[dev-dependencies] -env_logger = "0.10.0" -tokio = {version = "1.29.1", features = ["full"]} diff --git a/examples/agent.rs b/src/bin/agent.rs similarity index 100% rename from examples/agent.rs rename to src/bin/agent.rs diff --git a/examples/bridge_withdraw.rs b/src/bin/bridge_withdraw.rs similarity index 100% rename from examples/bridge_withdraw.rs rename to src/bin/bridge_withdraw.rs diff --git a/examples/class_transfer.rs b/src/bin/class_transfer.rs similarity index 100% rename from examples/class_transfer.rs rename to src/bin/class_transfer.rs diff --git a/examples/info.rs b/src/bin/info.rs similarity index 100% rename from examples/info.rs rename to src/bin/info.rs diff --git a/examples/leverage.rs b/src/bin/leverage.rs similarity index 100% rename from examples/leverage.rs rename to src/bin/leverage.rs diff --git a/examples/market_maker.rs b/src/bin/market_maker.rs similarity index 100% rename from examples/market_maker.rs rename to src/bin/market_maker.rs diff --git a/examples/market_order_and_cancel.rs b/src/bin/market_order_and_cancel.rs similarity index 100% rename from examples/market_order_and_cancel.rs rename to src/bin/market_order_and_cancel.rs diff --git a/examples/order_and_cancel.rs b/src/bin/order_and_cancel.rs similarity index 100% rename from examples/order_and_cancel.rs rename to src/bin/order_and_cancel.rs diff --git a/examples/order_and_cancel_cloid.rs b/src/bin/order_and_cancel_cloid.rs similarity index 100% rename from examples/order_and_cancel_cloid.rs rename to src/bin/order_and_cancel_cloid.rs diff --git a/examples/set_referrer.rs b/src/bin/set_referrer.rs similarity index 100% rename from examples/set_referrer.rs rename to src/bin/set_referrer.rs diff --git a/examples/spot_order.rs b/src/bin/spot_order.rs similarity index 100% rename from examples/spot_order.rs rename to src/bin/spot_order.rs diff --git a/examples/spot_transfer.rs b/src/bin/spot_transfer.rs similarity index 100% rename from examples/spot_transfer.rs rename to src/bin/spot_transfer.rs diff --git a/examples/usdc_transfer.rs b/src/bin/usdc_transfer.rs similarity index 100% rename from examples/usdc_transfer.rs rename to src/bin/usdc_transfer.rs diff --git a/examples/vault_transfer.rs b/src/bin/vault_transfer.rs similarity index 100% rename from examples/vault_transfer.rs rename to src/bin/vault_transfer.rs diff --git a/examples/ws_all_mids.rs b/src/bin/ws_all_mids.rs similarity index 100% rename from examples/ws_all_mids.rs rename to src/bin/ws_all_mids.rs diff --git a/examples/ws_candles.rs b/src/bin/ws_candles.rs similarity index 100% rename from examples/ws_candles.rs rename to src/bin/ws_candles.rs diff --git a/examples/ws_l2_book.rs b/src/bin/ws_l2_book.rs similarity index 100% rename from examples/ws_l2_book.rs rename to src/bin/ws_l2_book.rs diff --git a/examples/ws_notification.rs b/src/bin/ws_notification.rs similarity index 100% rename from examples/ws_notification.rs rename to src/bin/ws_notification.rs diff --git a/examples/ws_orders.rs b/src/bin/ws_orders.rs similarity index 100% rename from examples/ws_orders.rs rename to src/bin/ws_orders.rs diff --git a/examples/ws_trades.rs b/src/bin/ws_trades.rs similarity index 100% rename from examples/ws_trades.rs rename to src/bin/ws_trades.rs diff --git a/examples/ws_user_events.rs b/src/bin/ws_user_events.rs similarity index 100% rename from examples/ws_user_events.rs rename to src/bin/ws_user_events.rs diff --git a/examples/ws_user_fundings.rs b/src/bin/ws_user_fundings.rs similarity index 100% rename from examples/ws_user_fundings.rs rename to src/bin/ws_user_fundings.rs diff --git a/examples/ws_user_non_funding_ledger_updates.rs b/src/bin/ws_user_non_funding_ledger_updates.rs similarity index 100% rename from examples/ws_user_non_funding_ledger_updates.rs rename to src/bin/ws_user_non_funding_ledger_updates.rs