Skip to content

Commit

Permalink
feat: terminate spawned processes when the deno task process is termi…
Browse files Browse the repository at this point in the history
…nated on Windows (#35)
  • Loading branch information
dsherret authored Nov 30, 2024
1 parent b350c47 commit f0df1f2
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 16 deletions.
104 changes: 89 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description = "Cross platform scripting for deno task"

[features]
default = ["shell"]
shell = ["futures", "glob", "nix", "os_pipe", "path-dedot", "tokio"]
shell = ["futures", "glob", "nix", "os_pipe", "path-dedot", "tokio", "windows-sys"]
serialization = ["serde"]

[dependencies]
Expand All @@ -28,6 +28,9 @@ tokio = { version = "1", features = ["fs", "io-std", "io-util", "macros", "proce
[target.'cfg(unix)'.dependencies]
nix = { version = "0.27.1", features = ["signal"], optional = true }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59.0", features = ["Win32_Security", "Win32_System_JobObjects", "Win32_System_Threading"], optional = true }

[dev-dependencies]
deno_unsync = "0.4.1"
parking_lot = "0.12.1"
Expand Down
Loading

0 comments on commit f0df1f2

Please sign in to comment.