nix-nar 0.4.0

Library to manipulate Nix Archive (nar) files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

#[derive(Debug, Error)]
#[non_exhaustive]
pub enum NarError {
    #[error("IO error: {0}")]
    IoError(#[from] std::io::Error),
    #[error("Parse error: {0}")]
    ParseError(String),
    #[error("API error: {0}")]
    ApiError(String),
    #[error("Pack error: {0}")]
    PackError(String),
    #[error("Unpack error: {0}")]
    UnpackError(String),
    #[error("UTF8 path error: {0}")]
    Utf8PathError(String),
}