Skip to content

About

Canonical Cooklang parser in Rust

Topics

Resources

Stars

127 stars

Watchers

5 watching

Forks

Repository files navigation

cooklang-rs

crates.io docs.rs license

Cooklang parser in rust with opt-in extensions.

All regular cooklang files parse as the same recipe, the extensions are a superset of the original cooklang format. Also, the extensions can be turned off, so the parser can be used for regular cooklang if you don't like them.

You can see a detailed list of all extensions explained here.

The parser also includes:

  • Rich error report with annotated code spans. (like this one)
  • Unit conversion.
  • Recipe scaling.
  • A parser for cooklang aisle configuration file.

This parser powers CookCLI, the Cooklang playground, and the Cook mobile apps and desktop editor, which share recipes through Cook Cloud sync.

Releasing

A release bumps the version in Cargo.toml, bindings/Cargo.toml and ingredient-parser/Cargo.toml, plus the cooklang dependency version in ingredient-parser/Cargo.toml and the cooklang-ingredient-parser = { version = ... } requirement in bindings/Cargo.toml. It then updates Cargo.lock and CHANGELOG.md.

About

Canonical Cooklang parser in Rust

Topics

Resources

Stars

127 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages