Skip to main content

Prebuilt Rust toolchain

This package provides a prebuilt Rust toolchain (rustc, cargo) for integrating Rust artifacts into Python projects. Installing rustc-bin pulls in the two companion distributions automatically, so users only ever install one package.

A single PyPI wheel would exceed PyPI's default 100 MB per-file upload limit (the full x86_64 Linux toolchain is about 198 MB), and getting that limit raised takes weeks. Splitting the payload into three wheels keeps every upload well below the limit while pip install rustc-bin still installs the whole toolchain:

  • rustc-bin — compiler binaries, standard library and launcher (~64 MB; uses the system linker)
  • rustc-bin-llvm — LLVM runtime library (only where LLVM is not statically linked, ~63 MB)
  • rustc-bin-driver — Rust compiler driver library (~61 MB)

All wheels install into the same rust/ package directory and are merged at install time.

Using the binaries

uvx --from=rustc-bin cargo build
uvx --from=rustc-bin rustc --version

Building the wheels locally

Each part is built separately for a target:

RUST_PART=main RUST_TARGET=x86_64-unknown-linux-gnu \
  WHEEL_TAG=manylinux_2_17_x86_64 GITHUB_REF_NAME=v1.100.0 uv build --wheel

cd packages/rustc-bin-llvm
RUST_PART=llvm RUST_TARGET=x86_64-unknown-linux-gnu \
  WHEEL_TAG=manylinux_2_17_x86_64 GITHUB_REF_NAME=v1.100.0 uv build --wheel

cd ../rustc-bin-driver
RUST_PART=driver RUST_TARGET=x86_64-unknown-linux-gnu \
  WHEEL_TAG=manylinux_2_17_x86_64 GITHUB_REF_NAME=v1.100.0 uv build --wheel

The llvm part is skipped for targets where LLVM is statically linked (i686, musl and Windows); rustc-bin omits that dependency automatically on those targets. The build hook downloads the llvm-tools component at build time to strip every shipped ELF file; the stripper itself is not shipped. Windows PDB debug symbols and the bundled LLD tools are dropped to stay under PyPI's per-file limit — rustc uses the system linker by default.

Publishing

Pushing a v*.*.* tag builds every wheel and publishes it with trusted publishing. PyPI identifies a trusted publisher by repository, workflow and environment and ignores the project name, so each of the three projects is published by its own job with its own environment:

Project Environment
rustc-bin (none)
rustc-bin-llvm pypi-llvm
rustc-bin-driver pypi-driver

If PyPI rejects the rustc-bin-driver publisher again, rename the project in packages/rustc-bin-driver/pyproject.toml (and the matching dependency in hatch_build.py) to compiler-driver-runtime and re-run the release.

rustc-bin is published only after both companions, so its dependencies always exist on PyPI by the time it lands. Re-running a release is safe: uploads use --check-url, which skips files that are already on the index.

Metadata

Release files for rustc-bin 1.100.0.post3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for rustc-bin 1.100.0.post3
File Actions
rustc_bin-1.100.0.post3-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for rustc_bin-1.100.0.post3-py3-none-win_arm64.whl
rustc_bin-1.100.0.post3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for rustc_bin-1.100.0.post3-py3-none-win_amd64.whl
rustc_bin-1.100.0.post3-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for rustc_bin-1.100.0.post3-py3-none-musllinux_1_2_x86_64.whl
rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_x86_64.whl
rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details for rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_i686.whl
rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_aarch64.whl
rustc_bin-1.100.0.post3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for rustc_bin-1.100.0.post3-py3-none-macosx_11_0_arm64.whl
rustc_bin-1.100.0.post3-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for rustc_bin-1.100.0.post3-py3-none-macosx_10_9_x86_64.whl

Total release size: 530.9 MB

Release files / rustc_bin-1.100.0.post3-py3-none-win_arm64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-win_arm64.whl
Size 53.1 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
caff956f1c3f676fee2deebabecfdffa9972c299169ea0a0348aa761b553c3f8
BLAKE2b-256 checksum
How to use checksums
73286797c91ef6bdb49fbb75efadd9bf6c93f7872050e4efd6526426d0bd2d26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-win_amd64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-win_amd64.whl
Size 52.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6b3c17c66b323dff68993e1197c3f5d5f36a951ea6b78cd6ea8026fb88e46d31
BLAKE2b-256 checksum
How to use checksums
2ddfb942f2a1100cbc1c2ae07ed64ee46502d297b9a2635c27f00ca086fd8bd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-musllinux_1_2_x86_64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-musllinux_1_2_x86_64.whl
Size 89.3 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8385ac95049bb454549d5fc6af114c49fe1a919b1f98d15afd8d70fb7a9e7045
BLAKE2b-256 checksum
How to use checksums
23e4788879998445398bd343a7240d811341011dc831415e61c2c6f8571c74f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_x86_64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_x86_64.whl
Size 67.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
573ddbdb46112fbb9d513dfd741b6fcac5d3272e5c2c928e882465c43f4d54b7
BLAKE2b-256 checksum
How to use checksums
60e27a507fc7ae625d8d6c5edddebc16b17a874673cde229ac7dcfa916ed391c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_i686.whl

Download URL rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_i686.whl
Size 66.4 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
1cee61d8c71427bdb5ba64ce903d16d38ac4f01445183f7dc2499c4262b6aa06
BLAKE2b-256 checksum
How to use checksums
a5905e77b6b08780076d4b2ca4868f119c1b45387bb5715387cd38d652bd32e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_aarch64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-manylinux_2_17_aarch64.whl
Size 66.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0969977001876838249a1fc56b717a8a564126ef26c0abb311c94d8bd1f6976e
BLAKE2b-256 checksum
How to use checksums
c1f136dcd147be8060fa0955542e4090006af91f54631561f0c8799a87f621cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-macosx_11_0_arm64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-macosx_11_0_arm64.whl
Size 67.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
69e06f7ce00046d562d00bd97f1b3d9acbe2b7c9c70a01f958c4e011ad79a9b5
BLAKE2b-256 checksum
How to use checksums
d3736156de9dec04d5383e455a912d1798d4ddb73ee78ea8e2eb105a29910b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rustc_bin-1.100.0.post3-py3-none-macosx_10_9_x86_64.whl

Download URL rustc_bin-1.100.0.post3-py3-none-macosx_10_9_x86_64.whl
Size 68.0 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e3b4404913cd66ab4a5bb7211fa85c135415d6cac05aeab2c9981161f9100cfa
BLAKE2b-256 checksum
How to use checksums
19fba64f6d594b617fff78732836cc92b721ec43d792cd9f3e16100eb19a94d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for rustc-bin 1.100.0.post3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page