sqlx/sqlx-macros/src/runtime.rs

12 lines
461 B
Rust

#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-async-std")))]
compile_error!("one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
#[cfg(all(feature = "runtime-tokio", feature = "runtime-async-std"))]
compile_error!("only one of 'runtime-async-std' or 'runtime-tokio' features must be enabled");
#[cfg(feature = "runtime-async-std")]
pub(crate) use async_std::fs;
#[cfg(feature = "runtime-tokio")]
pub(crate) use tokio::fs;