-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from flashbots/organize-workspace
idiomatic workspace structure
- Loading branch information
Showing
35 changed files
with
237 additions
and
99 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,49 @@ | ||
[package] | ||
name = "contender" | ||
[workspace] | ||
members = [ | ||
"crates/cli/", | ||
"crates/core/", | ||
"crates/sqlite_db/", | ||
"crates/testfile/" | ||
] | ||
|
||
resolver = "2" | ||
|
||
[workspace.package] | ||
# name = "contender" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Brock Smedley"] | ||
rust-version = "1.80" | ||
authors = ["Flashbots"] | ||
license = "MIT OR Apache-2.0" | ||
homepage = "https://github.com/flashbots/contender" | ||
repository = "https://github.com/flashbots/contender" | ||
|
||
[workspace.dependencies] | ||
contender_core = { path = "crates/core/" } | ||
contender_sqlite = { path = "crates/sqlite_db/" } | ||
contender_testfile = { path = "crates/testfile/" } | ||
|
||
eyre = "0.6.12" | ||
tokio = { version = "1.40.0" } | ||
alloy = { version = "0.3.6" } | ||
serde = "1.0.209" | ||
|
||
[lib] | ||
name = "contender_core" | ||
path = "src/lib.rs" | ||
## cli | ||
clap = { version = "4.5.16" } | ||
csv = "1.3.0" | ||
|
||
[dependencies] | ||
alloy = { workspace = true, features = ["full", "node-bindings", "rpc-types-mev"] } | ||
eyre = { workspace = true } | ||
## core | ||
rand = "0.8.5" | ||
serde = { workspace = true, features = ["derive"] } | ||
futures = "0.3.30" | ||
async-trait = "0.1.82" | ||
tokio = { workspace = true } | ||
jsonrpsee = { version = "0.24", features = ["http-client", "client-core"] } | ||
jsonrpsee = { version = "0.24" } | ||
alloy-serde = "0.5.4" | ||
serde_json = "1.0.132" | ||
|
||
[workspace] | ||
members = ["cli", "sqlite_db", "testfile"] | ||
## sqlite | ||
r2d2_sqlite = "0.25.0" | ||
rusqlite = "0.32.1" | ||
r2d2 = "0.8.10" | ||
|
||
[workspace.dependencies] | ||
eyre = "0.6.12" | ||
tokio = { version = "1.40.0" } | ||
alloy = { version = "0.3.6" } | ||
serde = "1.0.209" | ||
## testfile | ||
toml = "0.8.19" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "contender_cli" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "contender" | ||
path = "src/main.rs" | ||
|
||
[dependencies] | ||
tokio = { workspace = true, features = ["rt-multi-thread"] } | ||
serde = { workspace = true } | ||
contender_core = { workspace = true } | ||
contender_sqlite = { workspace = true } | ||
contender_testfile = { workspace = true } | ||
|
||
clap = { workspace = true, features = ["derive"] } | ||
alloy = { workspace = true, features = ["full", "node-bindings"] } | ||
csv = { workspace = true } |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "contender_core" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Brock Smedley"] | ||
|
||
[lib] | ||
name = "contender_core" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
alloy = { workspace = true, features = ["full", "node-bindings", "rpc-types-mev"] } | ||
eyre = { workspace = true } | ||
rand = { workspace = true } | ||
serde = { workspace = true, features = ["derive"] } | ||
futures = { workspace = true } | ||
async-trait = { workspace = true } | ||
tokio = { workspace = true } | ||
jsonrpsee = { workspace = true, features = ["http-client", "client-core"] } | ||
alloy-serde = { workspace = true } | ||
serde_json = { workspace = true } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.