Skip to content

Add per sandbox configuration for crashdumps #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
9 changes: 9 additions & 0 deletions src/hyperlight_wasm/src/sandbox/sandbox_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ impl SandboxBuilder {
self
}

/// Enable or disable crashdump generation for the sandbox
/// When enabled, core dumps will be generated when the guest crashes
/// This requires the `crashdump` feature to be enabled
#[cfg(feature = "crashdump")]
pub fn with_crashdump_enabled(mut self, enabled: bool) -> Self {
self.config.set_guest_core_dump(enabled);
self
}

/// Get the current configuration
pub fn get_config(&self) -> &SandboxConfiguration {
&self.config
Expand Down
4 changes: 2 additions & 2 deletions src/wasm_runtime/Cargo.lock

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

Loading