zccache 1.11.1

Local-first compiler cache for C/C++/Rust/Emscripten
Documentation
use crate::core::NormalizedPath;

/// Errors that can occur during fingerprint operations.
#[derive(Debug, thiserror::Error)]
pub enum FingerprintError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

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

    #[error("scan error in {path}: {message}")]
    Scan {
        path: NormalizedPath,
        message: String,
    },

    #[error("no pending data for {path}: run `check` before `mark-success`/`mark-failure`")]
    NoPendingData { path: NormalizedPath },
}

pub type Result<T> = std::result::Result<T, FingerprintError>;