Expand description
Shared business logic and services for fond.
This crate contains pure application logic — orchestration, validation, and transformations — with no I/O. Storage and network access are provided via trait implementations in downstream crates.
Modules§
Structs§
- Cookware
- A cookware reference extracted from a recipe.
- Recipe
- A parsed recipe — the domain-level representation of a
.cookfile. - Recipe
Ingredient - An ingredient reference within a recipe.
- Step
- A single step (instruction) within a recipe.
- Timer
- A timer reference extracted from a step.
Enums§
- Domain
Error - Domain-level errors for fond.
Functions§
- emit_
cook - Emit a
.cookfile from a domainRecipe. - parse_
cook - Parse a
.cookfile’s content into a domainRecipe. - slugify
- Generate a URL-friendly slug from a recipe title.
- title_
from_ stem - Derive a title from a filename stem (e.g., “chicken-adobo” → “Chicken Adobo”).