Skip to content

Commit

Permalink
Bom workspace (massalabs#4200)
Browse files Browse the repository at this point in the history
* Add script

Signed-off-by: Litchi Pi <[email protected]>

* update script

Signed-off-by: Litchi Pi <[email protected]>

* Update Cargo.toml

Signed-off-by: Litchi Pi <[email protected]>

* Remove script

Signed-off-by: Litchi Pi <[email protected]>

---------

Signed-off-by: Litchi Pi <[email protected]>
  • Loading branch information
litchipi authored Jul 17, 2023
1 parent c1930f2 commit aa4d3d0
Show file tree
Hide file tree
Showing 42 changed files with 855 additions and 936 deletions.
47 changes: 11 additions & 36 deletions Cargo.lock

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

130 changes: 130 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,133 @@ opt-level = 3 # Speed-up the CI
#
# * sandbox: for testing purpose, genesis timestamps is set as now + 9 seconds.
# The saved snapshot can then be used to restart the network from the snapshot.
[workspace.dependencies]

# Internal packages
massa_api = {path = "./massa-api"}
massa_api_exports = {path = "./massa-api-exports"}
massa_async_pool = {path = "./massa-async-pool"}
massa_bootstrap = {path = "./massa-bootstrap"}
massa_channel = {path = "./massa-channel"}
massa_cipher = {path = "./massa-cipher"}
massa_consensus_exports = {path = "./massa-consensus-exports"}
massa_consensus_worker = {path = "./massa-consensus-worker"}
massa_db_exports = {path = "./massa-db-exports"}
massa_db_worker = {path = "./massa-db-worker"}
massa_executed_ops = {path = "./massa-executed-ops"}
massa_execution_exports = {path = "./massa-execution-exports"}
massa_execution_worker = {path = "./massa-execution-worker"}
massa_factory_exports = {path = "./massa-factory-exports"}
massa_factory_worker = {path = "./massa-factory-worker"}
massa_final_state = {path = "./massa-final-state"}
massa_grpc = {path = "./massa-grpc"}
massa_hash = {path = "./massa-hash"}
massa_ledger_exports = {path = "./massa-ledger-exports"}
massa_ledger_worker = {path = "./massa-ledger-worker"}
massa_logging = {path = "./massa-logging"}
massa_metrics = {path = "./massa-metrics"}
massa_models = {path = "./massa-models"}
massa_module_cache = {path = "./massa-module-cache"}
massa_pool_exports = {path = "./massa-pool-exports"}
massa_pool_worker = {path = "./massa-pool-worker"}
massa_pos_exports = {path = "./massa-pos-exports"}
massa_pos_worker = {path = "./massa-pos-worker"}
massa_protocol_exports = {path = "./massa-protocol-exports"}
massa_protocol_worker = {path = "./massa-protocol-worker"}
massa_sdk = {path = "./massa-sdk"}
massa_serialization = {path = "./massa-serialization"}
massa_signature = {path = "./massa-signature"}
massa_storage = {path = "./massa-storage"}
massa_time = {path = "./massa-time"}
massa_versioning = {path = "./massa-versioning"}
massa_wallet = {path = "./massa-wallet"}

# Massa projects dependencies
massa-proto-rs = {git = "https://github.com/massalabs/massa-proto-rs", "rev" = "18ec02f"}
massa-sc-runtime = {git = "https://github.com/massalabs/massa-sc-runtime", "branch" = "main"}
peernet = {git = "https://github.com/massalabs/PeerNet", "branch" = "deactivate_stream_limiter"}

# Common dependencies
transition = {git = "https://github.com/massalabs/transition.git", "rev" = "93fa3bf82f9f5ff421c78536879b7fd1b948ca75"}
unsigned-varint = {version = "0.7.1", "git" = "https://github.com/cyphar/unsigned-varint.git", "branch" = "nom6-errors"}
substruct = {git = "https://github.com/sydhds/substruct", branch = "main"}
machine = {git = "https://github.com/antifuchs/machine", "branch" = "fix-workspace-build"}
aes-gcm = "0.10"
anyhow = "1.0"
async-trait = "0.1.58"
atty = "0.2"
bitvec = "1.0"
blake3 = "=1.3"
bs58 = "=0.4"
config = "0.13"
console = "0.15"
criterion = "0.4"
crossbeam = "0.8"
crossbeam-channel = "0.5"
ctrlc = "3.2.5"
dialoguer = "0.10"
directories = "4.0"
displaydoc = "0.2"
ed25519-dalek = "=1.0"
erased-serde = "0.3"
futures = "0.3.18"
futures-util = "0.3.25"
generic-array = "0.14.7"
h2 = "0.3.17"
hex-literal = "0.3.4"
http = "0.2.8"
humantime = "2.1.0"
hyper = "0.14.25"
itertools = "0.10"
jsonrpsee = "0.18.2"
jsonrpsee-http-client = "0.18.2"
jsonrpsee-ws-client = "0.18.2"
lazy_static = "1.4.0"
libsecp256k1 = "0.7.1"
lsmtree = "=0.1.1"
mio = "0.8"
mockall = "0.11.4"
more-asserts = "0.3"
nom = "=7.1"
num = "0.4"
num_enum = "0.5"
paginate = "1.1.11"
parking_lot = "0.12"
paw = "1.0"
pbkdf2 = "0.11"
prometheus = "0.13.3"
rand = "0.8"
rand_distr = "=0.4.3"
rand_xoshiro = "0.6"
rayon = "1.7.0"
rocksdb = "0.20"
rust_decimal = "1.26"
rustyline = "10.0.0"
rustyline-derive = "0.7.0"
schnellru = "0.2.0"
serde = "1.0"
serde_json = "1.0.87"
serde_qs = "0.11"
serde_with = "2.1.0"
serial_test = "1.0.0"
sha2 = "0.10.6"
sha3 = "0.10.8"
socket2 = "0.4.7"
structopt = "0.3"
strum = "0.24"
strum_macros = "0.24"
tempfile = "3.5"
thiserror = "1.0"
time = "0.3"
tokio = "1.23"
tokio-stream = "0.1"
toml_edit = "0.19"
tonic = "0.9.2"
tonic-health = "0.9.2"
tonic-reflection = "0.9.2"
tonic-web = "0.9.2"
tower = "0.4.13"
tower-http = "0.4.0"
tracing = "0.1"
tracing-subscriber = "0.3"
walkdir = "2.3.3"
45 changes: 21 additions & 24 deletions massa-api-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,27 @@ version = "0.24.0"
authors = ["Massa Labs <[email protected]>"]
edition = "2021"

[dependencies]
paginate = "1.1.11"
displaydoc = "0.2"
thiserror = "1.0"
jsonrpsee = { version = "0.18.2", features = ["jsonrpsee-core", "jsonrpsee-types"] }
serde = { version = "1.0", features = ["derive"] }
strum = { version = "0.24", features = ["derive"] }

# custom modules
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }
massa_models = { path = "../massa-models" }
massa_final_state = { path = "../massa-final-state" }
massa_consensus_exports = { path = "../massa-consensus-exports" }
massa_hash = { path = "../massa-hash" }
massa_protocol_exports = { path = "../massa-protocol-exports" }
massa_execution_exports = { path = "../massa-execution-exports" }
massa_wallet = { path = "../massa-wallet" }
massa_versioning = { path = "../massa-versioning" }

[dev-dependencies]
serial_test = "1.0.0"

# for more information on what are the following features used for, see the cargo.toml at workspace level
[features]
sandbox = []
testing = []

[dependencies]
paginate = {workspace = true}
displaydoc = {workspace = true}
thiserror = {workspace = true}
jsonrpsee = {workspace = true, "features" = ["jsonrpsee-core", "jsonrpsee-types"]}
serde = {workspace = true, "features" = ["derive"]}
strum = {workspace = true, "features" = ["derive"]} # BOM UPGRADE Revert to {"version": "0.24", "features": ["derive"]} if problem
massa_signature = {workspace = true}
massa_time = {workspace = true}
massa_models = {workspace = true}
massa_final_state = {workspace = true}
massa_consensus_exports = {workspace = true}
massa_hash = {workspace = true}
massa_protocol_exports = {workspace = true}
massa_execution_exports = {workspace = true}
massa_wallet = {workspace = true}
massa_versioning = {workspace = true}

[dev-dependencies]
serial_test = {workspace = true}
57 changes: 27 additions & 30 deletions massa-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,31 @@ name = "massa_api"
version = "0.24.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
jsonrpsee = { version = "0.18.2", features = ["server", "macros"] }
futures = "0.3.18"
async-trait = "0.1.58"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.87"
tower-http = { version = "0.4.0", features = ["cors"] }
tower = { version = "0.4.13", features = ["full"] }
hyper = "0.14.25"
tokio = { version = "1.23", features = ["full"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tracing = "0.1"
itertools = "0.10"
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
# custom modules
massa_consensus_exports = { path = "../massa-consensus-exports" }
massa_api_exports = { path = "../massa-api-exports" }
massa_models = { path = "../massa-models" }
massa_pool_exports = { path = "../massa-pool-exports" }
massa_protocol_exports = { path = "../massa-protocol-exports" }
massa_execution_exports = { path = "../massa-execution-exports" }
massa_pos_exports = { path = "../massa-pos-exports" }
massa_storage = { path = "../massa-storage" }
massa_serialization = { path = "../massa-serialization" }
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }
massa_versioning = { path = "../massa-versioning" }
massa_hash = { path = "../massa-hash" }
massa_wallet = { path = "../massa-wallet" }
jsonrpsee = {workspace = true, "features" = ["server", "macros"]}
futures = {workspace = true}
async-trait = {workspace = true}
serde = {workspace = true, "features" = ["derive"]}
serde_json = {workspace = true}
tower-http = {workspace = true, "features" = ["cors"]}
tower = {workspace = true, "features" = ["full"]}
hyper = {workspace = true}
tokio = {workspace = true, "features" = ["full"]}
tokio-stream = {workspace = true, "features" = ["sync"]}
tracing = {workspace = true}
itertools = {workspace = true}
parking_lot = {workspace = true, "features" = ["deadlock_detection"]}
massa_consensus_exports = {workspace = true}
massa_api_exports = {workspace = true}
massa_models = {workspace = true}
massa_pool_exports = {workspace = true}
massa_protocol_exports = {workspace = true}
massa_execution_exports = {workspace = true}
massa_pos_exports = {workspace = true}
massa_storage = {workspace = true}
massa_serialization = {workspace = true}
massa_signature = {workspace = true}
massa_time = {workspace = true}
massa_versioning = {workspace = true}
massa_hash = {workspace = true}
massa_wallet = {workspace = true}
Loading

0 comments on commit aa4d3d0

Please sign in to comment.