about summary refs log tree commit diff
path: root/library/std/src/process.rs
AgeCommit message (Collapse)AuthorLines
2025-05-23Rollup merge of #141019 - ehuss:android-doctest-xcompile, r=Mark-SimulacrumMatthias Krüger-6/+6
Update std doctests for android This updates some doctests that fail to run on android. We will soon be supporting cross-compiled doctests, and the `arm-android` job fails to run these tests. In summary: - Android re-exports some traits from linux under a different path. - Android doesn't seem to have common unix utilities like `true`, `false`, or `whoami`, so these are disabled.
2025-05-17Switch library rustc_unimplemented to use `Self` and `This`mejrs-1/+1
2025-05-14Update std doctests for androidEric Huss-6/+6
This updates some doctests that fail to run on android. We will soon be supporting cross-compiled doctests, and the `arm-android` job fails to run these tests. In summary: - Android re-exports some traits from linux under a different path. - Android doesn't seem to have common unix utilities like `true`, `false`, or `whoami`, so these are disabled.
2025-04-28std: get rid of `sys_common::process`joboet-4/+44
Move the public `CommandEnvs` into the `process` module (and make it a wrapper type for an internal iterator type) and everything else into `sys::process` as per #117276.
2025-04-15Rollup merge of #139554 - lolbinarycat:std-output-exit_ok, r=tgross35Stuart Cook-0/+34
std: add Output::exit_ok approved in ACP https://github.com/rust-lang/libs-team/issues/554 Tracking issue: https://github.com/rust-lang/rust/issues/84908
2025-04-14std: add Output::exit_okbinarycat-0/+34
approved in ACP https://github.com/rust-lang/libs-team/issues/554
2025-04-09replace version placeholderBoxy-2/+2
2025-03-28Fix formatting nit in process.rsRafael Bachmann-1/+1
2025-03-18Rollup merge of #136320 - RalfJung:exit, r=the8472Matthias Krüger-3/+30
exit: document interaction with C Cc https://github.com/rust-lang/rust/issues/126600
2025-03-17move new section into platform-specific behavior, as it is unix-specificRalf Jung-21/+20
2025-03-14Mv os-specific trait impl of `Pipe*` into `std::os::*`Jiahao XU-0/+14
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2025-03-10Disable unsupported testsNicole LeGare-1/+2
Unclear why this needs to be done manually and is not done by the existing Trusty patches.
2025-03-04exit: document interaction with CRalf Jung-3/+31
2025-02-18add last std diagnostic items for clippycyrgani-0/+4
2025-02-01Fix sentence in process::abortMarijn Schouten-8/+4
2025-01-08Rollup merge of #135176 - kornelski:env-example, r=cuviperJacob Pratt-7/+15
More compelling env_clear() examples `ls` isn't a command that people usually set env vars for, and `PATH` in particular isn't even used by `ls`.
2025-01-07Avoid naming variables `str`Josh Triplett-2/+2
This renames variables named `str` to other names, to make sure `str` always refers to a type. It's confusing to read code where `str` (or another standard type name) is used as an identifier. It also produces misleading syntax highlighting.
2025-01-06More compelling env_clear() examplesKornel-7/+15
2024-12-21Less unwrap() in documentationKornel-14/+15
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-2/+2
2024-09-29Fix std tests for wasm32-wasip2 targetNicola Krumschmidt-1/+9
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-16Auto merge of #127633 - SamuelMarks:eq-exit-code, r=dtolnaybors-5/+9
[library/std/src/process.rs] `PartialEq` for `ExitCode` Converting a third-party CLI to a library so started passing around [`std::process::ExitCode`](https://doc.rust-lang.org/std/process/struct.ExitCode.html) in an `Either`. Then I realised the tests can't be modified to compare equality of `ExitCode`s. This PR fixes this oversight.
2024-09-06[library/std/src/process.rs] Remove `Eq` `derive`Samuel Marks-1/+1
2024-09-05[library/std/src/process.rs] Update docstring with @joshtriplett's ↵Samuel Marks-4/+8
replacement text
2024-09-02process.rs: remove "Basic usage" text where not usefulTshepang Mbambo-36/+0
Is not useful because just a single example is given.
2024-08-25exit: explain our expectations for the exit handlers registered in a Rust ↵Ralf Jung-0/+9
program
2024-07-29Reformat `use` declarations.Nicholas Nethercote-5/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-26Fix doc nitsJohn Arundel-2/+2
Many tiny changes to stdlib doc comments to make them consistent (for example "Returns foo", rather than "Return foo", per RFC1574), adding missing periods, paragraph breaks, backticks for monospace style, and other minor nits. https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
2024-07-13Fix minor typos in std::process doc on Win argvJubilee Young-2/+2
2024-07-11[library/std/src/process.rs] `PartialEq` & `Eq` for `ExitCode`Samuel Marks-1/+1
2024-06-10Clarify `Command::new` behavior if passed programs with arguments许杰友 Jieyou Xu (Joe)-0/+19
2024-05-19Rollup merge of #123709 - tgross35:windows-cmd-docs-update, r=ChrisDentonMichael Goulet-21/+27
Update documentation related to the recent cmd.exe fix Fix some grammar nits, change `bat` (extension) -> `batch` (file), and make line wrapping more consistent.
2024-05-04Rollup merge of #122441 - a1phyr:improve_read_impls, r=ChrisDentonMatthias Krüger-0/+4
Improve several `Read` implementations - `read_to_end` and `read_to_string` for `Cursor` - Error on OOM in `read_to_string` of `&[u8]` and `VecDeque<u8>` - Avoid making the slices contiguous in `VecDeque::read_to_string` - ~`read_exact` and (unstable) `read_buf_exact` for `Take`~ - ~`read_buf` for `UnixStream` and `&UnixStream`~ (moved to #123084) - `read_to_end` for `ChildStdErr`
2024-04-22Stabilize generic `NonZero`.Markus Reiter-1/+2
2024-04-12Improve several `Read` implementationsBenoît du Garreau-0/+4
2024-04-09Update documentation related to the recent cmd.exe fixTrevor Gross-21/+27
Fix some grammar nits, change `bat` (extension) -> `batch` (file), and make line wrapping more consistent.
2024-04-09Document Windows argument splittingChris Denton-0/+79
2024-02-22Use generic `NonZero` everywhere in `std`.Markus Reiter-7/+7
2024-02-13Fix incorrect use of `compile_fail`Noah Lev-3/+3
`compile_fail` should only be used when the code is meant to show what *not* to do. In other words, there should be a fundamental flaw in the code. However, in this case, the example is just incomplete, so we should use `ignore` to avoid confusing readers.
2023-12-15Cfg remove lang items in doctestCameron Steffen-1/+1
2023-11-22add missing period in `std::process::Command` docsMax Heller-1/+1
2023-11-15Substitute version placeholdersMark Rousskov-1/+1
2023-10-15Deduplicate std::process Default impl feature namesDavid Tolnay-2/+2
error[E0711]: feature `process-exitcode-default` is declared stable since 1.74.0-beta.1, but was previously declared stable since 1.73.0 --> library/std/src/process.rs:1964:1 | 1964 | #[stable(feature = "process-exitcode-default", since = "CURRENT_RUSTC_VERSION")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-07impl Default for ExitCodeIan Jackson-0/+8
As suggested here https://github.com/rust-lang/rust/pull/106425#issuecomment-1382952598
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-2/+2
Bump bootstrap compiler to just-released beta https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
2023-10-05Add more diagnostic items for clippyJason Newcomb-0/+2
2023-10-04Rollup merge of #116146 - Milo123459:milo/clarify-arg-documentation, r=thomccMatthias Krüger-2/+2
Clarify `arg` and `args` documentation Fixes #95400
2023-10-03Bump version placeholdersMark Rousskov-2/+2
2023-09-28Auto merge of #114428 - ChaiTRex:master, r=dtolnaybors-3/+3
Convert `Into<ExitStatus> for ExitStatusError` to `From<ExitStatusError> for ExitStatus` in `std::process` Implementing suggestion from https://github.com/rust-lang/rust/issues/84908#issuecomment-912352902: > I believe the impl on ExitStatusError should be > > ```rust > impl From<ExitStatusError> for ExitStatus > ``` > > rather than > > ```rust > impl Into<ExitStatus> for ExitStatusError > ``` > > (there is generally never anything implemented as `Into` first, because implementing `From` reflexively provides `Into`)