alexliesenfeld / httpmock

HTTP mocking library for Rust.
MIT License
435 stars 40 forks source link

Won't compile after regex 1.9.0 #84

Closed utkarshgupta137 closed 1 year ago

utkarshgupta137 commented 1 year ago
error[E0432]: unresolved import `regex::internal`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/httpmock-0.6.7/src/server/mod.rs:19:12
   |
19 | use regex::internal::Input;
   |            ^^^^^^^^ could not find `internal` in `regex`

See: https://github.com/rust-lang/regex/pull/978

empwilli commented 1 year ago

Can also confirm this issue. In the meantime I used the following to pin the regex dependency version:

[patch.crates-io]
regex = { git = "https://github.com/rust-lang/regex.git", tag = "1.8.4" }
alexliesenfeld commented 1 year ago

Should now be fixed with https://github.com/alexliesenfeld/httpmock/pull/86 and v0.6.8.