util: enable loom tests (#7644)

Co-authored-by: Benjamin Ran <[email protected]>
This commit is contained in:
Benjamin Ran
2025-11-06 19:20:08 +08:00
committed by GitHub
co-authored by Benjamin Ran
parent 0671c205cc
commit d84a9e9af3
12 changed files with 60 additions and 7 deletions
+8 -4
View File
@@ -22,9 +22,9 @@ cfg_sync! {
}
cfg_signal! {
#[cfg(unix)]
#[cfg(all(unix, not(loom)))]
mod signal_unix;
#[cfg(unix)]
#[cfg(all(unix, not(loom)))]
pub use signal_unix::SignalStream;
#[cfg(any(windows, docsrs))]
@@ -39,12 +39,14 @@ cfg_time! {
}
cfg_net! {
#[cfg(not(loom))]
mod tcp_listener;
#[cfg(not(loom))]
pub use tcp_listener::TcpListenerStream;
#[cfg(unix)]
#[cfg(all(unix, not(loom)))]
mod unix_listener;
#[cfg(unix)]
#[cfg(all(unix, not(loom)))]
pub use unix_listener::UnixListenerStream;
}
@@ -57,6 +59,8 @@ cfg_io_util! {
}
cfg_fs! {
#[cfg(not(loom))]
mod read_dir;
#[cfg(not(loom))]
pub use read_dir::ReadDirStream;
}