# 10 — CRUD w pamięci (In-Memory Repository) ## Zakres * Operacje **Create, Read, Update, Delete** na strukturze domenowej `Task` * Walidacja wejścia (pusty tytuł -> `RepoError::InvalidTitle`) * Zarządzanie stanem i auto-inkrementacją ID w `BTreeMap` (deterministyczna kolejność) ## Zadania (`src/lib.rs`) Zaimplementuj `TaskStore`: 1. `create(&mut self, title: impl Into) -> Result` 2. `get(&self, id: u64) -> Option<&Task>` 3. `list(&self) -> Vec<&Task>` 4. `update_title(&mut self, id: u64, title: impl Into) -> Result` 5. `mark_done(&mut self, id: u64) -> Result` 6. `delete(&mut self, id: u64) -> Result` ## Uruchomienie testów ```bash make test PKG=core10-crud-repository ```