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
Copy file name to clipboardExpand all lines: README.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,16 @@ your own Rust project, you can install it using `cargo`:
28
28
cargo install rsmgclient
29
29
```
30
30
31
-
NOTE: The default OpenSSL path on Windows is `C:\Program Files\OpenSSL-Win64\lib`,
32
-
if you would like to change that please provide `OPENSSL_LIB_DIR` env variable.
31
+
**Windows Users**: If you encounter OpenSSL-related build issues, you can install OpenSSL via vcpkg:
32
+
```bash
33
+
vcpkg install openssl:x64-windows-static
34
+
```
35
+
Then set the environment variables:
36
+
```bash
37
+
set OPENSSL_LIB_DIR=C:\vcpkg\installed\x64-windows-static\lib
38
+
set OPENSSL_INCLUDE_DIR=C:\vcpkg\installed\x64-windows-static\include
39
+
set OPENSSL_STATIC=1
40
+
```
33
41
34
42
### Building from Source
35
43
@@ -51,15 +59,14 @@ cargo build
51
59
cargo test
52
60
```
53
61
54
-
On MacOS, the build will try to detect OpenSSL by using MacPorts or Homebrew.
62
+
On MacOS, the build will automatically detect OpenSSL using MacPorts or Homebrew.
63
+
64
+
On Windows, the build supports multiple OpenSSL configurations:
65
+
-**Recommended**: The build will automatically use vcpkg to install OpenSSL if available
66
+
-**Manual**: You can provide custom OpenSSL paths using `OPENSSL_LIB_DIR` and `OPENSSL_INCLUDE_DIR` environment variables
67
+
-**Default**: Falls back to `C:\Program Files\OpenSSL-Win64\` if no custom paths are provided
55
68
56
-
On Windows, `bindgen` requires `libclang` which is a part of LLVM. If LLVM is
57
-
not already installed just go to the [LLVM
58
-
download](https://releases.llvm.org/download.html) page, download and install
59
-
`LLVM.exe` file (select the option to put LLVM on the PATH). In addition,
60
-
default OpenSSL path is `C:\Program Files\OpenSSL-Win64\lib`, if you would like
61
-
to change that please provide `OPENSSL_LIB_DIR` env variable during the build
62
-
phase.
69
+
`bindgen` requires `libclang` which is part of LLVM. On Windows, if LLVM is not installed, download it from the [LLVM download page](https://releases.llvm.org/download.html) and install the `LLVM.exe` file (make sure to select the option to add LLVM to PATH).
0 commit comments