Skip to content

Commit

Permalink
Split out all the fs async
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Aug 6, 2022
1 parent c2b0024 commit ea05666
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions serial_test/src/lib.rs
Expand Up @@ -74,17 +74,17 @@ pub use serial_code_lock::{local_async_serial_core, local_async_serial_core_with

pub use serial_code_lock::{local_serial_core, local_serial_core_with_return};

#[cfg(all(feature = "file_locks", feature = "async"))]
pub use serial_file_lock::{fs_async_serial_core, fs_async_serial_core_with_return};

#[cfg(feature = "file_locks")]
pub use serial_file_lock::{
fs_async_serial_core, fs_async_serial_core_with_return, fs_serial_core,
fs_serial_core_with_return,
};
pub use serial_file_lock::{fs_serial_core, fs_serial_core_with_return};

#[cfg(all(feature = "file_locks", feature = "async"))]
pub use parallel_file_lock::{fs_async_parallel_core, fs_async_parallel_core_with_return};

#[cfg(feature = "file_locks")]
pub use parallel_file_lock::{
fs_async_parallel_core, fs_async_parallel_core_with_return, fs_parallel_core,
fs_parallel_core_with_return,
};
pub use parallel_file_lock::{fs_parallel_core, fs_parallel_core_with_return};

// Re-export #[serial/parallel].
pub use serial_test_derive::{parallel, serial};
Expand Down
2 changes: 2 additions & 0 deletions serial_test/src/serial_file_lock.rs
Expand Up @@ -25,6 +25,7 @@ pub fn fs_serial_core_with_return<E>(
}

#[doc(hidden)]
#[cfg(feature = "async")]
pub async fn fs_async_serial_core_with_return<E>(
name: &str,
_max_wait: Option<Duration>,
Expand All @@ -39,6 +40,7 @@ pub async fn fs_async_serial_core_with_return<E>(
}

#[doc(hidden)]
#[cfg(feature = "async")]
pub async fn fs_async_serial_core(
name: &str,
_max_wait: Option<Duration>,
Expand Down

0 comments on commit ea05666

Please sign in to comment.