From 16b75c64f91e079a2dd8daf816c4201d3a02e461 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 14 Mar 2025 21:29:22 +0100 Subject: [PATCH] dont have fucking tokio as default dep --- Cargo.toml | 12 ++---------- members/future_stream/Cargo.toml | 12 ++++++++++-- members/rest-queued/Cargo.toml | 2 +- members/rest/Cargo.toml | 2 +- members/sdl-idiot/Cargo.toml | 6 ++++++ members/sdl-idiot/src/main.rs | 3 +++ members/tokio-send-sync/Cargo.toml | 10 +++++++++- 7 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 members/sdl-idiot/Cargo.toml create mode 100644 members/sdl-idiot/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index 5c23531..40f7ba7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ members = [ "members/iter-prod", "members/tpdemo", "members/graph", + "members/sdl-idiot", ] default-members = [ ".", @@ -65,21 +66,12 @@ default-members = [ "members/rest-queued", "members/sqlite-demo", "members/graph", + "members/sdl-idiot", ] [workspace.dependencies] anyhow = "1.0.79" thiserror = "1.0.56" -tokio = { version = "1.35.1", features = [ - "net", - "rt", - "macros", - "rt-multi-thread", - "io-util", - "time", - "sync", -] } -futures = { version = "0.3.30", features = ["executor"] } serde = { version = "1.0.171", features = ["derive"] } serde_json = "1.0.102" libpt = { version = "0.5.1", features = ["full"] } diff --git a/members/future_stream/Cargo.toml b/members/future_stream/Cargo.toml index 67f1383..f17010b 100644 --- a/members/future_stream/Cargo.toml +++ b/members/future_stream/Cargo.toml @@ -6,5 +6,13 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tokio.workspace = true -futures.workspace = true +tokio = { version = "1.35.1", features = [ + "net", + "rt", + "macros", + "rt-multi-thread", + "io-util", + "time", + "sync", +] } +futures = { version = "0.3.30", features = ["executor"] } diff --git a/members/rest-queued/Cargo.toml b/members/rest-queued/Cargo.toml index 1f9e5f5..a738ad7 100644 --- a/members/rest-queued/Cargo.toml +++ b/members/rest-queued/Cargo.toml @@ -11,5 +11,5 @@ libpt.workspace = true rand = { version = "0.8.5", features = ["serde"] } serde.workspace = true serde_json.workspace = true -tokio.workspace = true +tokio = { version = "1.35.1", features = ["full"] } warp = "0.3.6" diff --git a/members/rest/Cargo.toml b/members/rest/Cargo.toml index d9a01f0..bf1f0a9 100644 --- a/members/rest/Cargo.toml +++ b/members/rest/Cargo.toml @@ -9,5 +9,5 @@ edition = "2021" libpt.workspace = true serde = { workspace = true, features = ["serde_derive"] } serde_json.workspace = true -tokio = { workspace = true, features = ["full"] } +tokio = { version = "1.35.1", features = ["full"] } warp = "0.3.6" diff --git a/members/sdl-idiot/Cargo.toml b/members/sdl-idiot/Cargo.toml new file mode 100644 index 0000000..fd8a13f --- /dev/null +++ b/members/sdl-idiot/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "sdl-idiot" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/members/sdl-idiot/src/main.rs b/members/sdl-idiot/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/members/sdl-idiot/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/members/tokio-send-sync/Cargo.toml b/members/tokio-send-sync/Cargo.toml index 095c99f..0c9e334 100644 --- a/members/tokio-send-sync/Cargo.toml +++ b/members/tokio-send-sync/Cargo.toml @@ -6,5 +6,13 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tokio.workspace = true anyhow.workspace = true +tokio = { version = "1.35.1", features = [ + "net", + "rt", + "macros", + "rt-multi-thread", + "io-util", + "time", + "sync", +] }