omjadas / hudsucker

Intercepting HTTP/S proxy
https://crates.io/crates/hudsucker
Apache License 2.0
205 stars 34 forks source link

Add 'vendored' feature for openssl package to fix building in GitHub Actions #73

Closed sanket143 closed 1 year ago

sanket143 commented 1 year ago

Issue

I have a project which uses hudsucker, I was trying to build it in GitHub actions for Apple M1 OS but was failing on openssl. It is mentioned in the openssl docs to use

https://docs.rs/openssl/latest/openssl/#vendored

openssl = { version = "0.10", features = ["vendored"] }

as the dependency. I add "vendored" features and that fixed the issue.

omjadas commented 1 year ago

If you want openssl to be vendored, I would recommend adding it as a direct dependency of your project and enabling the vendored feature.

https://doc.rust-lang.org/cargo/reference/features.html#feature-unification

sanket143 commented 1 year ago

It worked thanks