Skip to content
Draft
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
3 changes: 3 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions crates/buzz-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ buzz-ws-client = { path = "../buzz-ws-client" }
# auto-select a provider. See crates/buzz-acp/Cargo.toml for the same dependency.
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }

tar = "0.4.46"
flate2 = "1"
tokio-util = { workspace = true }

# Random number generation — full jitter for exponential backoff in with_retry
rand = { workspace = true }

Expand Down
8 changes: 7 additions & 1 deletion crates/buzz-cli/src/sandbox_archive.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Local-only bounded archive preflight. No identity, relay or Git process is used.
//! Local snapshot preflight and cancellation-aware read-only restoration.
use std::fs::OpenOptions;
use std::io::Read;
#[cfg(unix)]
Expand All @@ -10,9 +10,15 @@ use buzz_sdk::sandbox_attach::snapshot::{
};
use serde::{Deserialize, Serialize};

mod format;
pub use format::{inspect_archive, ArchivePlan};

/// Local archive refusal; file contents and scanner diagnostics are never included.
#[derive(Debug, thiserror::Error)]
pub enum ArchiveError {
/// Cancellation completed after staging and child cleanup.
#[error("snapshot extraction cancelled")]
Cancelled,
/// Filesystem access failed.
#[error("archive file access failed: {0}")]
Io(#[from] std::io::Error),
Expand Down
Loading
Loading