Cargo Features
[dependencies]
async-global-executor = { version = "2.4.0", default-features = false, features = ["tokio", "tokio02", "tokio03", "async-io"] }
- default = async-io
-
The
async-io
feature is set by default wheneverasync-global-executor
is added without
somewhere in the dependency tree.default-features = false - tokio = tokio-crate
- tokio02 = tokio02-crate
- tokio03 = tokio03-crate
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- async-io default
- tokio-crate tokio?
-
Enables rt and rt-multi-thread of tokio
- tokio02-crate tokio02?
-
Enables rt-core of tokio ^0.2
- tokio03-crate tokio03?
-
Enables rt and rt-multi-thread of tokio ^0.3.4