Skip to content

Commit

Permalink
chore: remove unused dependencies (#1513)
Browse files Browse the repository at this point in the history
* chore: remove unused dependencies

* refactor: organise cargo.toml
  • Loading branch information
hugocaillard authored Jul 19, 2024
1 parent cd00c89 commit eb93002
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 76 deletions.
42 changes: 4 additions & 38 deletions Cargo.lock

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

28 changes: 1 addition & 27 deletions components/clarinet-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,17 @@ toml = { version = "0.5.6", features = ["preserve_order"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde_derive = "1"
log = { version = "=0.4.17", features = ["serde"] }
signal-hook-registry = "1.4.0"
secure_tempfile = { version = "3.8.0", package = "tempfile" }
libsecp256k1 = "0.7.0"
hmac = "0.12.0"
pbkdf2 = { version = "0.12.2", features = ["simple"], default-features = false }
futures = "0.3.12"
tokio = { version = "1.35.1", features = ["full"] }
tokio-util = { version = "0.7.10", features = ["io"], optional = true }
lazy_static = { workspace = true }
atty = "0.2.14"
termcolor = "1.1.2"
regex = "1.7"
dirs = { version = "4.0.0" }
libc = "0.2.86"
encoding_rs = "0.8.31"
percent-encoding = "2.1.0"
pin-project = "1.0.5"
reqwest = { workspace = true, features = ["blocking"]}
crossterm = "0.27.0"
ratatui = { version = "0.27.0", default-features = false, features = ["crossterm"] }
base58 = "0.2.0"
ctrlc = "3.1.9"
strum = { version = "0.23.0", features = ["derive"] }
bitcoin = "0.29.2"
tiny-hderive = "0.3.0"
segment = { version = "0.2.4", optional = true }
mac_address = { version = "1.1.2", optional = true }
tower-lsp = { version = "0.19.0", optional = true }
hex = "0.4.3"
num_cpus = "1.13.1"
mio = "0.8"
similar = "2.1.0"
crossbeam-channel = "0.5.6"
chrono = "0.4.31"
sha2 = "0.10.0"

clarity_repl = { package = "clarity-repl", path = "../clarity-repl", features = [
"cli",
Expand All @@ -67,7 +42,6 @@ clarinet-files = { path = "../clarinet-files", features = ["cli"] }
clarity-lsp = { path = "../clarity-lsp", features = ["cli"] }
clarinet-deployments = { path = "../clarinet-deployments", features = ["cli"] }
hiro-system-kit = { path = "../hiro-system-kit" }
clarinet-utils = { path = "../clarinet-utils" }
stacks-network = { path = "../stacks-network" }

[target.'cfg(unix)'.dependencies]
Expand Down Expand Up @@ -107,5 +81,5 @@ path = "src/bin.rs"

[features]
default = ["cli", "telemetry"]
cli = ["tokio-util", "clap", "clap_complete", "tower-lsp"]
cli = ["clap", "clap_complete", "tower-lsp"]
telemetry = ["segment", "mac_address"]
6 changes: 3 additions & 3 deletions components/clarinet-deployments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ serde_yaml = "0.8.23"
clarity-repl = { path = "../clarity-repl", default-features = false, optional = true }
clarinet-files = { path = "../clarinet-files", default-features = false }
stacks-rpc-client = { path = "../stacks-rpc-client", optional = true }
clarinet-utils = { path = "../clarinet-utils", optional = true }
stacks-codec = { path = "../stacks-codec", optional = true }

# CLI
reqwest = { workspace = true }
Expand All @@ -23,8 +25,6 @@ base58 = { version = "0.2.0", optional = true }
base64 = "0.21.3"
tiny-hderive = { version = "0.3.0", optional = true }
libsecp256k1 = { version = "0.7.0", optional = true }
clarinet_utils = { package = "clarinet-utils", path = "../clarinet-utils", optional = true }
stacks-codec = { path = "../stacks-codec", optional = true }

clarity = { workspace = true }

Expand All @@ -40,7 +40,7 @@ onchain = [
"base58",
"tiny-hderive",
"libsecp256k1",
"clarinet_utils",
"clarinet-utils",
]

[lib]
Expand Down
3 changes: 1 addition & 2 deletions components/clarity-events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ edition = "2021"
clarinet-files = { path = "../clarinet-files", default-features = false, optional = true }
clarity-repl = { path = "../clarity-repl", default-features = false }
clap = { version = "4.4.8", features = ["derive"], optional = true }
toml = { version = "0.5.6", features = ["preserve_order"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde_derive = "1"

[features]
default = ["cli"]
cli = ["clarity-repl/cli", "clarinet-files/cli", "clap", "toml"]
cli = ["clarity-repl/cli", "clarinet-files/cli", "clap"]
lib = ["clarity-repl/cli"]

[lib]
Expand Down
1 change: 0 additions & 1 deletion components/clarity-repl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ serde = { version = "1", features = ["derive"] }
serde_json = { version = "1.0.47", features = ["unbounded_depth"] }
sha2 = "0.10"
serde_derive = "1.0"
integer-sqrt = "0.1.3"
getrandom = { version = "0.2.3", features = ["js"] }
atty = "0.2.14"
clarity = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion components/hiro-system-kit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ edition = "2021"
tokio = { version = "1.35.1", optional = true }
ansi_term = "0.12.1"
atty = "0.2.14"
lazy_static = { workspace = true }
slog = { version = "2.7.0", optional = true }
slog-json = { version = "2.6.1", optional = true }
slog-scope = { version = "4.4.0", optional = true }
Expand Down
2 changes: 0 additions & 2 deletions components/stacks-devnet-js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ crate-type = ["cdylib"]
serde = "1"
error-chain = "0.12"
clarinet-files = { path = "../clarinet-files" }
clarinet-utils = { path = "../clarinet-utils" }
clarinet-deployments = { path = "../clarinet-deployments" }
stacks-network = { path = "../stacks-network" }
hiro-system-kit = { path = "../hiro-system-kit" }
crossbeam-channel = "0.5.6"

[dependencies.neon]
version = "0.9.1"
Expand Down
2 changes: 0 additions & 2 deletions components/stacks-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ edition = "2021"
atty = "0.2.14"
ansi_term = "0.12.1"
bollard = "0.16.0"
bytes = "1.4.0"
bitcoin = "0.29.2"
bitcoincore-rpc = "0.16.0"
serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -38,7 +37,6 @@ chainhook-sdk = { version = "0.12" }
stacks-rpc-client = { path = "../stacks-rpc-client" }
clarinet-files = { path = "../clarinet-files", features = ["cli"] }
clarinet-deployments = { path = "../clarinet-deployments", features = ["cli"] }
clarinet-utils = { path = "../clarinet-utils" }
hiro-system-kit = { path = "../hiro-system-kit", features = ["log"] }
stacks-codec = { path = "../stacks-codec" }

Expand Down

0 comments on commit eb93002

Please sign in to comment.