You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit is relatively major refactoring of the `openssl-sys` crate as well
as the `openssl` crate itself. The end goal here was to support OpenSSL 1.1.0,
and lots of other various tweaks happened along the way. The major new features
are:
* OpenSSL 1.1.0 is supported
* OpenSSL 0.9.8 is no longer supported (aka all OSX users by default)
* All FFI bindings are verified with the `ctest` crate (same way as the `libc`
crate)
* CI matrixes are vastly expanded to include 32/64 of all platforms, more
OpenSSL version coverage, as well as ARM coverage on Linux
* The `c_helpers` module is completely removed along with the `gcc` dependency.
* The `openssl-sys` build script was completely rewritten
* Now uses `OPENSSL_DIR` to find the installation, not include/lib env vars.
* Better error messages for mismatched versions.
* Better error messages for failing to find OpenSSL on a platform (more can be
done here)
* Probing of OpenSSL build-time configuration to inform the API of the `*-sys`
crate.
* Many Cargo features have been removed as they're now enabled by default.
As this is a breaking change to both the `openssl` and `openssl-sys` crates this
will necessitate a major version bump of both. There's still a few more API
questions remaining but let's hash that out on a PR!
Closes#452
mingw-w64 can be easily installed by using [MSYS2](http://msys2.github.io/). Install MSYS2 according to the instructions, and then, from an MSYS2 Shell, install mingw-w64:
63
+
Once a precompiled binary is installed you can configure this crate to find the
64
+
installation via an environment variable:
51
65
52
-
32-bit:
53
-
```bash
54
-
pacman -S mingw-w64-i686-gcc
55
-
```
56
-
57
-
64-bit
58
-
```bash
59
-
pacman -S mingw-w64-x86_64-gcc
66
+
```
67
+
set OPENSSL_DIR=C:\OpenSSL-Win64
60
68
```
61
69
62
-
and then install the mingw-w64 toolchain.
70
+
After that, you're just a `cargo build` away!
63
71
64
-
32-bit:
65
-
```bash
66
-
pacman -S mingw-w64-i686-toolchain
67
-
```
72
+
### Windows GNU (MinGW)
68
73
69
-
64-bit:
70
-
```bash
71
-
pacman -S mingw-w64-x86_64-toolchain
72
-
```
74
+
The easiest way to acquire OpenSSL when working with MinGW is to ensure you're
75
+
using [MSYS2](http://msys2.github.io) and to then execute:
73
76
74
-
Alternatively, install OpenSSL from [here][1]. Cargo will not be able to find OpenSSL if it's
75
-
installed to the default location. You can either copy the `include/openssl`
76
-
directory, `libssl32.dll`, and `libeay32.dll` to locations that Cargo can find
77
-
or pass the location to Cargo via environment variables:
0 commit comments