From a28c68a4fc5f9af5884b09043799e6a7912cca72 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Wed, 6 Mar 2024 12:05:42 +0100 Subject: [PATCH] fix(server): enable `regex` crate `unicode-perl` feature Enable the `unicode-perl` feature flag on `regex` crate dependency in `neqo-server` crate. The following regex makes use of the feature: ``` rust Regex::new(r"GET +/(\S+)(?:\r)?\n").unwrap() ``` Without the feature, the QUIC Interop tests panic with: ``` server | thread 'main' panicked at neqo-server/src/old_https.rs:140:49: server | called `Result::unwrap()` on an `Err` value: Syntax( server | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server | regex parse error: server | GET +/(\S+)(?:\r)?\n server | ^^ server | error: Unicode-aware Perl class not found (make sure the unicode-perl feature is enabled) server | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server | ) ``` --- neqo-server/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neqo-server/Cargo.toml b/neqo-server/Cargo.toml index 7e6a9f966c..203742fa06 100644 --- a/neqo-server/Cargo.toml +++ b/neqo-server/Cargo.toml @@ -23,5 +23,5 @@ neqo-http3 = { path = "./../neqo-http3" } neqo-qpack = { path = "./../neqo-qpack" } neqo-transport = { path = "./../neqo-transport" } qlog = { version = "0.12", default-features = false } -regex = { version = "1.9", default-features = false } +regex = { version = "1.9", default-features = false, features = ["unicode-perl"] } tokio = { version = "1", default-features = false, features = ["net", "time", "macros", "rt", "rt-multi-thread"] }