Cross compile Cargo project to Windows msvc target with ease
Project description
cargo-xwinbuild
Cross compile Cargo project to Windows msvc target with ease. (LLVM installation required.)
By using this software you are consented to accept the license at https://go.microsoft.com/fwlink/?LinkId=2086102
Installation
cargo install cargo-xwinbuild
You can also install it using pip:
pip install cargo-xwinbuild
Usage
- Install LLVM, on macOS:
brew install llvm
- Install Rust Windows msvc target via rustup, for example,
rustup target add x86_64-pc-windows-msvc
- Run
cargo xwinbuild
, for example,cargo xwinbuild --target x86_64-pc-windows-msvc
Customization
The Microsoft CRT and Windows SDK can be customized using the following environment variables or CLI options.
Environment Variable | CLI option | Description |
---|---|---|
XWIN_ARCH |
--xwin-arch |
The architectures to include, defaults to x86_64,aarch64 , possible values: x86, x86_64, aarch, aarch64 |
XWIN_VARIANT |
--xwin-variant |
The variants to include, defaults to desktop , possible values: desktop, onecore, spectre |
XWIN_VERSION |
--xwin-version |
The version to retrieve, defaults to 16, can either be a major version of 15 or 16, or a <major>.<minor> version |
XWIN_CACHE_DIR |
--xwin-cache-dir |
xwin cache directory to put CRT and SDK files |
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e31e9896b661bf28ce7bb85fdac00a53810cb9892c4afb65842c2a0f462efd |
|
MD5 | 4b35a13bb18566955ce3cb8e584ca090 |
|
BLAKE2b-256 | 7a1c3f91528155bbfdf2772b83fd7d6fd5ba216c79a11d4878a10ff799daeb7a |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101733ed12967a17c72a8bac38b6c6fb3ca583c28e1a7eccdad119e0b899a3d1 |
|
MD5 | 8907cde1649dda202cc1167115cfa0c1 |
|
BLAKE2b-256 | 01ff6664862536e3217f9c3f1219f376fb5ebf59069946a408a772f89c395ad4 |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e0222eba729a67ea10a8bb75bb4c60a537961f592c6fed7c86152a6d18748b9 |
|
MD5 | 2cc203440d56f01fb846217edd72ca1e |
|
BLAKE2b-256 | 81a64e896c70d40507bc18a0ea45189b2aabd94f4408f24448d5e9f06f5e1066 |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da872d1521eb6fefa151fb3c778a2d4f85aa1986d9c7c97dcc077e3e26f112ca |
|
MD5 | 27605fd05aaa147c99b13a610ae463b6 |
|
BLAKE2b-256 | dd40f44806b87f275250f2a983c3f4de210ff1f85768944151d81f616ad19d76 |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1815206765eba90be7e583b9ce2f7c1dc955c47d928fcd156854a016c40271 |
|
MD5 | ee1b78aa8d9e8c006d2480f848f03e7a |
|
BLAKE2b-256 | 848874010511b4c34d4f3e8de64d154dce6e934c68ab6b7ef720e9ea86869a63 |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6994d9db5c572a67a07317a217ab61101e31b56b2f340947a422741a545d67ea |
|
MD5 | f2886a0405ca23169b072bf79363988a |
|
BLAKE2b-256 | 99de03c3fca79c9b1344938283c35577afe77e11bb95775fe78f6119aefbbea2 |
Close
Hashes for cargo_xwinbuild-0.2.2-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e09e310fee953216b29ae29293b98dccdbfa0d181d53f780b1489ecb070814c |
|
MD5 | 33325977d5dcebbb8bf4723f8a3f945d |
|
BLAKE2b-256 | 72d9e54d922a03f0dfc3e84fa1dc3b5059328181c969fe2da5f481a73f7819a5 |