mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
docs(test): Document 'process'
This commit is contained in:
parent
b4b56d4d65
commit
170756601c
@ -1300,8 +1300,13 @@ pub fn is_nightly() -> bool {
|
||||
&& (vv.contains("-nightly") || vv.contains("-dev"))
|
||||
}
|
||||
|
||||
pub fn process<T: AsRef<OsStr>>(t: T) -> ProcessBuilder {
|
||||
_process(t.as_ref())
|
||||
/// Run `$bin` in the test's environment, see [`ProcessBuilder`]
|
||||
///
|
||||
/// For more on the test environment, see
|
||||
/// - [`paths::root`]
|
||||
/// - [`TestEnvCommandExt`]
|
||||
pub fn process<T: AsRef<OsStr>>(bin: T) -> ProcessBuilder {
|
||||
_process(bin.as_ref())
|
||||
}
|
||||
|
||||
fn _process(t: &OsStr) -> ProcessBuilder {
|
||||
|
Loading…
x
Reference in New Issue
Block a user