Skip to content

Commit

Permalink
chore: remove a bunch of unused dependencies (#7155)
Browse files Browse the repository at this point in the history
This disables default features for the `primitives` crate, which
inadvertedly also enabled a bunch of optional deps there.
  • Loading branch information
matklad authored Jul 1, 2022
1 parent 1e65b19 commit ff8e885
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 116 deletions.
114 changes: 3 additions & 111 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 chain/epoch_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ borsh = "0.9"
rand = "0.7"
serde_json = "1"
smart-default = "0.6"
primitive-types = "0.10"
primitive-types = { version = "0.10", default-features = false }
num-rational = "0.3"
chrono = { version = "0.4.4", optional = true}

Expand Down
2 changes: 1 addition & 1 deletion core/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ c2-chacha = "0.3"
curve25519-dalek = "3"
derive_more = "0.99.9"
ed25519-dalek = "1"
primitive-types = "0.10"
primitive-types = { version = "0.10", default-features = false }
once_cell = "1.5.2"
parity-secp256k1 = "0.7"
rand = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion core/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ easy-ext = "0.2"
hex = "0.4"
num-rational = { version = "0.3", features = ["serde"] }
once_cell = "1.5.2"
primitive-types = "0.10"
primitive-types = { version = "0.10", default-features = false }
rand = "0.7"
reed-solomon-erasure = "4"
serde = { version = "1", features = ["derive", "rc"] }
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ futures = "0.3"
hex = "0.4"
once_cell = "1.5"
parking_lot = "0.12.1"
primitive-types = "0.10.1"
primitive-types = { version = "0.10", default-features = false }
rand = "0.7"
smart-default = "0.6"
serde_json = "1"
Expand Down
2 changes: 1 addition & 1 deletion nearcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ near-logger-utils = { path = "../test-utils/logger" }
near-actix-test-utils = { path = "../test-utils/actix-test-utils" }
testlib = { path = "../test-utils/testlib" }
near-jsonrpc-primitives = { path = "../chain/jsonrpc-primitives" }
primitive-types = "0.10"
primitive-types = { version = "0.10", default-features = false }

[[bench]]
name = "store"
Expand Down

0 comments on commit ff8e885

Please sign in to comment.