aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
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 /src/lib.rs
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 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9ee6949..612972a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -129,6 +129,8 @@ extern crate opus;
extern crate parking_lot;
#[cfg(feature = "voice")]
extern crate sodiumoxide;
+#[cfg(feature = "threadpool")]
+extern crate threadpool;
#[cfg(feature = "client")]
extern crate typemap;
#[cfg(feature = "standard_framework")]