-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented/derived Debug and Default for all provided executor imple…
…mentations. Fixes #1
- Loading branch information
Showing
7 changed files
with
167 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "executors" | |
# NB: When modifying, also modify: | ||
# 1. html_root_url in lib.rs | ||
# 2. number in readme (for breaking changes) | ||
version = "0.4.2" | ||
version = "0.4.3" | ||
authors = ["Lars Kroll <[email protected]>"] | ||
edition = "2018" | ||
description = "A collection of high-performance task executors." | ||
|
@@ -16,11 +16,12 @@ categories = ["concurrency", "asynchronous"] | |
license = "MIT" | ||
|
||
[features] | ||
default = ["threadpool-exec", "cb-channel-exec", "workstealing-exec", "ws-timed-fairness"] | ||
default = ["threadpool-exec", "cb-channel-exec", "workstealing-exec", "ws-timed-fairness", "defaults"] | ||
|
||
threadpool-exec = ["threadpool"] | ||
cb-channel-exec = ["crossbeam-channel"] | ||
workstealing-exec = ["crossbeam-channel", "crossbeam-deque", "rand"] | ||
defaults = ["num_cpus"] | ||
|
||
# In the workstealing executor, check the global queues every 1ms | ||
ws-timed-fairness = ["time"] | ||
|
@@ -35,6 +36,7 @@ threadpool = {version = "1.7", optional = true} | |
crossbeam-deque = {version = "0.7", optional = true} | ||
time = {version = "0.1", optional = true} | ||
rand = {version = "0.6", optional = true} | ||
num_cpus = {version = "1.10", optional = true} | ||
|
||
[dev-dependencies] | ||
env_logger = "0.6" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters