feat: Grundgerüst mit Konfiguration, SQLite-Schema und Selbsttest (M2.1)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 16:39:42 +01:00
parent cf6398f61a
commit 3e6148419b
17 changed files with 1176 additions and 2 deletions

View File

@ -0,0 +1,23 @@
use std::path::PathBuf;
/// Fehler, die mehrere Nexus-Crates gemeinsam verwenden.
#[derive(Debug, thiserror::Error)]
pub enum Error {
/// Die Konfiguration fehlt, ist unlesbar oder ungültig.
#[error("Konfiguration: {0}")]
Config(String),
/// Ein Dateizugriff ist fehlgeschlagen.
#[error("Dateizugriff auf {path}: {source}")]
Io {
path: PathBuf,
#[source]
source: std::io::Error,
},
/// Ein Datenbankfehler (Text, damit dieses Crate ohne Datenbank auskommt).
#[error("Datenbank: {0}")]
Db(String),
}
pub type Result<T> = std::result::Result<T, Error>;