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>
36 lines
863 B
TOML
36 lines
863 B
TOML
[package]
|
|
name = "lutra-lsp"
|
|
description = "Language server client (Phpactor first), later a DAP client"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
publish.workspace = true
|
|
|
|
[package.metadata.lutra]
|
|
layer = 3
|
|
|
|
[[bin]]
|
|
name = "lutra-lsp-fake"
|
|
path = "src/bin/lutra-lsp-fake.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[dependencies]
|
|
lutra-proc.workspace = true
|
|
lutra-text.workspace = true
|
|
lutra-vfs.workspace = true
|
|
ring = "0.17.14"
|
|
rustls = { version = "0.23.22", default-features = false, features = ["ring", "std", "tls12"] }
|
|
rustls-native-certs = "0.8.5"
|
|
serde_json = "1.0.154"
|
|
thiserror = "2.0.21"
|
|
ureq = { version = "3.4.2", default-features = false, features = ["rustls-no-provider"] }
|
|
|
|
[dev-dependencies]
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|