rust-cross

rust-cross is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 98 tokens per session (1,740 once invoked), scanned A, original, MIT.

A guide to building Rust programs for a different processor architecture or operating system than the one running the build. This is called cross-compilation.

In plain words
What is it for?
Use it to target ARM, aarch64, WebAssembly, Linux variants, embedded systems, or other platforms with rustup, cross, cargo-zigbuild, and Cargo configuration.
Why use it?
It helps avoid toolchain, linker, and target-configuration problems when software must run on another machine or embedded device.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to target ARM, aarch64, WebAssembly, Linux variants, embedded systems, or other platforms with rustup, cross, cargo-zigbuild, and Cargo configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/rust-cross
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill rust-cross
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-cross

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/rust-cross/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/rust-cross)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/rust-cross"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/rust-cross/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-cross

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/rust-cross"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/rust-cross.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,740 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01740
Opus 5.5 $0.00039 $0.00696
Sonnet 5.5 $0.00020 $0.00348
Haiku 4.5 $0.00010 $0.00174

Measured 14d ago against content hash bab82f7663d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-cross scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rust/rust-cross/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

# 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

Target Use case
x86_64-unknown-linux-gnu Linux x86-64 (glibc)
x86_64-unknown-linux-musl Linux x86-64 (musl, static)
aarch64-unknown-linux-gnu ARM64 Linux (Raspberry Pi 4, AWS Graviton)
aarch64-unknown-linux-musl ARM64 Linux static
x86_64-pc-windows-gnu Windows x86-64 (MinGW)
x86_64-pc-windows-msvc Windows x86-64 (MSVC)
x86_64-apple-darwin macOS x86-64
aarch64-apple-darwin macOS Apple Silicon
wasm32-unknown-unknown WASM (browser)
wasm32-wasip1 WASM with WASI preview 1 (was wasm32-wasi, removed)
wasm32-wasip2 WASM component with WASI 0.2
thumbv7m-none-eabi Cortex-M3 bare metal
thumbv7em-none-eabihf Cortex-M4/M7 with FPU
riscv32imac-unknown-none-elf RISC-V 32-bit bare metal

3. cross tool (Docker-based, easiest)

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

Read the full file on GitHub · 209 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +1 lines bab82f7663d1
  2. 3mo ago First seen · 208 lines · 98 tokens per session scan A 6831aaf2b03e

Subscribe to this mod's changes

rust-cross is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 98 tokens to every session and 1,740 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

rust-cross compared with skills from other repositories

rust-cross next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-crossmohitmishra786/low-level-dev-skillsSkill31014d agoMITA98Claude Code, Codex
rust-projectmajiayu000/spellbookSkill3034d agoMITA43Claude Code, Codex
laravel-rust-testingAsyrafHussin/agent-skillsSkill116yesterdayMITA227Claude Code, Codex
windows-compatsdsrss/code-graph-mcpSkill10210d agoMITA165Claude Code, Codex
bevy-migration-0-18-to-0-19shinyobjectz/raea-skillsSkill41todayApache-2.0A166Claude Code
rustnimadorostkar/Claude-Skills-collectionSkill415d agoMITA74Claude Code
rust-docsrewrite-rs/skillsSkill3613d agoBSD-3-ClauseA93Claude Code, Codex