build.rs: fix lalrpop building in direnv
Build and test / check (push) Failing after 38s
Build and test / build (push) Successful in 1m0s
Build and test / test (push) Successful in 1m50s
Build and test / docs (push) Successful in 4m5s

This commit is contained in:
2026-06-21 14:48:16 +09:00
parent 4aad4f0541
commit fb52fcc11e
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -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();
}
+1 -1
View File
@@ -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<Filter, RequestParserError> {