From fb52fcc11e8ecc5bb78260c87c87fccaeda05634 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 21 Jun 2026 14:48:16 +0900 Subject: [PATCH] build.rs: fix lalrpop building in direnv --- build.rs | 11 ++++++----- src/filter.rs | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index ae9320d..250279b 100644 --- a/build.rs +++ b/build.rs @@ -1,8 +1,9 @@ fn main() { - lalrpop::process_root().unwrap(); // let debug_mode = std::env::var("PROFILE").unwrap() == "debug"; - // lalrpop::Configuration::new() - // .emit_comments(debug_mode) - // .process() - // .unwrap(); + + lalrpop::Configuration::new() + // .emit_comments(debug_mode) + // .generate_in_source_tree() + .process() + .unwrap(); } diff --git a/src/filter.rs b/src/filter.rs index 7ec13eb..3be0b46 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -295,7 +295,7 @@ pub(super) fn unescape_string(s: &str) -> String { result } -lalrpop_mod!(filter_grammar, "/filter_grammar.rs"); +lalrpop_mod!(filter_grammar, "/src/filter_grammar.rs"); impl Filter { pub fn parse(input: &str) -> Result {