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§

filter
recipe

Structs§

Cookware
A cookware reference extracted from a recipe.
Recipe
A parsed recipe — the domain-level representation of a .cook file.
RecipeFilter
Filters for searching and listing recipes.
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.
escape_fts5_query
Escape a user-provided search string for safe use in FTS5 MATCH.
parse_cook
Parse a .cook file’s content into a domain Recipe.
parse_time_minutes
Parse a human-readable time string into minutes.
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”).
update_tags_in_cook_source
Update the tags: line in raw .cook file content.