Skip to main content

Cross compile Cargo project to Windows msvc target with ease

Project description

cargo-xwinbuild

CI Crates.io docs.rs PyPI

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

  1. Install LLVM, on macOS: brew install llvm
  2. Install Rust Windows msvc target via rustup, for example, rustup target add x86_64-pc-windows-msvc
  3. 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


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

cargo_xwinbuild-0.2.3-py3-none-win_amd64.whl (2.7 MB view details)

Uploaded Python 3 Windows x86-64

cargo_xwinbuild-0.2.3-py3-none-win32.whl (2.5 MB view details)

Uploaded Python 3 Windows x86

cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.5 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.5+ x86-64

cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (2.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.5+ i686

cargo_xwinbuild-0.2.3-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (5.4 MB view details)

Uploaded Python 3 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e837b2df78872aa4a95738c647ac60da6c9569f507fbd5dd8290d17a0f856ff1
MD5 9278eda66930a99d0cd3c639120c547b
BLAKE2b-256 5f2e09181d86bde8de29c4e712d69e2ab892472f257b69759d851e2d80d1195b

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-win32.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-win32.whl
Algorithm Hash digest
SHA256 05730a9cf6926e7762da72e59687afa790e83305da9243f1fc9f44b3c06b3d80
MD5 0acd5c8ccd2dc3929e2543bcf932f65f
BLAKE2b-256 f279e08a8bc7e3e0ac876c89545413a92b444983d75d1780d878710a9b009cab

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 be775e254475dd8185398c6a6c2490bcb01a975ff14d381223f0f48bc34f57db
MD5 eb53ce39c16f43ec5e1f0217c9177216
BLAKE2b-256 0fcfa3665eece6cbeb0b75b0612f77a17e738e0b1a63d8b273002474de3736ab

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8d4131f9e7ec0556a2265a2038fdb2ca4ca50bf1e8d7e00b187c598d2e13f6a9
MD5 d92a58b7062108e44c1dbd5bd5d1206a
BLAKE2b-256 ae5ebfb858870fdbdd512c06b384c7eef8783b28457f086b4bfba6be64310c56

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 af7ef2ea1da730dda64788b6d9f495eae7442004b1dc06d0797cab33c1d989e5
MD5 e0fe20944296a15d5c96d393f659e4b0
BLAKE2b-256 9637d7ea9d3d54a22bfc59e1d69b4edea3c16a84bed87d436321bb688b259df5

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 0d1b0b10ece67e70631a07261edb3026f230abbcf5f59ddc5009e1280776f833
MD5 f2d35badf41ebbd69d35b3611769ce44
BLAKE2b-256 27b6b103e82c9a2c3920b8cc4ede63448aea0bb8be1e7a519bf8a9a8aedce3a5

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.3-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.3-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a3a00b1ae3448dbd6b060a58e9f8f5aa144f1abfb23d82ae59ad177e5109ad4c
MD5 7d4d1ce38f37d129a20d9cefcc0b505e
BLAKE2b-256 54f30991656dc0896c8685712b70e9a55797c60ae251f0581c4cd756d4a5e94f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page