aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-30 15:55:41 +0100
committerJokler <jokler@protonmail.com>2020-02-22 23:20:10 +0100
commit757edd214f841e8d95e4c5430d7ead7a0e8fecbb (patch)
tree3d0721d1d1f73c9bc1fd5ac23aef505e1051d5e5 /Cargo.toml
parent2792ba9c8a7120a91b3bd2c6075e737690e73405 (diff)
downloadpokebot-757edd214f841e8d95e4c5430d7ead7a0e8fecbb.tar.gz
pokebot-757edd214f841e8d95e4c5430d7ead7a0e8fecbb.zip
Spawn actix-web server with access to the bot
Additionally replace all Mutexes with RwLocks. Hopefully this makes it possible for the web server to serve many requests at once since they would just hold read locks.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7f7aeb5..1fdb258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,3 +35,6 @@ byte-slice-cast = "0.3.5"
serde_json = "1.0.44"
serde = "1.0.104"
rand = { version = "0.7.3", features = ["small_rng"] }
+actix-web = "2.0.0"
+actix-rt = "1.0.0"
+actix = "0.9.0"