Skip to content

Commit

Permalink
Remove unused dependecies
Browse files Browse the repository at this point in the history
fmt
  • Loading branch information
AureliaDolo committed Mar 31, 2022
1 parent b15ca57 commit 6e22966
Show file tree
Hide file tree
Showing 46 changed files with 81 additions and 867 deletions.
735 changes: 18 additions & 717 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions massa-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ massa_hash = { path = "../massa-hash" }
massa_models = { path = "../massa-models" }
massa_network_exports = { path = "../massa-network-exports" }
massa_pool = { path = "../massa-pool" }
massa_protocol_exports = { path = "../massa-protocol-exports" }
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }

# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
instrument = ["tokio/tracing", "massa_consensus_exports/instrument", "massa_graph/instrument", "massa_models/instrument", "massa_network_exports/instrument", "massa_pool/instrument", "massa_protocol_exports/instrument", "massa_time/instrument"]
instrument = ["tokio/tracing", "massa_consensus_exports/instrument", "massa_graph/instrument", "massa_models/instrument", "massa_network_exports/instrument", "massa_pool/instrument", "massa_time/instrument"]
1 change: 1 addition & 0 deletions massa-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! Json rpc api for a massa-node
#![feature(async_closure)]
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
use crate::error::ApiError::WrongAPI;
use error::ApiError;
use jsonrpc_core::{BoxFuture, IoHandler, Value};
Expand Down
9 changes: 4 additions & 5 deletions massa-bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
futures = "0.3"
lazy_static = "1.4.0"
num_enum = "0.5"
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
parking_lot = "0.12"
tokio = { version = "1.11", features = ["full"] }
tracing = "0.1"# custom modules
tracing = "0.1"

# custom modules
massa_consensus_exports = { path = "../massa-consensus-exports" }
massa_final_state = { path = "../massa-final-state" }
# custom modules
massa_graph = { path = "../massa-graph" }
massa_hash = { path = "../massa-hash" }
massa_logging = { path = "../massa-logging" }
Expand All @@ -32,11 +32,10 @@ massa_time = { path = "../massa-time" }

[dev-dependencies]
bitvec = { version = "0.22", features = ["serde"] }
pretty_assertions = "1.0"
serial_test = "0.5"
massa_final_state = { path = "../massa-final-state", features=["testing"] }
massa_ledger = { path = "../massa-ledger", features=["testing"] }
massa_async_pool = { path = "../massa-async-pool", features=["testing"] }
lazy_static = "1.4.0"


# for more information on what are the following features used for, see the cargo.toml at workspace level
Expand Down
1 change: 1 addition & 0 deletions massa-bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//!
#![feature(async_closure)]
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
use crate::client_binder::BootstrapClientBinder;
use crate::establisher::types::Duplex;
use crate::server_binder::BootstrapServerBinder;
Expand Down
5 changes: 0 additions & 5 deletions massa-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ build = "../build.rs"
[dependencies]
anyhow = "1.0"
atty = "0.2"
config = "0.11"
console = "0.15"
dialoguer = { version = "0.10", features = ["history", "completion"] }
directories = "4.0"
erased-serde = "0.3"
futures = "0.3"
glob = "0.3.0"
lazy_static = "1.4"
paw = "1.0"
Expand All @@ -36,8 +33,6 @@ massa_wallet = { path = "../massa-wallet" }
tilde-expand = "0.1.1"

[dev-dependencies]
assert_cmd = "2.0"
serial_test = "0.5"
toml_edit = "0.8"

# for more information on what are the following features used for, see the cargo.toml at workspace level
Expand Down
1 change: 1 addition & 0 deletions massa-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! Massa stateless CLI
#![feature(str_split_whitespace_as_str)]
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
use crate::settings::SETTINGS;
use anyhow::Result;
use atty::Stream;
Expand Down
9 changes: 0 additions & 9 deletions massa-consensus-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitvec = { version = "0.22", features = ["serde"] }
displaydoc = "0.2"
futures = "0.3"
lazy_static = "1.4"
num = { version = "0.4", features = ["serde"] }
rand = "0.8"
rand_xoshiro = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sled = "0.34"
thiserror = "1.0"
tokio = { version = "1.15", features = ["full"] }
tracing = "0.1"
tempfile = "3.2"
# custom modules
massa_execution_exports = { path = "../massa-execution-exports" }
massa_graph = { path = "../massa-graph" }
massa_hash = { path = "../massa-hash" }
massa_logging = { path = "../massa-logging" }
massa_models = { path = "../massa-models" }
massa_pool = { path = "../massa-pool" }
Expand All @@ -34,8 +27,6 @@ massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"
massa_models = { path = "../massa-models", features = ["testing"] }

# for more information on what are the following features used for, see the cargo.toml at workspace level
Expand Down
1 change: 1 addition & 0 deletions massa-consensus-exports/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#![feature(map_first_last)]
#![feature(int_roundings)]
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
#[macro_use]
extern crate massa_logging;

Expand Down
24 changes: 7 additions & 17 deletions massa-consensus-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,34 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitvec = { version = "0.22", features = ["serde"] }
displaydoc = "0.2"
futures = "0.3"
lazy_static = "1.4"
num = { version = "0.4", features = ["serde"] }
rand = "0.8"
rand_xoshiro = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sled = "0.34"
thiserror = "1.0"
tokio = { version = "1.15", features = ["full"] }
tracing = "0.1"
# custom modules
massa_execution_exports = { path = "../massa-execution-exports" }
massa_consensus_exports = { path = "../massa-consensus-exports" }
massa_graph = { path = "../massa-graph" }
massa_hash = { path = "../massa-hash" }
massa_logging = { path = "../massa-logging" }
massa_models = { path = "../massa-models" }
massa_storage = { path = "../massa-storage" }
massa_pool = { path = "../massa-pool" }
massa_proof_of_stake_exports = { path = "../massa-proof-of-stake-exports" }
massa_protocol_exports = { path = "../massa-protocol-exports" }
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"
tempfile = "3.2"
massa_models = { path = "../massa-models", features = ["testing"] }
massa_execution_exports = { path = "../massa-execution-exports", features = ["testing"] }
massa_consensus_exports = { path = "../massa-consensus-exports", features = ["testing"] }
test-log = {version = "0.2.8", features = ["trace"]}
console-subscriber = "0.1.1"
massa_pool = { path = "../massa-pool" }
num = { version = "0.4", features = ["serde"] }
rand = "0.8"
futures = "0.3"


# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
instrument = ["tokio/tracing", "massa_consensus_exports/instrument", "massa_graph/instrument", "massa_models/instrument", "massa_pool/instrument", "massa_proof_of_stake_exports/instrument", "massa_protocol_exports/instrument", "massa_time/instrument"]
sandbox = ["massa_consensus_exports/sandbox"]
instrument = ["tokio/tracing", "massa_consensus_exports/instrument", "massa_graph/instrument", "massa_models/instrument", "massa_proof_of_stake_exports/instrument", "massa_protocol_exports/instrument", "massa_time/instrument"]
sandbox = ["massa_consensus_exports/sandbox"]
1 change: 1 addition & 0 deletions massa-consensus-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#![feature(map_first_last)]
#![feature(int_roundings)]
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
#[macro_use]
extern crate massa_logging;

Expand Down
6 changes: 0 additions & 6 deletions massa-execution-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1"
displaydoc = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
tracing = "0.1"
# custom modules
Expand All @@ -20,9 +17,6 @@ massa_time = { path = "../massa-time" }
massa_final_state = { path = "../massa-final-state" }
massa_ledger = { path = "../massa-ledger" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"

# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
Expand Down
1 change: 1 addition & 0 deletions massa-execution-exports/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
//! See test_exports/mod.rs for details.
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
mod controller_traits;
mod error;
mod event_store;
Expand Down
9 changes: 1 addition & 8 deletions massa-execution-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ edition = "2021"

[dependencies]
anyhow = "1.0"
displaydoc = "0.2"
lazy_static = "1.4"
rand = "0.8"
rand_xoshiro = "0.6"
parking_lot = "0.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3.2"
thiserror = "1.0"
tokio = { version = "1.15", features = ["full"] }
tracing = "0.1"
# custom modules
massa_execution_exports = { path = "../massa-execution-exports" }
Expand All @@ -32,8 +25,8 @@ massa_async_pool = { path = "../massa-async-pool" }
massa_ledger = { path = "../massa-ledger" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"
tempfile = "3.2"

# custom modules with testing enabled
massa_execution_exports = { path = "../massa-execution-exports", features = [
Expand Down
1 change: 1 addition & 0 deletions massa-execution-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
//!
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
#![feature(map_first_last)]
#![feature(unzip_option)]

Expand Down
4 changes: 0 additions & 4 deletions massa-final-state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
thiserror = "1.0"
tracing = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# custom modules
massa_ledger = { path = "../massa-ledger" }
massa_models = { path = "../massa-models" }
massa_async_pool = { path = "../massa-async-pool" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.6"
massa_ledger = { path = "../massa-ledger", features=["testing"] }
massa_async_pool = { path = "../massa-async-pool", features=["testing"] }

Expand Down
3 changes: 2 additions & 1 deletion massa-final-state/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
//! It can be modified, combined or applied to the final ledger.
//!
//! ## bootstrap.rs
//! Provides serializable strucutres and tools for bootstrapping the final state.
//! Provides serializable structures and tools for bootstrapping the final state.
//!
//! ## Test exports
//!
//! When the crate feature `testing` is enabled, tooling useful for testing purposes is exported.
//! See test_exports/mod.rs for details.
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
#![feature(map_first_last)]
#![feature(async_closure)]

Expand Down
6 changes: 0 additions & 6 deletions massa-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitvec = { version = "0.22", features = ["serde"] }
displaydoc = "0.2"
lazy_static = "1.4"
num = { version = "0.4", features = ["serde"] }
rand = "0.8"
rand_xoshiro = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sled = "0.34"
Expand All @@ -30,9 +26,7 @@ massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"
tempfile = "3.2"

# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
Expand Down
1 change: 1 addition & 0 deletions massa-graph/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2022 MASSA LABS <[email protected]>
//! graph management
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
#![feature(async_closure)]
#![feature(bool_to_option)]
#![feature(hash_drain_filter)]
Expand Down
2 changes: 0 additions & 2 deletions massa-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ edition = "2021"
bitcoin_hashes = "0.10"
bs58 = { version = "0.4", features = ["check"] }
displaydoc = "0.2"
rand = "0.8"
secp256k1 = { version = "0.20", features = ["rand-std"] }
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"

[dev-dependencies]
pretty_assertions = "1.0"
serde_json = "1.0"
serial_test = "0.5"
1 change: 1 addition & 0 deletions massa-hash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

//! Hash management crate
#![warn(missing_docs)]
#![warn(unused_crate_dependencies)]
pub use error::MassaHashError;
pub use settings::HASH_SIZE_BYTES;

Expand Down
20 changes: 4 additions & 16 deletions massa-ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,18 @@ edition = "2021"

[dependencies]
displaydoc = "0.2"
futures = "0.3"
lazy_static = "1.4.0"
num = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3.2"
tempfile = { version = "3.2", optional = true } # use with testing feature
thiserror = "1.0"
tokio = { version = "1.11", features = ["full"] }
tracing = { version = "0.1", features = [
"max_level_debug",
"release_max_level_debug",
] }
# custom modules
massa_hash = { path = "../massa-hash" }
massa_logging = { path = "../massa-logging" }
massa_models = { path = "../massa-models" }
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }

[dev-dependencies]
pretty_assertions = "1.0"
serial_test = "0.5"
tempfile = "3.2"

# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
instrument = ["tokio/tracing", "massa_models/instrument", "massa_time/instrument"]
testing = []
instrument = [ "massa_models/instrument"]
testing = ["tempfile"]
Loading

0 comments on commit 6e22966

Please sign in to comment.