aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-30 21:19:29 -0700
committerZeyla Hellyer <[email protected]>2017-10-09 10:57:39 -0700
commitd7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14 (patch)
tree842f96b915ffc6252ee3e191b68c0811eac35b9e /Cargo.toml
parentGenerate `Default` for CurrentUser and use it in `Cache::default` (diff)
downloadserenity-d7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14.tar.xz
serenity-d7621aa4dfb2a3dea22e7848eb97e2b4cc1ade14.zip
Add a threadpool to the shard runner
A threadpool will help with giving event dispatches a threaded behaviour while still allowing the library the ability to perform other actions, such as receiving new events and heartbeating over the websocket client.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index d8f8ae9..ca5c732 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -68,6 +68,10 @@ default-features = false
optional = true
version = "0.0.14"
+[dependencies.threadpool]
+optional = true
+version = "~1.7"
+
[dependencies.typemap]
optional = true
version = "~0.3"
@@ -101,6 +105,7 @@ client = [
"http",
"lazy_static",
"parking_lot",
+ "threadpool",
"typemap",
]
extras = []