hdbg / chromimic

A special build of reqwest that can impersonate Chrome/OkHttp/Safari
https://github.com/seanmonstar/reqwest
Apache License 2.0
3 stars 0 forks source link

Error when adding as dependency - Missing boring-imp #2

Open AramaicTextile3 opened 2 months ago

AramaicTextile3 commented 2 months ago

error: no matching package named boring-imp found location searched: registry crates-io required by package chromimic v0.12.1

JIBSIL commented 5 days ago

error: no matching package named boring-imp found location searched: registry crates-io required by package chromimic v0.12.1

I had the same issue. It appears that the user @0x676e67 (now deleted) has deleted their GitHub account and yanked the crates required for this project. Fortunately, Cargo does not allow deletion of crates, and you may download them manually. Here's a list of the requisite crates and their links via crates.io (imp stands for impersonate): hyper_imp v0.14.42 boring-sys-imp v4.9.3 boring-imp v4.9.3 h2_imp v0.5.0 tokio-boring-imp v4.9.3 hyper-boring-imp v4.9.3

To make these work, download each of the crate files and unzip them in some local folder. Then you can refer to them directly by replacing package = "hyper_imp" with path = "./imp/hyper_imp-0.14.42", as an example. Also, you need to remove imp from the library names:

[lib]
name = "boring-imp"
path = "src/lib.rs"

to

[lib]
name = "boring"
path = "src/lib.rs"

and also in the package name of each of the subpackages, as they are not referred to as -imp packages in the individual package config files. You also need to update the version specs of each of the v2.0.0 packages as they won't work on the specified versions, only on the recent v4.9.3 crates. With these changes I was able to get it running smoothly.