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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! Recipe, shopping list, pantry and report operations for Cooklang.
//!
//! This crate holds the logic behind CookCLI's commands, with the CLI reduced
//! to argument parsing and output formatting on top of it.
//!
//! Commands take their input as a [`RecipeSource`] or [`ConfigSource`] rather
//! than a path, so an editor can pass an unsaved buffer. They return
//! [`Outcome<T>`], which pairs the result with any [`Diagnostic`]s raised on
//! the way, or a [`CoreError`] when no result could be produced.
pub use ;
pub use ;
pub use CoreError;
pub use ;
pub use ;
pub use Outcome;
pub use ;
/// The `cooklang` crate this library was built against.
///
/// [`parse_recipe`] returns a [`cooklang::Recipe`] and [`PARSER`] is a
/// [`cooklang::CooklangParser`], so those types are part of this crate's public
/// surface. Re-exporting lets consumers name them without adding their own
/// `cooklang` dependency, which could otherwise resolve to a different
/// version and fail to unify.
pub use cooklang;
/// The `cooklang-find` crate this library was built against.
///
/// [`find::get_recipe`] returns a [`cooklang_find::RecipeEntry`], so that type
/// is part of this crate's public surface. Re-exported for the same reason as
/// [`cooklang`] above.
pub use cooklang_find;
pub use ;
/// Convenience alias for core results.
pub type Result<T> = Result;
/// Compiles `README.md`'s example as a doctest, so the crate's front page
/// cannot rot into something that no longer builds.
///
/// Exists only under `cfg(doctest)`, so it is not part of the public API and
/// does not appear in the rendered documentation.
;