juhaku / utoipa

Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
Apache License 2.0
2k stars 160 forks source link

Build script should respect the Cargo `http.cainfo` #934

Closed ranger-ross closed 1 month ago

ranger-ross commented 1 month ago

When fetching Swagger UI in the build.rs I think we should configure the reqwest client to respect the Cargo http.cainfo setting. This would be useful as sometimes various security software deployed by companies will use their own CA.

I think this should be a fairly small change and I would be happy to open a PR if you are up for it.

juhaku commented 1 month ago

Yeah, this is probably a good idea. Though should be optional if possible.