hostab 0.0.3

Your dev tool to manage /etc/hosts like a pro — written in Rust
/// A single hosts entry
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct Entry {
    pub id: usize,
    pub ip: String,
    pub canonical: String,
    pub aliases: Vec<String>,
    pub comment: Option<String>,
    pub disabled: bool,
    /// Raw line content — preserved for future use
    #[serde(skip)]
    #[allow(dead_code)]
    pub raw: Option<String>,
}

/// A row for display/rendering
#[derive(Debug, Clone, serde::Serialize, utoipa::ToSchema)]
pub struct Row {
    pub ip: String,
    pub host: String,
    pub comment: Option<String>,
    /// The canonical hostname for this IP
    #[serde(skip_serializing_if = "Option::is_none")]
    pub canonical: Option<String>,
    /// Alias hostnames (empty if none)
    pub aliases: Vec<String>,
}