about summary refs log tree commit diff
path: root/library/std/src/sys/anonymous_pipe
AgeCommit message (Collapse)AuthorLines
2025-08-16library: Migrate from `cfg_if` to `cfg_select`Josh Triplett-4/+6
Migrate the standard library from using the external `cfg_if` crate to using the now-built-in `cfg_select` macro. This does not yet eliminate the dependency from `library/std/Cargo.toml`, because while the standard library itself no longer uses `cfg_if`, it also incorporates the `backtrace` crate, which does. Migration assisted by the following vim command (after selecting the full `cfg_if!` invocation): ``` '<,'>s/\(cfg_if::\)\?cfg_if/cfg_select/ | '<,'>s/^\( *\)} else {/\1}\r\1_ => {/c | '<,'>s/^\( *\)} else if #\[cfg(\(.*\))\] /\1}\r\1\2 => /e | '<,'>s/if #\[cfg(\(.*\))\] {/\1 => {/e ``` This is imperfect, but substantially accelerated the process. This prompts for confirmation on the `} else {` since that can also appear inside one of the arms. This also requires manual intervention to handle any multi-line conditions.
2025-03-14Mv os-specific trait impl of `Pipe*` into `std::os::*`Jiahao XU-207/+5
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-14Stablize feature `anonymous_pipe`Jiahao XU-30/+30
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-01-17Move `std::pipe::*` into `std::io`Jiahao XU-6/+4
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-07-31Remove unneeded `pub(crate)`Chris Denton-1/+1
2024-07-30Move Windows implementation of anon pipeChris Denton-4/+12
2024-07-30Cleanup sys module to match house styleChris Denton-36/+14
2024-07-29Reformat `use` declarations.Nicholas Nethercote-27/+20
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-23Initial implementation of anonymous_pipeJiahao XU-0/+276
Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com> Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com> Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>