Lutra/Cargo.toml
danny 90d03284f2 H1: child processes die with Lutra (crates/proc)
New layer-0 crate lutra-proc: spawn(Command) puts the child into a
kill-on-close group. Windows: one job object per child with
JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE (windows-sys), nested jobs work.
Unix: a new process group plus a /bin/sh watchdog that kills the group
when Lutra's pipe closes (drop, kill, quit or SIGKILL of Lutra).
Child::kill and Drop take the whole group.

Phpactor (supervision spawn) and the php -v probe in lutra-lsp start
through it. Tests kill a parent hard and check that its child is gone
(with and without the parent in a group), plus kill and drop of a tree.
Docs: architecture "Child processes", G6 note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:59:57 +01:00

50 lines
1.3 KiB
TOML

[workspace]
resolver = "3"
members = ["crates/*", "apps/*", "xtask"]
default-members = ["crates/*", "apps/*"]
[workspace.package]
version = "0.0.0"
edition = "2024"
rust-version = "1.88"
license = "MIT OR Apache-2.0"
authors = ["Daniel Diekert and the Lutra contributors"]
publish = false
[workspace.dependencies]
lutra-text = { path = "crates/text" }
lutra-proc = { path = "crates/proc" }
lutra-syntax = { path = "crates/syntax" }
lutra-vfs = { path = "crates/vfs" }
lutra-index = { path = "crates/index" }
lutra-search = { path = "crates/search" }
lutra-lsp = { path = "crates/lsp" }
lutra-terminal = { path = "crates/terminal" }
lutra-engine = { path = "crates/engine" }
lutra-control = { path = "crates/control" }
lutra-mcp = { path = "crates/mcp" }
lutra-testkit = { path = "crates/testkit" }
ropey = { version = "1.6.1", default-features = false, features = ["cr_lines", "simd"] }
proptest = "1.12.0"
ignore = "0.4.33"
notify = "8.2.0"
tempfile = "3.27.0"
tree-sitter = "0.26.13"
tree-sitter-php = "0.25.1"
[workspace.lints.rust]
missing_docs = "deny"
unsafe_code = "deny"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unreachable = "deny"
todo = "deny"
unimplemented = "deny"
indexing_slicing = "deny"
string_slice = "deny"
[profile.release]
panic = "unwind"