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, bundled LLD linker and launcher (~74 MB)
  • 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 are dropped.

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.post2

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.post2
File Interpreter ABI Platform Actions
rustc_bin-1.100.0.post2-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for rustc_bin-1.100.0.post2-py3-none-manylinux_2_17_aarch64.whl
rustc_bin-1.100.0.post2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for rustc_bin-1.100.0.post2-py3-none-macosx_11_0_arm64.whl
rustc_bin-1.100.0.post2-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for rustc_bin-1.100.0.post2-py3-none-macosx_10_9_x86_64.whl

Total release size: 216.6 MB

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

Download URL rustc_bin-1.100.0.post2-py3-none-manylinux_2_17_aarch64.whl
Size 71.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
cb6bae487393e4a6b0a1ecaa181bacbfb88aed822ec54eb275475758c8ebe9b0
BLAKE2b-256 checksum
How to use checksums
02dc730986968ad6e7919f358590e27d6f4d17f0ad1c7fc9852511504af69d7c
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.post2-py3-none-macosx_11_0_arm64.whl

Download URL rustc_bin-1.100.0.post2-py3-none-macosx_11_0_arm64.whl
Size 71.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e3d68a0015d0a1de50859241a19e1fd21b1c38e24ee0b76b8eb0de9626b389c2
BLAKE2b-256 checksum
How to use checksums
27110e5807aad3238c4db2f26f356e8a7cdc92823eb3f60849bb37846be21a60
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.post2-py3-none-macosx_10_9_x86_64.whl

Download URL rustc_bin-1.100.0.post2-py3-none-macosx_10_9_x86_64.whl
Size 72.9 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
841abe53daeeba8fbb7a4c9533ef5b2496cb079990a6ca30eca21e07d23243d4
BLAKE2b-256 checksum
How to use checksums
a89d8b4414b0a0a51026c4a71c02375405d26cdb861b26d579fc5631115fbaa3
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.post2

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