diff --git a/Cargo.lock b/Cargo.lock index 57bfe99..2937474 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4573,9 +4573,7 @@ dependencies = [ "bytes", "libc", "mio", - "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.52.0", @@ -4924,6 +4922,7 @@ dependencies = [ "sha2", "sha256", "thiserror 2.0.10", + "tokio", "toml", "tracing", "uriproxy", diff --git a/Cargo.toml b/Cargo.toml index 9ff49d1..8007c92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ tracing-subscriber = "0.3" clap = { version = "4.5", features = ["derive"] } signal-hook = "0.3" signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] } -tokio = { version = "1.43", features = ["full"] } # TODO slim this down +tokio = { version = "1.43", features = ["rt-multi-thread", "macros"] } sea-orm = { version = "1.1", features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls"] } futures = "0.3" diff --git a/upub/core/Cargo.toml b/upub/core/Cargo.toml index 44464fa..93691bd 100644 --- a/upub/core/Cargo.toml +++ b/upub/core/Cargo.toml @@ -31,6 +31,7 @@ httpsign = { path = "../../utils/httpsign/" } mdhtml = { path = "../../utils/mdhtml/" } jrd = "0.1" tracing = "0.1" +tokio = "1.43" sea-orm = { version = "1.1", features = ["macros"] } reqwest = { version = "0.12", features = ["json"] } apb = { path = "../../apb", features = ["unstructured", "orm", "did-core", "activitypub-miscellaneous-terms", "activitypub-fe", "activitypub-counters", "litepub", "ostatus", "toot"] } diff --git a/upub/routes/Cargo.toml b/upub/routes/Cargo.toml index ddc00ac..6534042 100644 --- a/upub/routes/Cargo.toml +++ b/upub/routes/Cargo.toml @@ -20,7 +20,7 @@ serde_json = "1.0" upub = { path = "../core/" } jrd = "0.1" tracing = "0.1" -tokio = { version = "1.43", features = ["full"] } # TODO slim this down +tokio = "1.43" reqwest = { version = "0.12", features = ["json"] } axum = { version = "0.8", features = ["multipart"] } tower-http = { version = "0.6", features = ["cors", "trace"] } diff --git a/upub/worker/Cargo.toml b/upub/worker/Cargo.toml index 9dd52ee..7dc2baf 100644 --- a/upub/worker/Cargo.toml +++ b/upub/worker/Cargo.toml @@ -18,7 +18,7 @@ serde_json = "1.0" sea-orm = "1.1" regex = "1.11" chrono = { version = "0.4", features = ["serde"] } -tokio = { version = "1.43", features = ["full"] } # TODO slim this down +tokio = { version = "1.43", features = ["time"] } reqwest = { version = "0.12", features = ["json"] } apb = { path = "../../apb", features = ["unstructured", "orm", "activitypub-fe", "activitypub-counters", "litepub", "ostatus", "toot"] } mdhtml = { path = "../../utils/mdhtml/" }