Skip to content

Commit

Permalink
[Code-quality]: removed few dependencies that are not being used. (#381)
Browse files Browse the repository at this point in the history
* removed the dependencies that are redundant

* minor changes with the version
  • Loading branch information
ItshMoh authored Feb 26, 2025
1 parent 31f532c commit 98cc85c
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 78 deletions.
84 changes: 26 additions & 58 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions crates/floresta-chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ bitcoin = { version = "0.32", features = [
], default-features = false }
spin = "0.9.8"
core2 = { version = "0.4.0", default-features = false }
hashbrown = { version = "0.14.0", optional = true }
secp256k1 = { version = "*", features = ["alloc"], optional = true }
floresta-common = { path = "../floresta-common", default-features = false, features = ["std"] }
bitcoinconsensus = { version = "0.106.0", optional = true, default-features = false }
metrics = { path = "../../metrics", optional = true }
Expand All @@ -38,7 +36,7 @@ criterion = "0.5.1"
rand = "0.8.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
zstd = "0.12.3"
zstd = "0.13.3"
hex = "0.4.3"

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/floresta-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bitcoin = { version = "0.32", default-features = false, features = ["serde"] }
spin = "0.9.8"

# No-std specific dependencies
hashbrown = { version = "0.14.0" }
hashbrown = { version = "0.15.2" }
core2 = { version = "0.4.0", default-features = false }

# Optional as descriptors feature
Expand Down
2 changes: 0 additions & 2 deletions crates/floresta-compact-filters/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ description = """

[dependencies]
bitcoin = "0.32"
floresta-common = { path = "../floresta-common" }
floresta-chain = { path = "../floresta-chain", default-features = false }
kv = "0.24.0"
log = "0.4.20"

6 changes: 1 addition & 5 deletions crates/floresta-electrum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,17 @@ floresta-compact-filters = { path = "../floresta-compact-filters" }
floresta-wire = { path = "../floresta-wire" }

rustreexo = "0.4"
sha2 = "^0.10.6"
tokio = { version = "1.0", features = ["full"] }
tokio-rustls = "0.22"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
kv = "0.24.0"
miniscript = "12"
futures = "0.3.4"
toml = "0.5.10"
bitcoin = { version = "0.32", features = ["serde", "std", "bitcoinconsensus"] }
thiserror = "1.0"
core2 = { version = "0.4.0", default-features = false }

[dev-dependencies]
rand = "0.8.5"
rcgen = "0.13"
zstd = "0.13.2"
zstd = "0.13.3"
1 change: 0 additions & 1 deletion crates/floresta-watch-only/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ serde_json = { version = "1.0.0", features = ["alloc"] }
bitcoin = { version = "0.32", features = ["serde"] }
kv = "0.24.0"
log = "0.4"
thiserror = "1.0"
floresta-common = { path = "../floresta-common", default-features = false, features = ["descriptors-no-std"] }
floresta-chain = { path = "../floresta-chain" }

Expand Down
5 changes: 1 addition & 4 deletions crates/floresta-wire/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ categories = ["cryptography::cryptocurrencies", "network-programming"]

[dependencies]
rustreexo = "0.4"
sha2 = "^0.10.6"
tokio = { version = "1", features = ["full"] }
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
kv = "0.24.0"
futures = "0.3.4"
toml = "0.5.10"
rand = "0.8.5"
bitcoin = { version = "0.32", features = ["serde", "std", "bitcoinconsensus"] }
dns-lookup = "1.0.8"
Expand All @@ -37,7 +34,7 @@ ahash = "0.8.11"
metrics = { path = "../../metrics", optional = true }

[dev-dependencies]
zstd = "0.13.2"
zstd = "0.13.3"
hex = "0.4.3"

[features]
Expand Down
6 changes: 2 additions & 4 deletions florestad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ edition = "2021"
[dependencies]
rustreexo = "0.4"
clap = { version = "4.0.29", features = ["derive"] }
sha2 = "^0.10.6"
tokio = { version = "1", features = ["full"] }
tokio-rustls = "0.22"
log = "0.4"
Expand All @@ -15,9 +14,8 @@ serde_json = "1.0"
kv = "0.24.0"
miniscript = "12"
futures = "0.3.4"
toml = "0.5.10"
toml = "0.8.20"
dirs = "4.0.0"
rand = "0.8.5"
bitcoin = { version = "0.32", features = ["serde", "std", "bitcoinconsensus"] }
ctrlc = "3.2.5"
fern = { version = "0.6", features = ["colored"] }
Expand Down Expand Up @@ -65,4 +63,4 @@ default = ["experimental-p2p", "json-rpc"]
metrics = ["dep:metrics", "floresta-wire/metrics"]

[build-dependencies]
toml = "0.5.10"
toml = "0.8.20"

0 comments on commit 98cc85c

Please sign in to comment.