diff --git a/Cargo.toml b/Cargo.toml index da5fac3bfb..854af439cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ default = [ ] runtime = [ "tcp", - "tokio/time", + "tokio/rt-core", ] tcp = [ "net2", diff --git a/examples/single_threaded.rs b/examples/single_threaded.rs index 7f7db7924b..eb45448862 100644 --- a/examples/single_threaded.rs +++ b/examples/single_threaded.rs @@ -1,5 +1,3 @@ -fn main() {} -/* #![deny(warnings)] use std::cell::Cell; @@ -74,4 +72,3 @@ where tokio::task::spawn_local(fut); } } -*/ diff --git a/src/rt.rs b/src/rt.rs index 4eefab5bf4..4e60139a87 100644 --- a/src/rt.rs +++ b/src/rt.rs @@ -5,4 +5,4 @@ //! If the `runtime` feature is disabled, the types in this module can be used //! to plug in other runtimes. -//pub use crate::common::Executor; +pub use crate::common::Executor;