| Crates.io | yy |
| lib.rs | yy |
| version | 0.1.1 |
| created_at | 2026-01-15 12:28:05.306224+00 |
| updated_at | 2026-01-15 12:33:25.706669+00 |
| description | Helper CLI to create Zig-based cross-linker wrappers and Cargo config for cross-compiling Rust from Windows to Linux |
| homepage | |
| repository | https://git.sr.ht/~hkl/yy |
| max_upload_size | |
| id | 2045468 |
| size | 63,452 |
yy helps you generate simple Zig wrapper scripts (zig-<target>.cmd / .ps1) and a Cargo config.toml snippet so you can cross-compile Rust projects from Windows using Zig as a linker/sysroot.
PATH: https://ziglang.org/downloadrustup target add x86_64-unknown-linux-musl
PATH (or into C:\tools\zig-cross\bin):# generate cmd wrappers in current dir
cargo run --release -- generate x86_64-unknown-linux-musl --out C:\tools\zig-cross\bin --ps
%USERPROFILE%\.cargo\config.toml):cargo run --release -- install-config x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
generate <target>: create zig-<target>.cmd and zig-ar.cmd (optionally PowerShell .ps1 wrappers with --ps).install-config <target>: append a [target.<target>] section to %USERPROFILE%\.cargo\config.toml with proper linker and ar (and recommended rustflags for musl).check-zig: verify whether zig is available on PATH.Cargo.toml metadata (name = "yy", description, license, repository) and ensure README.md is present.cargo login with your API token.cargo publish --allow-dirty (or ensure the repo is clean) to publish the crate.zig.exe is not found, add Zig's bin folder to PATH.*-musl, static linking (rustflags = ["-C", "target-feature=+crt-static"]) helps avoid needing glibc on the target.