From 8b3aa8e17cc2204fa5ffa9a924cfc8f43c7ebceb Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 5 Jul 2026 17:05:44 -0400 Subject: [PATCH] fix(bf-zv0ef): add required-features to cmap_tokenize benchmark The cmap_tokenize benchmark uses CJK tokenization functions that are behind the 'cjk' feature flag. Added required-features = ["cjk"] to the benchmark configuration in Cargo.toml so cargo check --all-targets passes cleanly. This fixes compilation error: error[E0432]: unresolved import pdftract_core::cmap::tokenize_cjk_bytes (item is gated behind cjk feature). Verification: cargo check --all-targets now passes with no errors. --- crates/pdftract-core/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/pdftract-core/Cargo.toml b/crates/pdftract-core/Cargo.toml index 071b3f6..3665237 100644 --- a/crates/pdftract-core/Cargo.toml +++ b/crates/pdftract-core/Cargo.toml @@ -107,6 +107,7 @@ harness = false [[bench]] name = "cmap_tokenize" harness = false +required-features = ["cjk"] [package.metadata.docs.rs] # Document all public API features except those requiring system libraries.