Skip to content

Commit

Permalink
chore: workspace dependencies (#47)
Browse files Browse the repository at this point in the history
* chore: workspace dependencies

* Update Cargo.toml

* Extend workspace dependencies

---------

Co-authored-by: Evgeny Ukhanov <[email protected]>
  • Loading branch information
aleksuss and mrLSD authored Jun 21, 2024
1 parent 91ea85d commit 000196f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 18 deletions.
21 changes: 15 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,32 @@ repository.workspace = true
keywords.workspace = true
edition.workspace = true

[dependencies]
[workspace.dependencies]
evm = { version = "0.43", path = "." }
evm-core = { version = "0.43", path = "core", default-features = false }
evm-gasometer = { version = "0.43", path = "gasometer", default-features = false }
evm-runtime = { version = "0.43", path = "runtime", default-features = false }
primitive-types = { version = "0.12", default-features = false }
auto_impl = "1.0"
sha3 = { version = "0.10", default-features = false }

[dependencies]
ethereum = { version = "0.15", default-features = false }
log = { version = "0.4", default-features = false }
primitive-types = { version = "0.12", default-features = false, features = ["rlp"] }
primitive-types = { workspace = true, features = ["rlp"] }
rlp = { version = "0.5", default-features = false }
sha3 = { version = "0.10", default-features = false }

# Optional dependencies
environmental = { version = "1.1.2", default-features = false, optional = true }
scale-codec = { package = "parity-scale-codec", version = "3.2", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "2.11", default-features = false, features = ["derive"], optional = true }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }

evm-core = { version = "0.43", path = "core", default-features = false }
evm-runtime = { version = "0.43", path = "runtime", default-features = false }
evm-gasometer = { version = "0.43", path = "gasometer", default-features = false }
auto_impl.workspace = true
sha3.workspace = true
evm-core.workspace = true
evm-gasometer.workspace = true
evm-runtime.workspace = true

[dev-dependencies]
criterion = "0.5"
Expand Down
4 changes: 3 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ description.workspace = true
repository.workspace = true

[dependencies]
primitive-types.workspace = true

# Optional
log = { version = "0.4", optional = true }
primitive-types = { version = "0.12", default-features = false }
scale-codec = { package = "parity-scale-codec", version = "3.2", default-features = false, features = ["derive", "full"], optional = true }
scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion evm-tests/jsontests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords.workspace = true
edition.workspace = true

[dependencies]
evm = { path = "../..", version = "0.43" }
evm.workspace = true
ethereum = "0.15.0"
primitive-types = "0.12"
serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"
[dependencies]
honggfuzz = "0.5"

evm-core = { version = "0.43", path = "../core" }
evm-core.workspace = true

[[bin]]
name = "evm_fuzz"
Expand Down
9 changes: 5 additions & 4 deletions gasometer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ description.workspace = true
repository.workspace = true

[dependencies]
primitive-types.workspace = true
evm-core.workspace = true
evm-runtime.workspace = true

# Optional
environmental = { version = "1.1.2", default-features = false, optional = true }
log = { version = "0.4", optional = true }
primitive-types = { version = "0.12", default-features = false }

evm-core = { version = "0.43", path = "../core", default-features = false }
evm-runtime = { version = "0.43", path = "../runtime", default-features = false }

[features]
default = ["std"]
Expand Down
11 changes: 6 additions & 5 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ description.workspace = true
repository.workspace = true

[dependencies]
auto_impl = "1.0"
environmental = { version = "1.1", default-features = false, optional = true }
primitive-types = { version = "0.12", default-features = false }
sha3 = { version = "0.10", default-features = false }
auto_impl.workspace = true
primitive-types.workspace = true
sha3.workspace = true
evm-core.workspace = true

evm-core = { version = "0.43", path = "../core", default-features = false }
# Optional
environmental = { version = "1.1", default-features = false, optional = true }

[features]
default = ["std"]
Expand Down

0 comments on commit 000196f

Please sign in to comment.