aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2021-06-06 04:09:31 +0200
committerTeddy Wing2021-06-06 04:09:31 +0200
commit5539a9e8cc6e0b348f0428502b80ba32843ec36a (patch)
tree657434730a47df33de8830b74aea11250343e65b /Cargo.toml
parent6d5a4095ba4fd78707dc6a8d6321d72ebfc80f1c (diff)
downloadreflectub-5539a9e8cc6e0b348f0428502b80ba32843ec36a.tar.bz2
Make repo mirroring multi-threaded
I think, at least. Took a lot of research and trial and error to get this to compile, working out how to set up the multi-threading for async code. The idea here is to be able to process each repo in potentially multiple threads and do that processing work in parallel.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 827aba2..89a72ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,12 +8,13 @@ anyhow = "1.0.40"
chrono = "0.4.19"
exitcode = "1.1.2"
filetime = "0.2.14"
+futures = { version = "0.3.15", features = ["thread-pool"] }
getopts = "0.2.21"
git2 = "0.13.20"
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"] }
+tokio = { version = "1.6.1", features = ["macros", "rt-multi-thread"] }
[dependencies.sqlx]
version = "0.5.5"