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!"); }