Skip to content

Commit 31fef82

Browse files
committed
cargo workspace refactor
1 parent 2271a4d commit 31fef82

File tree

24 files changed

+260
-921
lines changed

24 files changed

+260
-921
lines changed

Cargo.lock

Lines changed: 131 additions & 828 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,79 @@ members = [
1414
"quoter-grpc-server",
1515
"exchange",
1616
"depth-driver",
17+
"orderbook",
18+
"ring-buffer",
1719
"testing/depth-generator",
1820
"testing/exchange-stubs",
19-
"internal-objects",
20-
"market-objects",
21-
"orderbook",
22-
"config", "multi-core-book-feed",
21+
"objs/internal-objects",
22+
"objs/market-objects",
23+
"objs/errors",
24+
"objs/config",
2325
]
2426
exclude = [
2527
"market-maker",
2628
"exchange-server"
2729
]
2830

31+
[workspace.dependencies]
32+
crossbeam-channel = "0.5.8"
33+
tracing = "0.1.37"
34+
rustc-hash = "1.1.0"
35+
async-trait = "0.1.68"
36+
futures = "0.3.28"
37+
ordered-float = "3.7.0"
38+
bounded-vec-deque = "0.1.1"
39+
thin-vec = "0.2.12"
40+
tokio = { version = "1.28.1", features = ["full"] }
41+
fixed-vec-deque = "0.1.11"
42+
test-log = "0.2.11"
43+
env_logger = "*"
44+
tracing-test = "0.2.4"
45+
tracing-subscriber = "0.3.17"
46+
libmath = "0.2.1"
47+
static_assertions = "1.1.0"
48+
itertools = "0.10.5"
49+
rand = "0.8.5"
50+
io-context = "0.2.0"
51+
envtime = "0.0.4"
52+
const_env = "0.1.2"
53+
lazy_static = "1.4.0"
54+
dhat = "0.3.2"
55+
tonic = "0.9.2"
56+
prost = "0.11.9"
57+
futures-util = "0.3.28"
58+
serde_json = "1.0.97"
59+
tokio-context = "0.1.3"
60+
tungstenite = "0.19.0"
61+
pin-project-lite = "0.2.16"
62+
reqwest = { version = "0.11", features = ["json"] }
63+
tokio-tungstenite = "0.19.0"
64+
65+
exchange = { path = "exchange" }
66+
quoter-grpc-server = { path = "quoter-grpc-server" }
67+
market-objects = { path = "objs/market-objects"}
68+
internal-objects = { path = "objs/internal-objects"}
69+
quoter-errors = { path = "objs/errors"}
70+
config = { path = "objs/config"}
71+
72+
ring-buffer = { path = "ring-buffer"}
73+
testing-traits= { path = "testing/testing-traits" }
74+
depth-generator = { path = "testing/depth-generator"}
75+
exchange-stubs = { path = "testing/exchange-stubs" }
76+
2977
[dependencies]
3078
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"] }
3179
prost = "0.11"
3280
fixed = "1.29.0"
3381
bitflags = "2.9.1"
82+
clippy = "0.0.302"
3483

3584
[build-dependencies]
3685
prost = "0.11"
3786
tonic-build = { version = "0.9.2", features = ["prost"] }
3887
serde = "1.0.166"
3988
serde_yaml = "0.9.22"
40-
config = { path = "config"}
89+
config = { path = "objs/config"}
4190

4291
[[bin]]
4392
name = "orderbook-quoter-server"

depth-driver/Cargo.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
crossbeam-channel = "0.5.8"
8-
futures = "0.3.28"
9-
tungstenite = "0.19.0"
10-
cross = "0.2.5"
11-
tracing = "0.1.37"
12-
futures-util = "0.3.28"
13-
tokio-tungstenite = "0.19.0"
14-
tokio = "1.28.2"
15-
serde_json = "1.0.97"
16-
seq-macro = "0.3.4"
17-
tokio-context = "0.1.3"
18-
exchange = { path = "../exchange"}
19-
market-objects = { path = "../market-objects"}
20-
quoter-errors = { path = "../quoter-errors"}
21-
config = { path = "../config"}
7+
crossbeam-channel.workspace = true
8+
futures.workspace = true
9+
tungstenite.workspace = true
10+
tracing.workspace = true
11+
futures-util.workspace = true
12+
tokio.workspace = true
13+
serde_json.workspace = true
14+
tokio-context.workspace = true
15+
config.workspace = true
16+
exchange.workspace = true
17+
market-objects.workspace = true
18+
quoter-errors.workspace = true

depth-driver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use futures::stream::FuturesOrdered;
1414
use futures::StreamExt;
1515

1616
use config::ExchangeConfig;
17-
use exchange::Exchange;
17+
use exchange::exchange::Exchange;
1818
use market_objects::DepthUpdate;
1919
use quoter_errors::{ErrorHotPath, ErrorInitialState};
2020

exchange/Cargo.toml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,20 @@ name = "exchange"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7-
86
[dependencies]
9-
exchange-stubs = { path = "../testing/exchange-stubs/"}
10-
testing-traits = { path = "../testing/testing-traits/"}
11-
12-
market-objects = { path = "../market-objects"}
13-
quoter-errors = { path = "../quoter-errors"}
14-
15-
reqwest = { version = "*", features = ["json"]}
16-
config = { path = "../config"}
17-
tokio = "1.29.1"
18-
crossbeam-channel = "0.5.8"
19-
tokio-tungstenite = "0.19.0"
20-
futures = "0.3.28"
21-
serde_json = "1.0.102"
22-
futures-util = "0.3.28"
23-
tracing = "0.1.37"
24-
pin-project-lite = "0.2.16"
25-
itertools = "0.14.0"
7+
exchange-stubs.workspace = true
8+
testing-traits.workspace = true
9+
config.workspace = true
10+
market-objects.workspace = true
11+
quoter-errors.workspace = true
12+
reqwest.workspace = true
13+
tokio.workspace = true
14+
crossbeam-channel.workspace = true
15+
tungstenite.workspace = true
16+
futures.workspace = true
17+
serde_json.workspace = true
18+
futures-util.workspace = true
19+
tracing.workspace = true
20+
itertools.workspace = true
21+
tokio-tungstenite.workspace = true
22+
pin-project-lite.workspace = true
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name = "config"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7-
86
[dependencies]
97
serde = { version = "1.0", features = ["derive"] }
108
serde_yaml = "0.9.21"

0 commit comments

Comments
 (0)