aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2021-06-07 01:22:39 +0200
committerTeddy Wing2021-06-07 01:25:00 +0200
commitde2d6a2ddf747cc7d5d370b69e26e8355b00f1d4 (patch)
treeeece39ad10565e2ddf4220deb85f7fe406b6ef68 /Cargo.toml
parent0da2cb98c759e59772a489b73e91164c6a8f5fe9 (diff)
downloadreflectub-de2d6a2ddf747cc7d5d370b69e26e8355b00f1d4.tar.bz2
Switch `futures::executor` to Tokio runtime
Use the Tokio runtime we created to run the blocking async tasks. Trying to set this up so I can get results back from the spawned tasks, but I'm currently having trouble working out how to extract them from the async task and return them from `run()`. I suppose I could just print out the errors directly in that `while let` loop, but ideally I'd like to return all errors from `run()` rather than printing in `run()`.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 14e779a..4188321 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,6 +16,7 @@ reqwest = { version = "0.11.3", features = ["json"] }
serde = { version = "1.0.126", features = ["derive"] }
thiserror = "1.0.25"
tokio = { version = "1.6.1", features = ["macros", "rt-multi-thread"] }
+tokio-stream = "0.1.6"
[dependencies.sqlx]
version = "0.5.5"