From c0b356b025ef93eb3c1378c203858c3a7486f398 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 4 May 2026 19:25:22 +0200 Subject: chore: simplify parser & reduce allocations Signed-off-by: Henry --- crates/parser/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/parser/build.rs') diff --git a/crates/parser/build.rs b/crates/parser/build.rs index d5c6dec..6b3f385 100644 --- a/crates/parser/build.rs +++ b/crates/parser/build.rs @@ -3,7 +3,7 @@ use std::env; fn main() { println!("cargo::rustc-check-cfg=cfg(parallel_parser)"); - if env::var("CARGO_FEATURE_PARALLEL").is_err() { + if env::var_os("CARGO_FEATURE_PARALLEL").is_none() { return; } @@ -11,6 +11,6 @@ fn main() { let os = env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); if !arch.starts_with("wasm") && os != "unknown" && os != "none" { - println!("cargo:rustc-cfg=parallel_parser"); + println!("cargo::rustc-cfg=parallel_parser"); } } -- cgit v1.3.1