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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! An extension to [`std::process::Command`] to support process groups on Unix and Windows.
#![cfg_attr(
	feature = "with-tokio",
	doc = "With Tokio, the [`AsyncCommandGroup`] trait extends [`tokio::process::Command`](::tokio::process::Command)."
)]
#![doc = "\n"]
#![cfg_attr(
	unix,
	doc = "On Unix, the [`UnixChildExt`] trait additionally provides support for sending signals to processes and process groups (it’s implemented on this crate’s [`GroupChild`],"
)]
#![cfg_attr(
	all(unix, feature = "with-tokio"),
	doc = "[`AsyncGroupChild`], Tokio’s [`Child`](::tokio::process::Child)"
)]
#![cfg_attr(unix, doc = "and std’s [`Child`](std::process::Child)).")]
#![doc(html_favicon_url = "https://watchexec.github.io/logo:command-group.svg")]
#![doc(html_logo_url = "https://watchexec.github.io/logo:command-group.svg")]
#![warn(missing_docs)]

pub mod stdlib;

#[cfg(unix)]
mod unix_ext;

#[cfg(feature = "with-tokio")]
pub mod tokio;

pub mod builder;

#[cfg(windows)]
pub(crate) mod winres;

#[cfg(unix)]
#[doc(inline)]
pub use crate::unix_ext::UnixChildExt;
#[cfg(unix)]
#[doc(no_inline)]
pub use nix::sys::signal::Signal;

#[doc(inline)]
pub use crate::stdlib::child::GroupChild;
pub use crate::stdlib::CommandGroup;

#[cfg(feature = "with-tokio")]
#[doc(inline)]
pub use crate::tokio::child::AsyncGroupChild;
#[cfg(feature = "with-tokio")]
pub use crate::tokio::AsyncCommandGroup;