Metadata-Version: 2.5
Name: rustc-bin
Version: 1.100.0.post1
Summary: Prebuilt Rust toolchain
Project-URL: Repository, https://github.com/Baba01hacker666/rust-bin
Author: baba01hacker
License-Expression: MIT
License-File: LICENSE
Keywords: binary,cargo,packaging,prebuilt,rust,rustc,toolchain
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Rust
Requires-Python: >=3.6
Requires-Dist: rustc-bin-driver==1.100.0.post1
Requires-Dist: rustc-bin-lld==1.100.0.post1
Requires-Dist: rustc-bin-llvm==1.100.0.post1
Description-Content-Type: text/markdown

# Prebuilt Rust toolchain

This package provides a prebuilt Rust toolchain (rustc, cargo) for integrating
Rust artifacts into Python projects.

Rust's compiler runtime is too large for a single PyPI wheel, so it is split
into four distributions:

- `rustc-bin` — compiler binaries, standard library and launcher
- `rustc-bin-llvm` — LLVM runtime library (only where LLVM is not statically linked)
- `rustc-bin-driver` — Rust compiler driver library
- `rustc-bin-lld` — bundled LLD linker tools

Installing `rustc-bin` pulls in the others automatically.

## 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 packages/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

cd ../rustc-bin-lld
RUST_PART=lld 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).