forge
Explore
Log in

Don't you dare go Hollow

Promote shared deps to workspace and switch server to tokio

Browse files at this commit

335c9315c546d5de6ec677143b8d62279d6f3f6fAhmet Kaan GümüşParent: edef9f3
  • refactor
    • promote shared deps to workspace and switch server to tokio
Show full message
♻️ refactor: promote shared deps to workspace and switch server to tokio

Unify common, tokio, bitcode, and quinn under [workspace.dependencies]
so crates pull consistent versions, and move the server binary to a
tokio runtime in preparation for the networking layer.
Cargo.tomlmodified+5 -0
@@ -6,3 +6,8 @@ members = [
66 "crates/server",
77 ]
88
9+[workspace.dependencies]
10+common = { path = "crates/common" }
11+tokio = {version = "1.51.1", features = ["full"]}
12+bitcode = "0.6.9"
13+quinn = "0.11.9"
crates/client/Cargo.tomlmodified+3 -2
@@ -4,8 +4,9 @@ version = "0.1.0"
44 edition = "2024"
55
66 [dependencies]
7-common = { version = "0.1.0", path = "../common", features = ["client"] }
7+common = { workspace = true, features = ["client"] }
8+tokio.workspace = true
9+
810 gpui = "0.2.2"
911 gpui-component = "0.5.1"
1012 gpui-component-assets = "0.5.1"
11-tokio = {version = "1.50.0", features = ["full"]}
crates/common/Cargo.tomlmodified+2 -1
@@ -8,4 +8,5 @@ client = []
88 server = []
99
1010 [dependencies]
11-bitcode = "0.6.9"
11+bitcode.workspace = true
12+quinn.workspace = true
crates/server/Cargo.tomlmodified+3 -1
@@ -4,4 +4,6 @@ version = "0.1.0"
44 edition = "2024"
55
66 [dependencies]
7-common = { version = "0.1.0", path = "../common", features = ["server"] }
7+common = { workspace = true, features = ["client"] }
8+tokio.workspace = true
9+quinn.workspace = true
crates/server/src/main.rsmodified+2 -1
@@ -1,3 +1,4 @@
1-fn main() {
1+#[tokio::main]
2+async fn main() {
23 println!("Hello, world!");
34 }