Skip to main content

Crate fond_core

Crate fond_core 

Source
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§

recipe

Structs§

Cookware
A cookware reference extracted from a recipe.
Recipe
A parsed recipe — the domain-level representation of a .cook file.
RecipeIngredient
An ingredient reference within a recipe.
Step
A single step (instruction) within a recipe.
Timer
A timer reference extracted from a step.

Enums§

DomainError
Domain-level errors for fond.

Functions§

emit_cook
Emit a .cook file from a domain Recipe.
parse_cook
Parse a .cook file’s content into a domain Recipe.
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”).