How to use openssl as a crate in rust on windows

i tried everything if you can find any working solutions it would help me a lot

i tried using mingw with msys2 tried installing openssl with vcpkg but its not recognizing vcpkg anyhow tried using the prebuilt binaries no success there either i am desperate will try anything you guys come up with

Have you tried the MSVC target? Both mingw and msys2 setup GNU environment on its own runtime. Vcpkg on windows installs windows library, not GNU compatible library.

how do i use msvc target i cannot found any working solutions anywhere

How did you install those toolchain? On windows the rustup installs the MSVC target by default.

https://rust-lang.github.io/rustup/installation/windows.html

i did try mingw and msys2 but i also tried the default build with vcpkg its not working if you have any clue or anything i can do to use openssl on windows it would be great, i would love if you could provide some steps i could follow or if you need any info i can do that too.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.