Skip to main content

nook_vault/
lib.rs

1mod auth;
2mod crypto;
3mod manifest;
4mod object;
5
6pub use auth::*;
7pub use crypto::*;
8pub use manifest::*;
9pub use object::*;
10
11pub type Result<T> = std::result::Result<T, NookError>;
12
13#[derive(Debug, thiserror::Error)]
14pub enum NookError {
15    #[error("crypto error: {0}")]
16    Crypto(String),
17    #[error("serialization error: {0}")]
18    Serialization(String),
19    #[error("integrity check failed: {0}")]
20    Integrity(String),
21    #[error("unknown error: {0}")]
22    Other(String),
23}