From 335c9315c546d5de6ec677143b8d62279d6f3f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 20 Apr 2026 02:16:52 +0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20promote=20shar?= =?UTF-8?q?ed=20deps=20to=20workspace=20and=20switch=20server=20to=20tokio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.toml | 5 +++++ crates/client/Cargo.toml | 5 +++-- crates/common/Cargo.toml | 3 ++- crates/server/Cargo.toml | 4 +++- crates/server/src/main.rs | 3 ++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9453c44..313df12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,8 @@ members = [ "crates/server", ] +[workspace.dependencies] +common = { path = "crates/common" } +tokio = {version = "1.51.1", features = ["full"]} +bitcode = "0.6.9" +quinn = "0.11.9" diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index 5f87327..1d77975 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -4,8 +4,9 @@ version = "0.1.0" edition = "2024" [dependencies] -common = { version = "0.1.0", path = "../common", features = ["client"] } +common = { workspace = true, features = ["client"] } +tokio.workspace = true + gpui = "0.2.2" gpui-component = "0.5.1" gpui-component-assets = "0.5.1" -tokio = {version = "1.50.0", features = ["full"]} diff --git a/crates/common/Cargo.toml b/crates/common/Cargo.toml index fac8390..d8efe64 100644 --- a/crates/common/Cargo.toml +++ b/crates/common/Cargo.toml @@ -8,4 +8,5 @@ client = [] server = [] [dependencies] -bitcode = "0.6.9" +bitcode.workspace = true +quinn.workspace = true diff --git a/crates/server/Cargo.toml b/crates/server/Cargo.toml index 10c21c1..f563432 100644 --- a/crates/server/Cargo.toml +++ b/crates/server/Cargo.toml @@ -4,4 +4,6 @@ version = "0.1.0" edition = "2024" [dependencies] -common = { version = "0.1.0", path = "../common", features = ["server"] } +common = { workspace = true, features = ["client"] } +tokio.workspace = true +quinn.workspace = true diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index e7a11a9..7e3d561 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs @@ -1,3 +1,4 @@ -fn main() { +#[tokio::main] +async fn main() { println!("Hello, world!"); }