Skip to content

Commit

Permalink
feat(workspace): Workspace Re-exports (#468)
Browse files Browse the repository at this point in the history
* feat(workspace): re-exports

* run actions
  • Loading branch information
refcell authored Aug 30, 2024
1 parent fb88a7a commit 2206cde
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 23 deletions.
14 changes: 12 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ codegen-units = 1
lto = "fat"

[workspace.dependencies]
# Workspace
kona-client = { path = "bin/client", version = "0.1.0" }
kona-mpt = { path = "crates/mpt", version = "0.0.2" }
kona-common = { path = "crates/common", version = "0.0.2" }
kona-preimage = { path = "crates/preimage", version = "0.0.2" }
kona-executor = { path = "crates/executor", version = "0.0.1" }
kona-common-proc = { path = "crates/common-proc", version = "0.0.2" }
kona-derive = { path = "crates/derive", version = "0.0.2", default-feature = false }
kona-primitives = { path = "crates/primitives", version = "0.0.1", default-feature = false }

# General
anyhow = { version = "1.0.86", default-features = false }
tracing = { version = "0.1.40", default-features = false }
Expand Down Expand Up @@ -84,15 +94,15 @@ superchain = "0.3.1"
superchain-primitives = { version = "0.3.1", default-features = false }

# Alloy
alloy-rlp = { version = "0.3.5", default-features = false }
alloy-trie = { version = "0.4.1", default-features = false }
alloy-provider = { version = "0.2", default-features = false }
alloy-primitives = { version = "0.7.7", default-features = false }
alloy-rlp = { version = "0.3.5", default-features = false }
alloy-rpc-types = { version = "0.2" }
alloy-consensus = { version = "0.2", default-features = false }
alloy-transport = { version = "0.2", default-features = false }
alloy-transport-http = { version = "0.2" }
alloy-eips = { version = "0.2", default-features = false }
alloy-node-bindings = { version = "0.2", default-features = false }
alloy-rpc-client = { version = "0.2", default-features = false }
alloy-consensus = { version = "0.2", default-features = false }
op-alloy-consensus = { version = "0.1.4", default-features = false }
14 changes: 7 additions & 7 deletions bin/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ publish = false

[dependencies]
# Workspace
kona-common = { path = "../../crates/common", version = "0.0.2" }
kona-common-proc = { path = "../../crates/common-proc", version = "0.0.2" }
kona-preimage = { path = "../../crates/preimage", version = "0.0.2" }
kona-mpt = { path = "../../crates/mpt", version = "0.0.2" }
kona-derive = { path = "../../crates/derive", default-features = false, version = "0.0.2" }
kona-executor = { path = "../../crates/executor", version = "0.0.1" }
kona-primitives = { path = "../../crates/primitives", version = "0.0.1", features = ["serde"] }
kona-common.workspace = true
kona-common-proc.workspace = true
kona-preimage.workspace = true
kona-mpt.workspace = true
kona-derive.workspace = true
kona-executor.workspace = true
kona-primitives = { workspace = true, features = ["serde"] }

# Revm + Alloy
revm.workspace = true
Expand Down
14 changes: 7 additions & 7 deletions bin/host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ publish = false

[dependencies]
# Workspace
kona-client = { path = "../client", version = "0.1.0" }
kona-common = { path = "../../crates/common", version = "0.0.2" }
kona-preimage = { path = "../../crates/preimage", version = "0.0.2" }
kona-mpt = { path = "../../crates/mpt", version = "0.0.2" }
kona-primitives = { path = "../../crates/primitives", version = "0.0.1", features = ["online"] }
kona-derive = { path = "../../crates/derive", version = "0.0.2", features = ["online"] }
kona-mpt.workspace = true
kona-client.workspace = true
kona-common.workspace = true
kona-preimage.workspace = true
kona-derive = { workspace = true, features = ["online"] }
kona-primitives = { workspace = true, features = ["online"] }

# Alloy & Revm
alloy-eips.workspace = true
alloy-consensus.workspace = true
alloy-rlp.workspace = true
alloy-primitives = { workspace = true, features = ["serde"] }
alloy-provider.workspace = true
alloy-transport-http.workspace = true
alloy-rpc-client.workspace = true
alloy-rpc-types.workspace = true
alloy-primitives = { workspace = true, features = ["serde"] }
revm = { workspace = true, features = ["std", "c-kzg", "secp256k1", "portable", "blst"] }

# General
Expand Down
2 changes: 1 addition & 1 deletion crates/common-proc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ anyhow.workspace = true
cfg-if.workspace = true

# Workspace
kona-common = { path = "../common", version = "0.0.2" }
kona-common.workspace = true

# Proc Macros
syn = { version = "2.0", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tracing.workspace = true
async-trait.workspace = true

# Workspace
kona-primitives = { path = "../primitives", version = "0.0.1", default-features = false }
kona-primitives.workspace = true

# `serde` feature dependencies
serde = { workspace = true, optional = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ op-alloy-consensus.workspace = true
revm = { workspace = true, features = ["optimism"] }

# Workspace
kona-mpt = { path = "../mpt", version = "0.0.2" }
kona-primitives = { path = "../primitives", version = "0.0.1", default-features = false }
kona-mpt.workspace = true
kona-primitives.workspace = true

[dev-dependencies]
alloy-rlp.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/preimage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ alloy-primitives.workspace = true
async-trait.workspace = true

# Workspace
kona-common = { path = "../common", version = "0.0.2" }
kona-common.workspace = true

# `rkyv` feature dependencies
rkyv = { workspace = true, optional = true }
Expand Down
4 changes: 2 additions & 2 deletions examples/trusted-sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ homepage.workspace = true

[dependencies]
# Workspace
kona-primitives = { path = "../../crates/primitives", version = "0.0.1", features = ["serde"] }
kona-derive = { path = "../../crates/derive", version = "0.0.2", features = ["serde", "online", "metrics"] }
kona-primitives = { workspace = true, features = ["serde"] }
kona-derive = { workspace = true, features = ["serde", "online", "metrics"] }

# General
anyhow.workspace = true
Expand Down

0 comments on commit 2206cde

Please sign in to comment.