Skip to content

Commit 4b22672

Browse files
committed
Be explicit about runtime features used in static runtime
1 parent 6893722 commit 4b22672

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sqlx-macros/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ use query_macros::*;
2828
#[cfg(feature = "runtime-tokio")]
2929
lazy_static::lazy_static! {
3030
static ref BASIC_RUNTIME: tokio::runtime::Runtime = {
31-
tokio::runtime::Builder::new().threaded_scheduler().enable_all().build().expect("failed to build tokio runtime")
31+
tokio::runtime::Builder::new()
32+
.threaded_scheduler()
33+
.enable_io()
34+
.enable_time()
35+
.build()
36+
.expect("failed to build tokio runtime")
3237
};
3338
}
3439

0 commit comments

Comments
 (0)