forked from watchexec/process-wrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
66 lines (48 loc) · 1.97 KB
/
Cargo.toml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "process-wrap"
version = "8.0.2"
authors = ["Félix Saparelli <[email protected]>"]
license = "Apache-2.0 OR MIT"
description = "Wrap a Command, to spawn processes in a group or session or job etc"
keywords = ["command", "process", "group", "session", "pty"]
documentation = "https://docs.rs/process-wrap"
homepage = "https://github.com/watchexec/process-wrap"
repository = "https://github.com/watchexec/process-wrap"
readme = "README.md"
edition = "2021"
exclude = ["/bin", "/.github"]
rust-version = "1.75.0"
[dependencies]
futures = { version = "0.3.30", optional = true }
indexmap = "2.2.6"
tokio = { version = "1.37.0", features = ["io-util", "macros", "process", "rt"], optional = true }
tracing = { version = "0.1.40", optional = true }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.28.0", default-features = false, features = ["fs", "poll", "signal"], optional = true }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.56.0", optional = true }
[dev-dependencies]
remoteprocess = "0.4.13"
tokio = { version = "1.37.0", features = ["io-util", "macros", "process", "rt", "rt-multi-thread", "time"] }
[features]
default = ["creation-flags", "job-object", "kill-on-drop", "process-group", "process-session", "tracing"]
## Enable internal tracing logs
tracing = ["dep:tracing"]
## Frontend: StdCommandWrap
std = ["dep:nix"]
## Frontend: TokioCommandWrap
tokio1 = ["dep:nix", "dep:futures", "dep:tokio"]
## Wrapper: Creation Flags
creation-flags = ["dep:windows", "windows/Win32_System_Threading"]
## Wrapper: Job Object
job-object = ["dep:windows", "windows/Win32_Security", "windows/Win32_System_Diagnostics_ToolHelp", "windows/Win32_System_IO", "windows/Win32_System_JobObjects", "windows/Win32_System_Threading"]
## Wrapper: Kill on Drop
kill-on-drop = []
## Wrapper: Process Group
process-group = []
## Wrapper: Process Session
process-session = ["process-group"]
## Wrapper: Reset Sigmask
reset-sigmask = []
[package.metadata.docs.rs]
all-features = true