Rust cross-compilation skill. An agent skill from mohitmishra786/low-level-dev-skills.

MITAuto-check passedDevOps & Cloud

Install Rust Cross

skills CLI
$ npx skills add mohitmishra786/low-level-dev-skills --skill rust-cross -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitmishra786/low-level-dev-skills rust-cross --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rust/rust-cross .claude/skills/rust-cross && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rust-cross
GitHub stars
253
Token cost
~1.4k tokens
SKILL.md length
260 words
Files
2 (incl. references)
Skills in repo
138
Repo updated
First seen
Licence
MIT

At a glance

Rust cross-compilation skill. An agent skill from mohitmishra786/low-level-dev-skills.

  • Works in 7 steps: Add a rustup target → Common target triples → cross tool (Docker-based, easiest) → …
  • Building Rust binaries for a different target architecture
  • SKILL.md covers Purpose, Triggers, Workflow and Related skills
  • Calls cargo; reaches ziglang.org

What it does

Rust Cross is an agent skill from mohitmishra786/low-level-dev-skills. Rust cross-compilation skill. Use when building Rust binaries for a different target architecture or OS, using cross or cargo-zigbuild for hermetic cross-compilation, configuring .cargo/config.toml for cross targets, or targeting embedded and bare-metal systems. Activates on queries about Rust cross-compilation, rustup targets, cross tool, cargo-zigbuild, aarch64-unknown-linux-gnu, thumbv7m-none-eabi, or building for embedded.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/cross-targets.md`).

It sits in DevOps & Cloud. It works with Rust, Linux, Docker and WebAssembly. The repository describes itself as: A curated suite of AI agent skills for systems and low-level programming with C/C++, Rust, and Zig toolchains, covering compilers, debuggers, profilers, build systems…. The licence is MIT.

When your agent uses it

  • Building Rust binaries for a different target architecture
  • Cargo-zigbuild for hermetic cross-compilation
  • Configuring .cargo/config.toml for cross targets
  • Targeting embedded and bare-metal systems

Example prompts

  • “/rust-cross”

Requirements

  • Docker

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Add a rustup target
  2. Common target triples
  3. cross tool (Docker-based, easiest)
  4. cargo-zigbuild (zero-setup, uses zig cc)
  5. .cargo/config.toml for cross targets
  6. Static binaries with musl
  7. Embedded bare-metal (#[no_std])

What it can do on your machine

Read from SKILL.md and the folder at commit bdc5847. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ziglang.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rust Cross loads about 1.4k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 110 tokens; SKILL.md has 260 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitmishra786/low-level-dev-skills at commit bdc5847, republished under its MIT licence (© mohitmishra786). 260 words, ~1,450 tokens.

Download SKILL.mdSave it as .claude/skills/rust-cross/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
rust-cross
description
Rust cross-compilation skill. Use when building Rust binaries for a different target architecture or OS, using cross or cargo-zigbuild for hermetic cross-compilation, configuring .cargo/config.toml for cross targets, or targeting embedded and bare-metal systems. Activates on queries about Rust cross-compilation, rustup targets, cross tool, cargo-zigbuild, aarch64-unknown-linux-gnu, thumbv7m-none-eabi, or building for embedded.

Rust Cross-Compilation

Purpose

Guide agents through Rust cross-compilation: adding rustup targets, using cross for hermetic Docker-based cross-builds, cargo-zigbuild for zero-setup cross-compilation, .cargo/config.toml configuration, and embedded bare-metal targets.

Triggers

  • "How do I cross-compile Rust for ARM/aarch64?"
  • "How do I build a Rust binary for a different OS?"
  • "How do I use the cross tool for Rust cross-compilation?"
  • "How do I build Rust for embedded (no_std) targets?"
  • "How do I use cargo-zigbuild?"
  • "My cross-compiled Rust binary won't run on the target"

Workflow

1. Add a rustup target
bash
# List installed targets
rustup target list --installed

# List all available targets
rustup target list

# Add a target
rustup target add aarch64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-musl   # static Linux
rustup target add wasm32-unknown-unknown       # WASM
rustup target add thumbv7m-none-eabi          # Cortex-M

# Build for target
cargo build --target aarch64-unknown-linux-gnu --release
2. Common target triples
TargetUse case
x86_64-unknown-linux-gnuLinux x86-64 (glibc)
x86_64-unknown-linux-muslLinux x86-64 (musl, static)
aarch64-unknown-linux-gnuARM64 Linux (Raspberry Pi 4, AWS Graviton)
aarch64-unknown-linux-muslARM64 Linux static
x86_64-pc-windows-gnuWindows x86-64 (MinGW)
x86_64-pc-windows-msvcWindows x86-64 (MSVC)
x86_64-apple-darwinmacOS x86-64
aarch64-apple-darwinmacOS Apple Silicon
wasm32-unknown-unknownWASM (browser)
wasm32-wasiWASM with WASI
thumbv7m-none-eabiCortex-M3 bare metal
thumbv7em-none-eabihfCortex-M4/M7 with FPU
riscv32imac-unknown-none-elfRISC-V 32-bit bare metal
3. cross tool (Docker-based, easiest)

cross uses pre-built Docker images with the correct cross-toolchain:

bash
# Install
cargo install cross

# Build (drop-in replacement for cargo)
cross build --target aarch64-unknown-linux-gnu --release
cross test --target aarch64-unknown-linux-gnu

# Cross.toml — project configuration
toml
# Cross.toml
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
pre-build = [
    "apt-get update && apt-get install -y libssl-dev:arm64"
]

[build.env]
passthrough = ["PKG_CONFIG_PATH", "OPENSSL_DIR"]
4. cargo-zigbuild (zero-setup, uses zig cc)

zig cc ships a complete C cross-toolchain — no system cross-compiler needed:

bash
# Install
cargo install cargo-zigbuild
# Also needs zig installed: https://ziglang.org/download/

# Build (no Docker, no system cross-compiler)
cargo zigbuild --target aarch64-unknown-linux-gnu --release
cargo zigbuild --target x86_64-unknown-linux-musl --release

# Target with glibc version (important for compatibility)
cargo zigbuild --target aarch64-unknown-linux-gnu.2.17 --release
# This builds against glibc 2.17 (very compatible)

# Windows from Linux/macOS
cargo zigbuild --target x86_64-pc-windows-gnu --release

cargo-zigbuild advantages over cross:

  • No Docker required
  • Faster (no container startup)
  • Works for most targets out of the box
  • Supports precise glibc version targeting
5. .cargo/config.toml for cross targets
toml
# .cargo/config.toml

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"    # System cross-linker
# or with zig:
# linker = "zig"
# rustflags = ["-C", "link-arg=cc", "-C", "link-arg=-target", "-C", "link-arg=aarch64-linux-gnu"]

[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
rustflags = ["-C", "target-feature=+crt-static"]

[target.wasm32-unknown-unknown]
runner = "wasmtime"    # Run WASM tests with wasmtime

[target.thumbv7m-none-eabi]
runner = "qemu-arm -cpu cortex-m3"
6. Static binaries with musl
bash
# Add musl target
rustup target add x86_64-unknown-linux-musl

# Build statically linked binary
cargo build --target x86_64-unknown-linux-musl --release

# Verify it's static
file target/x86_64-unknown-linux-musl/release/myapp
# → ELF 64-bit, statically linked, not stripped

# Or with cargo-zigbuild (easier musl)
cargo zigbuild --target x86_64-unknown-linux-musl --release
7. Embedded bare-metal (#[no_std])
toml
# .cargo/config.toml
[build]
target = "thumbv7em-none-eabihf"   # Set default target

[target.'cfg(target_arch = "arm")']
runner = "probe-run --chip STM32F411CE"
rust
// src/main.rs
#![no_std]
#![no_main]

use core::panic::PanicInfo;

#[cortex_m_rt::entry]
fn main() -> ! {
    loop {}
}

#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
    loop {}
}
toml
# Cargo.toml
[dependencies]
cortex-m = "0.7"
cortex-m-rt = "0.7"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
bash
cargo build --release  # Uses default target from .cargo/config.toml

For target triple reference and embedded setup details, see references/.

  • Use skills/rust/rustc-basics for compiler and profile configuration
  • Use skills/compilers/cross-gcc for the underlying cross-compiler setup
  • Use skills/zig/zig-cross for Zig's native cross-compilation approach
  • Use skills/build-systems/cmake when Rust is part of a CMake cross-build

© mohitmishra786, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/rust/rust-cross of mohitmishra786/low-level-dev-skills.

  • SKILL.md
  • references/cross-targets.md

Open the folder on GitHubat commit bdc5847

Compare with similar skills

Rust Cross next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rust Cross compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust Cross this skillmohitmishra786/low-level-dev-skills253—~1.4kAutomated safety check: PassMIT
Fungienbop/fungi132—~2.9kAutomated safety check: PassApache-2.0
Vuiovuiodev/vuio172—~1.3kAutomated safety check: PassApache-2.0
Frb Dockerfzyzcjy/flutter_rust_bridge5.4k—~914Automated safety check: PassMIT
Docker Buildx Stale Rust Binarydivinevideo/divine-mobile266—~874Automated safety check: PassMPL-2.0
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0

Similar skills

  • Fungi

    enbop/fungi

    Install, configure, and operate the Fungi CLI across devices.

    132 GitHub stars~2.9k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Vuio

    vuiodev/vuio

    Browse, search and cast a VuIO media library, build playlists, and control DLNA, Chromecast and AirPlay devices on the local network.

    172 GitHub stars~1.3k tokensUpdated 16 days ago
    DevOps & CloudAuto-check passed
  • Frb Docker

    fzyzcjy/flutter_rust_bridge

    A skill your agent uses for ordinary flutterrustbridge Docker/devcontainer setup, local image usage, and Apple Silicon containers; route image upgrades and publishing to frb-upgrade-docker.

    5.4k GitHub stars~914 tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Docker Buildx Stale Rust Binary

    divinevideo/divine-mobile

    Fix deployed Rust binaries not reflecting code changes when using docker buildx.

    266 GitHub stars~874 tokensUpdated today
    DevOps & CloudAuto-check passed
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed

More from mohitmishra786/low-level-dev-skills

All 138 skills in this repo
  • ARM and AArch64 Assembly

    mohitmishra786/low-level-dev-skills

    Guides reading and writing AArch64 and ARM Thumb assembly: compiler output, inline asm, registers, the AAPCS calling convention and NEON or SVE basics.

    253 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • RISC-V Assembly Guide

    mohitmishra786/low-level-dev-skills

    Reference for RISC-V assembly on RV32 and RV64: register names and calling convention, extension naming, GCC and Clang inline asm, and QEMU with GDB debugging.

    253 GitHub stars~1.8k tokensUpdated 3 mo ago
    Auto-check passed
  • x86-64 Assembly Reference

    mohitmishra786/low-level-dev-skills

    Explains x86-64 registers, the System V AMD64 calling convention, and how to read compiler-generated or inline assembly.

    253 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Bazel for C and C++

    mohitmishra786/low-level-dev-skills

    Guides your agent through Bazel for C/C++ projects: BUILD files, Bzlmod dependencies, toolchain registration, remote execution, dependency queries and sandbox debugging.

    253 GitHub stars~1.5k tokensUpdated 3 mo ago
    Auto-check passed
  • Binary Hardening

    mohitmishra786/low-level-dev-skills

    Binary hardening skill for security-hardened C/C++ builds. An agent skill from mohitmishra786/low-level-dev-skills.

    253 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed
  • Binutils

    mohitmishra786/low-level-dev-skills

    GNU binutils skill for binary manipulation and analysis. An agent skill from mohitmishra786/low-level-dev-skills.

    253 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Rust Cross

What does Rust Cross do?

Rust cross-compilation skill. An agent skill from mohitmishra786/low-level-dev-skills. Rust Cross is an agent skill from mohitmishra786/low-level-dev-skills. Rust cross-compilation skill.

When should I use Rust Cross?

Rust Cross fits situations like: building Rust binaries for a different target architecture; cargo-zigbuild for hermetic cross-compilation; configuring .cargo/config.toml for cross targets; targeting embedded and bare-metal systems.

How do I install Rust Cross in Claude Code?

Run `npx skills add mohitmishra786/low-level-dev-skills --skill rust-cross -a claude-code`. Or copy the skill folder (skills/rust/rust-cross in mohitmishra786/low-level-dev-skills) into .claude/skills/rust-cross in your project. Claude Code loads it when a task matches its description.

How do I install Rust Cross in Codex?

Run `npx skills add mohitmishra786/low-level-dev-skills --skill rust-cross -a codex`. Or copy the skill folder (skills/rust/rust-cross in mohitmishra786/low-level-dev-skills) into .agents/skills/rust-cross in your project. Codex loads it when a task matches its description.

Can I use Rust Cross in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitmishra786/low-level-dev-skills --skill rust-cross -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-cross, .gemini/skills/rust-cross, .github/skills/rust-cross and .opencode/skills/rust-cross in your project.

What does Rust Cross need to run?

Going by SKILL.md and its folder, Rust Cross needs the command-line tools its instructions call (cargo). Our summary lists: Docker.

Does Rust Cross access the network?

SKILL.md names 1 domain. In commands or code: ziglang.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Rust Cross safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rust Cross use?

Rust Cross is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rust Cross use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Rust Cross?

Skills that share tags, products or a category with Rust Cross: Fungi (enbop/fungi, 132 stars), Vuio (vuiodev/vuio, 172 stars), Frb Docker (fzyzcjy/flutter_rust_bridge, 5.4k stars) and Docker Buildx Stale Rust Binary (divinevideo/divine-mobile, 266 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust Cross?

mohitmishra786 (a GitHub user) maintains it in mohitmishra786/low-level-dev-skills, which has 253 GitHub stars. The repository holds 138 skills in this directory. The repository was last updated on June 27, 2026.

Source: mohitmishra786/low-level-dev-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.