Fix stack overflow on Windows that appeared with the update to Regex 1.4.4
@@ -57,12 +57,19 @@ shaper = ["textlayout"]
[build-dependencies]
cc = "1.0.37"
bindgen = "0.57.0"
+
# For enum variant name replacements.
-regex = "1.2.1"
-heck = "0.3.1"
-# Version 1.1.0 causes a stack overflow in the binding generation.
+
+# Regex 1.4.4 causes a stack overflow on Windows.
+# https://github.com/rust-lang/regex/issues/750
+regex = "=1.4.3"
+# Version 1.1.0 also causes a stack overflow in the binding generation (can be
+# removed after updating to regex to >1.4.3).
thread_local = "~1.0.1"
+heck = "0.3.1"
+
+
# for downloading and extracting prebuilt binaries and skia / depot_tools archives:
ureq = "2.0.1"
flate2 = "1.0.7"
