Docs.rs
lean-ctx-3.6.6
lean-ctx 3.6.6
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
yvgude
Dependencies
anyhow ^1
normal
argon2 ^0.5
normal
optional
axum ^0.8
normal
optional
bincode ^2
normal
blake3 ^1
normal
bytecount ^0.6.9
normal
chrono ^0.4
normal
crossterm ^0.28
normal
deadpool-postgres ^0.14
normal
optional
dirs ^5
normal
ed25519-dalek ^2
normal
flate2 ^1
normal
futures ^0.3
normal
getrandom ^0.3
normal
glob ^0.3.3
normal
hex ^0.4
normal
optional
hmac ^0.12
normal
ignore ^0.4
normal
jsonwebtoken ^10.3
normal
optional
lettre ^0.11
normal
optional
libc ^0.2
normal
lsp-types ^0.97
normal
md-5 ^0.10
normal
memmap2 ^0.9
normal
moka ^0.12.15
normal
rand ^0.9.3
normal
optional
ratatui ^0.30
normal
rayon ^1.10
normal
regex ^1
normal
reqwest ^0.13.2
normal
optional
rmcp ^1
normal
rpassword ^7.4.0
normal
rten ^0.24
normal
optional
rten-tensor ^0.24
normal
optional
rusqlite ^0.39.0
normal
serde ^1
normal
serde_json ^1
normal
sha2 ^0.10
normal
similar ^2
normal
subtle ^2
normal
tar ^0.4.45
normal
tempfile ^3
normal
thiserror ^2
normal
tiktoken-rs ^0.6
normal
tokio ^1
normal
tokio-postgres ^0.7
normal
optional
tokio-util ^0.7
normal
toml ^0.8
normal
tower-http ^0.6
normal
optional
tracing ^0.1
normal
tracing-subscriber ^0.3
normal
tree-sitter ^0.26
normal
optional
tree-sitter-bash ^0.25
normal
optional
tree-sitter-c ^0.24
normal
optional
tree-sitter-c-sharp ^0.23
normal
optional
tree-sitter-cpp ^0.23
normal
optional
tree-sitter-dart ^0.1
normal
optional
tree-sitter-elixir ^0.3
normal
optional
tree-sitter-go ^0.25
normal
optional
tree-sitter-java ^0.23
normal
optional
tree-sitter-javascript ^0.25
normal
optional
tree-sitter-kotlin-ng ^1.1
normal
optional
tree-sitter-php ^0.24
normal
optional
tree-sitter-python ^0.25
normal
optional
tree-sitter-ruby ^0.23
normal
optional
tree-sitter-rust ^0.24
normal
optional
tree-sitter-scala ^0.25
normal
optional
tree-sitter-swift ^0.7
normal
optional
tree-sitter-typescript ^0.23
normal
optional
tree-sitter-zig ^1.1
normal
optional
ureq ^3.3.0
normal
urlencoding ^2
normal
uuid ^1
normal
optional
walkdir ^2
normal
zip ^8.4.0
normal
zstd ^0.13
normal
criterion ^0.5
dev
proptest ^1
dev
tempfile ^3.27.0
dev
tower ^0.5
dev
tikv-jemalloc-ctl ^0.6
normal
optional
tikv-jemallocator ^0.6
normal
optional
windows-sys ^0.59
normal
Versions
13%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module process
lean_
ctx
3.6.6
Module process
Module Items
Functions
In lean_
ctx::
ipc
lean_ctx
::
ipc
Module
process
Copy item path
Source
Functions
§
find_
killable_
pids
Returns PIDs that are NOT MCP stdio servers (safe to kill during
lean-ctx stop
). MCP servers are child processes of the IDE and must not be killed — the IDE will immediately respawn them, causing a kill loop that requires a reboot.
find_
pids_
by_
name
Find all PIDs of processes whose executable name matches
name
. Excludes the current process.
force_
kill
Unconditionally kill a process.
is_
alive
Check whether a process with the given PID is still running.
kill_
all_
by_
name
Kill non-MCP processes matching
name
(SIGTERM then SIGKILL). Returns count of killed processes.
terminate_
gracefully
Ask a process to terminate gracefully (SIGTERM on Unix, nothing on Windows since we prefer HTTP shutdown; the caller should have already tried that).