hazine 0.1.0

Runs a DuckDB Quack server for DuckLake on localhost, reached through an SSH tunnel.
Documentation
use std::io;
use std::net::SocketAddr;
use std::path::PathBuf;

/// Why hazine could not start or keep DuckDB running.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Quack must listen on localhost: access is through an SSH tunnel only.
    #[error(
        "{addr} is not a loopback address; hazine serves on localhost only \
         (reach it through an SSH tunnel)"
    )]
    NotLoopback { addr: SocketAddr },

    /// The init file is missing or is not a file.
    #[error("init file {}: {source}", path.display())]
    InitFile { path: PathBuf, source: io::Error },

    /// Another process — perhaps a second hazine — already serves the address.
    #[error("something is already listening on {addr}")]
    AddrInUse { addr: SocketAddr },

    /// The DuckDB CLI could not be started at all.
    #[error("starting {}: {source}", program.display())]
    Spawn { program: PathBuf, source: io::Error },

    /// The DuckDB CLI is older than 2.0, or not DuckDB at all.
    #[error("{} is not DuckDB 2.0 or later (it reports {found:?})", program.display())]
    UnsupportedVersion { program: PathBuf, found: String },

    /// DuckDB kept exiting before Quack was listening.
    #[error("DuckDB exited {count} times in a row before Quack was listening; giving up")]
    GaveUp { count: u32 },

    #[error(transparent)]
    Io(#[from] io::Error),
}