mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 13:20:59 +00:00
12 lines
461 B
Rust
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;
|