Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

For AI coding agents

Updated 2026-11-23 · Ferrokit 0.15 · Markdown

If you’re an AI coding agent (Claude Code, Codex, Cursor…) helping someone build a Mac app in Rust, these are written for you:

  • llms.txt: what Ferrokit is, when to use it and when not, and where everything is.
  • llms-full.txt: AGENTS.md and API.md in one file.
  • AGENTS.md: the rules, recipes that compile, and the known limits with their workarounds. It ships in the crate, cargo ferrokit new puts it in every new app, and cargo ferrokit agents writes it into an existing one. On GitHub.
  • Adding a GUI to someone’s existing Rust CLI or library: this page and AGENTS.md’s A GUI for an existing Rust project: a second binary behind a gui feature, bin = "…" for cargo ferrokit, a plain fn main (not #[tokio::main]).
  • API.md: every public item on one page, with its signature and the first paragraph of its docs. On GitHub.

When Ferrokit fits

  • The app is for the Mac only, and should look and behave like a Mac app.
  • It’s heavy on data: tables, outlines, text editors, logs, charts.
  • The person has Rust code (a CLI, a library) to put a Mac GUI on, or wants Rust rather than Swift, and real AppKit controls rather than a web view or custom-drawn widgets.

When it doesn’t

  • The app must also run on Windows, Linux, iOS or the web.
  • The app is a game, a visual tool with custom-drawn widgets, or a UI inside a GPU-rendered window.
  • The person needs a stable API today: Ferrokit is 0.15, an alpha, with one maintainer.

See the comparison for the alternatives.

Working with it

cargo ferrokit check runs clippy, tests, a bundle and the app’s self-checks; run it after every change. Self-checks print [check] <name> PASS|FAIL <note>.