Skip to content

Commit

Permalink
Reduce dependencies for library consumers (#67)
Browse files Browse the repository at this point in the history
Hello!

Cargo has the built-in feature to put examples in a dedicated folder.
These executables have access to the additional [dev-dependencies],
which can therefore be removed from the lib's dependencies. In
particular, moving tokio with the "full" feature enabled to
[dev-dependencies] reduces the weight of the crate for consumers by
quite a lot.

I haven't changed the version of any dependency.
  • Loading branch information
fructose-outburst authored Dec 21, 2024
1 parent 81b166a commit b0ce626
Show file tree
Hide file tree
Showing 24 changed files with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ 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 = ["full"]}
tokio = {version = "1.29.1", features = ["net", "sync"]}
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"]}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b0ce626

Please sign in to comment.