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.1-py3-none-win_amd64.whl (2.7 MB view details)

Uploaded Python 3 Windows x86-64

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

Uploaded Python 3 Windows x86

cargo_xwinbuild-0.2.1-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.1-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.1-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.1-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.1-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.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9ebad8278a4d91401f4dfe35fd467379f0ed4ad041bf8eb7d483ddfee5439551
MD5 9325a832f8dd0bb062e4516aa542ce02
BLAKE2b-256 3e227dbf5fdd0dd0618ec06fb6d87da27a0a5b82a65f06d123c68e6e7a5d6296

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 704a1bc263b6cba406f296fead8ca84f6adbd423960fc45e9aff65d7dcea861e
MD5 377a2d772cdaa523dfab415ae468ffb5
BLAKE2b-256 cda8784472d29f315d3df30b1f1c8f43b8604ece8586bd0b4bed7149bf2acc88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 2736dbc3944355e8640f751e6e4f64373b10245662b3a8a42d6bc1918b305d22
MD5 1111fb4108903f90611e491b0bf7c770
BLAKE2b-256 72dc678c537e4f671c2ce1baaa20fc0dc5646f286fa93ebc073cf5f9c8b167a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22953b61607967781a95e974e66aa2a1ef09f36d613aeb06c2766e7a4e470bcc
MD5 554ccc9fa42f101e7b60c2408c40cab0
BLAKE2b-256 42f7cee6de29d701c4088ebf4f73b36f1172f5c593d2fa49a4c1bedbdab87e42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4c6b2be22a8833f0ed1c7ffbf4b791a19df665d067531c8d3e8548944c60e0f1
MD5 a845a7f06bf68922f3a7043da6ac4b8b
BLAKE2b-256 66f433c357935c7199c21d25001800f063cf29cad55c1a622b4cb912e51b1dc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cargo_xwinbuild-0.2.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 84274f9bf243d15b71a41c7f8c16d7452b974d1897ee12a282a6016df5ff83d8
MD5 9072ee1622cbe8f5456b60776421be24
BLAKE2b-256 c1f296caa647f6953241cbd0b28ac1bfec11c7bbba651ffa405d0266a89ca82c

See more details on using hashes here.

File details

Details for the file cargo_xwinbuild-0.2.1-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.1-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1ec321faa6e2b18100e55b990c901aa7cb3a3e59acbbdaa09bcc8982cfe32828
MD5 9fe5b3ebab7a24c1b6ae5d4f7137bdba
BLAKE2b-256 5b6fccd4fd277b19a21061a16ddd62f75ab6df30509caeb104adaedcb1f5e7d3

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