1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Library for handling culinary recipes.
//!
//! This crate provides structs representing various components of a culinary
//! recipe, along with utilities for converting them between various formats.
//!
//! ```rust
//! # use sous::Ingredient;
//! # use sous::Recipe;
//! # use sous::MarkdownRenderer;
//! # use sous::Renderer;
//! fn main() {
//! let mut recipe = Recipe::new();
//!
//! recipe.metadata.name = "Test Recipe".to_string();
//! recipe.metadata.author = "Cook Cookerson".to_string();
//! recipe.metadata.servings = 2;
//! recipe.metadata.cook_minutes = 10;
//!
//! recipe.ingredients.push(Ingredient {
//! name: "Ingredient".to_string(),
//! amount: Some(1.0),
//! ..Default::default()
//! });
//! recipe.steps.push("First step".to_string());
//! recipe.steps.push("Second step".to_string());
//!
//! let render = MarkdownRenderer::new();
//! let md = render.render(&recipe);
//! }
//! ```
pub use crateCookbook;
pub use crateSousError;
pub use crateIngredient;
pub use crateMetadata;
pub use crateRecipe;
pub use crateMarkdownRenderer;
pub use crateRenderer;
pub use crateTemplateRenderer;