| Crates.io | ingredient |
| lib.rs | ingredient |
| version | 0.3.0 |
| created_at | 2021-02-09 02:56:48.148687+00 |
| updated_at | 2023-04-18 21:46:27.065018+00 |
| description | recipe ingredient parser |
| homepage | |
| repository | https://github.com/nickysemenza/ingredient-parser |
| max_upload_size | |
| id | 352585 |
| size | 64,570 |
This leverages nom to parse ingredient line items from recipes into a common format.
As an example, 1ΒΌ cups / 155.5 grams all-purpose flour, lightly sifted becomes
{
name: "all-purpose flour",
amounts: [
Measure { unit: "cups", value: 1.25 },
Measure { unit: "grams", value: 155.5 }
],
modifier: Some("lightly sifted")
}
More examples listed in the docs