Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rust/Cargo.lock

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

10 changes: 10 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,18 @@ reqwest = { version = "0.12", default-features = false, features = ["stream", "h
tokio-tungstenite = { version = "0.24", default-features = false, features = ["connect", "native-tls"] }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_Security",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_JobObjects",
"Win32_System_Threading",
] }
zip = { version = "2", default-features = false, features = ["deflate"], optional = true }

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[dev-dependencies]
rusqlite = { version = "0.35", features = ["bundled"] }
schemars = "1"
Expand Down
12 changes: 6 additions & 6 deletions rust/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ fn capture_backtrace() -> Option<Box<Backtrace>> {
/// Aggregate of errors collected during [`crate::Client::stop`].
///
/// `Client::stop` performs cooperative shutdown across every active
/// session before killing the CLI child process. Errors from any
/// per-session `session.destroy` RPC and from the terminal child-kill
/// step are collected here rather than short-circuiting on the first
/// failure, so callers see the full picture of what went wrong during
/// teardown.
/// session before terminating and reaping the SDK-owned CLI process tree.
/// Errors from any per-session `session.destroy` RPC and from the terminal
/// process-tree teardown are collected here rather than short-circuiting on
/// the first failure, so callers see the full picture of what went wrong
/// during teardown.
///
/// Implements [`std::error::Error`] and forwards to `Display` for the
/// first error, with a count suffix when there are more.
Expand All @@ -409,7 +409,7 @@ pub struct StopErrors(pub(crate) Vec<Error>);

impl StopErrors {
/// Borrow the collected errors as a slice, in the order they
/// occurred (per-session destroys first, then child-kill last).
/// occurred (per-session destroys first, then process-tree teardown).
pub fn errors(&self) -> &[Error] {
&self.0
}
Expand Down
Loading
Loading