Skip to content

Commit

Permalink
Remove some unused deps (#1929)
Browse files Browse the repository at this point in the history
* move deps to dev-dependencies where possible

* remove unused deps

* put solana-program behind target.'cfg(target_os = "solana")' in curve25519

* update lock files
  • Loading branch information
kevinheavey authored Jul 11, 2024
1 parent b24f492 commit 0fa8da4
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 18 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion accounts-cluster-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ solana-account-decoder = { workspace = true }
solana-clap-utils = { workspace = true }
solana-cli-config = { workspace = true }
solana-client = { workspace = true }
solana-faucet = { workspace = true }
solana-gossip = { workspace = true }
solana-inline-spl = { workspace = true }
solana-logger = { workspace = true }
Expand All @@ -34,6 +33,7 @@ spl-token = { workspace = true, features = ["no-entrypoint"] }
[dev-dependencies]
solana-accounts-db = { workspace = true }
solana-core = { workspace = true, features = ["dev-context-only-utils"] }
solana-faucet = { workspace = true }
solana-local-cluster = { workspace = true }
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] }
solana-test-validator = { workspace = true }
Expand Down
4 changes: 3 additions & 1 deletion bloom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ bv = { workspace = true, features = ["serde"] }
fnv = { workspace = true }
log = { workspace = true }
rand = { workspace = true }
rayon = { workspace = true }
serde = { workspace = true, features = ["rc"] }
serde_derive = { workspace = true }
solana-frozen-abi = { workspace = true, optional = true }
solana-frozen-abi-macro = { workspace = true, optional = true }
solana-sanitize = { workspace = true }
solana-sdk = { workspace = true }

[dev-dependencies]
rayon = { workspace = true }

[lib]
crate-type = ["lib"]
name = "solana_bloom"
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ solana-cli-output = { workspace = true }
solana-client = { workspace = true }
solana-compute-budget = { workspace = true }
solana-config-program = { workspace = true }
solana-faucet = { workspace = true }
solana-loader-v4-program = { workspace = true }
solana-logger = { workspace = true }
solana-program-runtime = { workspace = true }
Expand All @@ -61,6 +60,7 @@ tiny-bip39 = { workspace = true }

[dev-dependencies]
assert_matches = { workspace = true }
solana-faucet = { workspace = true }
solana-rpc = { workspace = true }
solana-streamer = { workspace = true }
solana-test-validator = { workspace = true }
Expand Down
4 changes: 3 additions & 1 deletion curves/curve25519/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ edition = { workspace = true }
[dependencies]
bytemuck = { workspace = true }
bytemuck_derive = { workspace = true }
solana-program = { workspace = true }
thiserror = { workspace = true }

[target.'cfg(target_os = "solana")'.dependencies]
solana-program = { workspace = true }

[target.'cfg(not(target_os = "solana"))'.dependencies]
curve25519-dalek = { workspace = true, features = ["serde"] }
1 change: 0 additions & 1 deletion net-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ socket2 = { workspace = true }
solana-logger = { workspace = true }
solana-sdk = { workspace = true }
solana-version = { workspace = true }
static_assertions = { workspace = true }
tokio = { workspace = true, features = ["full"] }
url = { workspace = true }

Expand Down
4 changes: 0 additions & 4 deletions programs/sbf/Cargo.lock

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

1 change: 0 additions & 1 deletion transaction-dos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ rayon = { workspace = true }
solana-clap-utils = { workspace = true }
solana-cli = { workspace = true }
solana-client = { workspace = true }
solana-core = { workspace = true }
solana-faucet = { workspace = true }
solana-gossip = { workspace = true }
solana-logger = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion transaction-metrics-tracker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license = { workspace = true }
edition = { workspace = true }

[dependencies]
Inflector = { workspace = true }
base64 = { workspace = true }
bincode = { workspace = true }
# Update this borsh dependency to the workspace version once
Expand Down
2 changes: 1 addition & 1 deletion wen-restart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ rayon = { workspace = true }
solana-entry = { workspace = true }
solana-gossip = { workspace = true }
solana-ledger = { workspace = true }
solana-logger = { workspace = true }
solana-program = { workspace = true }
solana-program-runtime = { workspace = true }
solana-runtime = { workspace = true }
Expand All @@ -32,6 +31,7 @@ rand = { workspace = true }
serial_test = { workspace = true }
solana-accounts-db = { workspace = true }
solana-entry = { workspace = true }
solana-logger = { workspace = true }
solana-runtime = { workspace = true, features = ["dev-context-only-utils"] }
solana-streamer = { workspace = true }
tempfile = { workspace = true }
Expand Down
2 changes: 0 additions & 2 deletions zk-keygen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ edition = { workspace = true }
bs58 = { workspace = true }
clap = { version = "3.1.5", features = ["cargo", "derive"] }
dirs-next = { workspace = true }
num_cpus = { workspace = true }
solana-clap-v3-utils = { workspace = true }
solana-cli-config = { workspace = true }
solana-remote-wallet = { workspace = true, features = ["default"] }
solana-sdk = { workspace = true }
solana-version = { workspace = true }
Expand Down

0 comments on commit 0fa8da4

Please sign in to comment.