pub mod bump;
pub mod parse;
pub use bump::{next_version, validate_format};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CalverDate {
pub year: u32,
pub month: u32,
pub day: u32,
pub iso_week: u32,
pub day_of_week: u32,
}
pub const DEFAULT_FORMAT: &str = "YYYY.MM.PATCH";
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum CalverError {
#[error("calver format must contain the PATCH token")]
NoPatchToken,
#[error("unknown calver format token: {0}")]
UnknownToken(String),
#[error("calver format string is empty")]
EmptyFormat,
}