- Install target mingw-w64:
brew install mingw-w64 - Add target to rustup:
rustup target add x86_64-pc-windows-gnu - Create
.cargo/config - Add the instructions below to
.cargo/config
[target.x86_64-pc-windows-gnu]
brew install mingw-w64rustup target add x86_64-pc-windows-gnu.cargo/config.cargo/config[target.x86_64-pc-windows-gnu]
| function byteArrayToWordArray(ba) { | |
| var wa = [], | |
| i; | |
| for (i = 0; i < ba.length; i++) { | |
| wa[(i / 4) | 0] |= ba[i] << (24 - 8 * i); | |
| } | |
| return CryptoJS.lib.WordArray.create(wa, ba.length); | |
| } |