-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME.php
30 lines (23 loc) · 1.21 KB
/
README.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[](https://github.com/soenkehahn/cradle/actions?query=branch%3Amain)
[](https://crates.io/crates/cradle)
[](https://docs.rs/cradle)
`cradle` is a library for executing child processes.
It provides a more convenient interface than
[std::process::Command](https://doc.rust-lang.org/std/process/struct.Command.html).
Here's an example:
``` rust
<?php include("./examples/readme.rs") ?>
```
For comprehensive documentation, head over to
[docs.rs/cradle](https://docs.rs/cradle/latest/cradle/).
## Design Goals
`cradle` is meant to make it as easy as possible to run child processes,
while making it hard to use incorrectly.
As such it provides an interface that is concise and flexible,
and tries to avoid surprising behavior.
`cradle` does not try to emulate the syntax or functionality of `bash` or other shells,
such as pipes (`|`), globs (`*`), or other string expansion.
Instead, it aims to be a convenient wrapper around the
operating system's interface for running child processes.
## MSRV
The minimal supported rust version is `0.41`.