[package]
edition = "2024"
rust-version = "1.87.0"
name = "process-wrap"
version = "9.0.2"
authors = ["Félix Saparelli <felix@passcod.name>"]
build = false
exclude = [
"/bin",
"/.github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Wrap a Command, to spawn processes in a group or session or job etc"
homepage = "https://github.com/watchexec/process-wrap"
documentation = "https://docs.rs/process-wrap"
readme = "README.md"
keywords = [
"command",
"process",
"group",
"session",
"pty",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/watchexec/process-wrap"
resolver = "3"
[package.metadata.docs.rs]
all-features = true
[features]
creation-flags = [
"dep:windows",
"windows/Win32_System_Threading",
]
default = [
"creation-flags",
"job-object",
"kill-on-drop",
"process-group",
"process-session",
"tracing",
]
job-object = [
"dep:windows",
"windows/Win32_Security",
"windows/Win32_System_Diagnostics_ToolHelp",
"windows/Win32_System_IO",
"windows/Win32_System_JobObjects",
"windows/Win32_System_Threading",
]
kill-on-drop = []
process-group = []
process-session = ["process-group"]
reset-sigmask = []
std = ["dep:nix"]
tokio1 = [
"dep:nix",
"dep:futures",
"dep:tokio",
]
tracing = ["dep:tracing"]
[lib]
name = "process_wrap"
path = "src/lib.rs"
[[test]]
name = "multiproc_helper"
path = "tests/multiproc_helper.rs"
[[test]]
name = "std_unix"
path = "tests/std_unix.rs"
[[test]]
name = "std_windows"
path = "tests/std_windows.rs"
[[test]]
name = "tokio_unix"
path = "tests/tokio_unix.rs"
[[test]]
name = "tokio_windows"
path = "tests/tokio_windows.rs"
[dependencies.futures]
version = "0.3.30"
optional = true
[dependencies.indexmap]
version = "2.9.0"
[dependencies.tokio]
version = "1.38.2"
features = [
"io-util",
"macros",
"process",
"rt",
]
optional = true
[dependencies.tracing]
version = "0.1.40"
optional = true
[dev-dependencies.remoteprocess]
version = "0.5.0"
[dev-dependencies.tempfile]
version = "3.20.0"
default-features = false
[dev-dependencies.tokio]
version = "1.38.2"
features = [
"io-util",
"macros",
"process",
"rt",
"rt-multi-thread",
"time",
]
[target."cfg(unix)".dependencies.nix]
version = "0.30.1"
features = [
"fs",
"poll",
"signal",
]
optional = true
default-features = false
[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
optional = true