caretta-sync-core 0.0.2

A local-first application framework for lazy person
Documentation
#[derive(thiserror::Error, Debug)]
pub enum ProtoSerializeError {
    #[error("Duration parse error: {0}")]
    Duration(#[from] prost_types::DurationError),
}

#[derive(thiserror::Error, Debug)]
pub enum ProtoDeserializeError {
    #[error("Missing field: {0}")]
    MissingField(&'static str),
    #[error("Public key parsing error: {0}")]
    IrohPublicKeyParsing(#[from] iroh::KeyParsingError),
    #[error("Ticket Parsing error: {0}")]
    IrohTicketParsing(#[from] iroh_tickets::ParseError),
    #[error("Invalid bytes length error: {0}")]
    SliceTryFrom(#[from] std::array::TryFromSliceError),
    #[error("Int parse error: {0}")]
    IntTryFrom(#[from] std::num::TryFromIntError),
    #[error("Unspecified enum: {0}")]
    EnumUnspecified(&'static str),
}