diff --git a/Cargo.lock b/Cargo.lock index dd5922a..1938082 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -556,10 +556,14 @@ dependencies = [ "codesnake", "enum-map", "finl_unicode", + "prettyplease", + "proc-macro2", + "quote", "serde", "serde_yaml", "smallvec", "strum", + "syn", "thiserror 2.0.12", "toml 0.8.23", "tracing", @@ -2375,6 +2379,16 @@ dependencies = [ "termtree", ] +[[package]] +name = "prettyplease" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6837b9e10d61f45f987d50808f83d1ee3d206c66acf650c3e4ae2e1f6ddedf55" +dependencies = [ + "proc-macro2", + "syn", +] + [[package]] name = "proc-macro-hack" version = "0.5.20+deprecated" diff --git a/Cargo.toml b/Cargo.toml index ea30e5a..ab27aac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ axum = { version = "0.7" } camino = { version = "1", features = ["serde1"] } chrono = "0.4" clap = { version = "4.5", features = ["derive"] } -cooklang = { version = "0.17.1", default-features = false, features = ["aisle", "pantry"] } +cooklang = { version = "0.17.1", default-features = false, features = ["aisle", "pantry", "bundled_units"] } cooklang-find = { version = "0.5.0" } cooklang-import = "0.6.0" cooklang-reports = { version = "0.2" } diff --git a/src/util/mod.rs b/src/util/mod.rs index 592d6f9..56a092a 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -51,8 +51,8 @@ use tracing::warn; pub const RECIPE_SCALING_DELIMITER: char = ':'; pub static PARSER: Lazy = Lazy::new(|| { - // Use no extensions but with default converter for basic unit support - CooklangParser::new(Extensions::empty(), Converter::default()) + // Use default converter for basic unit support + CooklangParser::new(Extensions::all(), Converter::default()) }); /// Parse a Recipe from a RecipeEntry with the given scaling factor