Move tokio to dev and add rt-multi-threaded

Tokio is not needed in the main library and is only used for tests, and
thus can be safely moved to a dev-dependency.

The rt-multi-threaded feature of tokio is needed for some examples.
This commit is contained in:
Nick Zana 2021-03-13 18:40:54 -05:00
parent 773c9d81f7
commit c75029f59e

View File

@ -16,7 +16,6 @@ include = [
[dependencies]
reqwest = { version = "0.11.0", features = ["json", "rustls-tls"], default-features = false }
tokio = { version = "1.2", features = ["macros"] }
serde = { version = "1.0", features = ["derive"] }
rustc-serialize = "0.3.24"
enum-iterator = "0.6.0"
@ -24,3 +23,6 @@ enum-iterator = "0.6.0"
dotenv = "0.15.0"
log = "0.4.8"
env_logger = "0.8.2"
[dev-dependencies]
tokio = { version = "1.2", features = ["macros", "rt-multi-thread"] }