arctgz 0.9.0

A next‑generation archive format built with Rust. Super robust, cross‑platform, and designed for speed and safety.
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ArctgzError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),

    #[error("Project already initialized (arctgz.init exists)")]
    AlreadyInitialized,

    #[error("Invalid path: {0}")]
    InvalidPath(String),

    #[error("Path not allowed: {0}")]
    PathNotAllowed(String),

    #[error("Directory not empty: {0}")]
    DirectoryNotEmpty(String),

    #[error("Config validation failed: {0}")]
    ConfigValidation(String),

    #[error("Configuration file not found: {0}")]
    ConfigNotFound(String),

    #[error("Failed to load configuration: {0}")]
    ConfigLoadError(String),

    #[error("Failed to save configuration: {0}")]
    ConfigSaveError(String),

    #[error("Symlink not allowed: {0}")]
    SymlinkNotAllowed(String),

    #[error("Include file not found: {0}")]
    IncludeFileNotFound(String),

    #[error("Manifest not found in archive")]
    ManifestNotFound,

    #[error("Checksum mismatch for file {0}: expected {1}, got {2}")]
    ChecksumMismatch(String, String, String),

    #[error("Extract error: {0}")]
    ExtractError(String),

    #[error("Recipe not found in archive")]
    RecipeNotFound,

    #[error("Recipe validation failed: {0}")]
    RecipeInvalid(String),

    #[error("Recipe execution error: {0}")]
    RecipeExecutionError(String),

    #[error("Verification failed: {0}")]
    VerifyError(String),

    #[error("Signature verification failed: {0}")]
    SignatureError(String),

    #[error("Invalid signing key: {0}")]
    KeyError(String),

    #[error("Delta operation error: {0}")]
    DeltaError(String),

    #[error("Encryption error: {0}")]
    EncryptionError(String),
}