Expand description
cooklang-rs
helper crate for the file system.
Utilities to deal with referencing recipe, images and data related to recipes that are in other files.
It implements an index into the file system to efficiently resolve recipes
from a path. The index can be lazy or eager. Both created with
new_index
.
Structs§
- DirEntry
- FsIndex
- Index of a directory for cooklang recipes
- FsIndex
Builder - Image
- Image
Indexes - Lazy
FsIndex - Lazy index of a directory for cooklang recipes
- NonUtf8
- NotRecipe
- Recipe
Content - Recipe
Entry
Enums§
Constants§
- IMAGE_
EXTENSIONS - Valid image extensions
Functions§
- all_
recipes - Get all recipes from a path with a depth limit
- check_
recipe_ images - Check that all images for a recipe actually can reference it.
- new_
index - recipe_
images - Get a list of the images of the recipe
- walk_
dir - Walks a single directory retrieving recipes and other directories