pub mod crypto;
pub mod platform;
pub mod storage;
pub use crypto::CryptoProvider;
pub use platform::PlatformProvider;
pub use storage::{KvOp, KvStore, KvStoreClone};
use thiserror::Error;
#[derive(Debug, Error)]
pub enum PlatformError {
#[error("storage error: {0}")]
Storage(String),
#[error("crypto error: {0}")]
Crypto(String),
#[error("io error: {0}")]
Io(String),
#[error("{0}")]
Other(String),
}
impl From<std::io::Error> for PlatformError {
fn from(e: std::io::Error) -> Self {
PlatformError::Io(e.to_string())
}
}