RMK: Rust keyboard firmware for your first custom keyboard
RMK turns a Pi Pico or nRF52840 board into a keyboard from one keyboard.toml file — Rust firmware where you write no Rust and no C.

What it is
Keyboard firmware written in Rust and configured entirely from one keyboard.toml file — chip, matrix, layout and every layer — with no keyboard code for you to write. Runs on RP2040 (Pi Pico), nRF52, STM32 and ESP32.
What you need
- Raspberry Pi Pico the wired starter board we verified
- nice!nano v2 / nrfmicro (nRF52840) the wireless BLE path
- USB data cable for the one-time BOOTSEL flash
- Rust toolchain (rustup) plus a host C compiler a build dependency needs
How hard
Beginner for the firmware (our editorial call): you edit a readable TOML file and run cargo — no Rust, no C to write. The invisible weight is the toolchain: a few hundred crates on first build and a C compiler quietly required on the host.
Key Facts
- Keyboard firmware written in Rust and configured entirely from a single keyboard.toml — "a TOML configuration file, requiring no Rust programming knowledge" (project docs); the whole Rust program the official template generates is a four-line macro
- Built on the embassy async runtime; covers STM32, nRF, RP2040 and ESP32 chips, with per-chip templates in the official rmk-template
- We verified it hands-on: the official template built green with Rust 1.100.0 on 2026-11-21 — 1m48s cold build, 252 crates, and a spec-valid RP2040 UF2 image we byte-checked. Artifact verified; we did not flash a live board
- BLE with automatic reconnection and multi-device pairing; the project reports testing on nRF52840, nRF54L15, nRF54LM20, ESP32-C3/C6/H2/S3 and Pi Pico W — the plain Pico has no radio
- Live keymap editing through Vial or the experimental Rynk protocol, including wirelessly over BLE; split keyboards via per-chip templates (serial split from TOML is RP2040-only — others need the Rust API)
- Maker-reported performance: roughly 2 ms wired and 10 ms wireless latency, months of battery from a 2000 mAh pack — their figures, not our measurements
- Dual-licensed Apache-2.0 OR MIT (both license files verified); free and open source
- Easiest hardware path: a Raspberry Pi Pico and a USB cable — flash by holding BOOTSEL, no debug probe

About This Project
RMK's own tagline is "A modern, easy-to-use, and feature-rich keyboard firmware written in Rust" — and the unusual part is what's missing: there is no keyboard code for you to write. Everything a build needs — chip, matrix pins, layout, every keymap layer — lives in a single keyboard.toml file. The project's configuration docs promise "a TOML configuration file, requiring no Rust programming knowledge", and the official template backs that up: the entire Rust program it generates is a four-line macro. You edit TOML, run cargo build, and get keyboard firmware. When we built that template ourselves, it was the friendliest first-custom-keyboard workflow we've used: from zero to a valid Raspberry Pi Pico firmware image in one command and under two minutes, without writing a line of Rust or C.
Why it matters
QMK and ZMK are the incumbents, and both are excellent — but both ask a newcomer to absorb a build system, a C (or devicetree) configuration culture, and a large ecosystem before the first keypress. RMK compresses the first-custom-keyboard or macropad path to two skills: edit a readable TOML file and run cargo. It is built on the embassy async embedded runtime and covers STM32, nRF, RP2040 and ESP32 chips. That makes it a gentle on-ramp for a DIY macropad on a Raspberry Pi Pico, or for a wireless build on an nRF52840 board like the one our nrfmicro page covers — nrfmicro hardware plus RMK firmware is the natural wireless pair.
Key features
Everything lives in the one keyboard.toml: chip, matrix pins, layout and every layer, with a Rust API available for anyone who wants deeper control. The keymap syntax is QMK-like — MO(1), LT(2, Kc9) — so a beginner arriving from QMK is at home, and a total newcomer needs only the keycodes doc page. Keymaps can be modified live through Vial, or RMK's own experimental Rynk protocol, even wirelessly over a BLE connection. For wireless builds, BLE comes with automatic reconnection and multi-device pairing; the project reports testing on nRF52840, nRF54L15, nRF54LM20, ESP32-C3/C6/H2/S3 and Pi Pico W — note the plain Pico has no radio, so wireless needs a Pico W. Split keyboards are supported too, with per-chip split templates in the official rmk-template; one honest limit: a serial split configured from TOML is generated for RP2040 only, other chips need the Rust API. Performance figures — roughly 2 ms wired and 10 ms wireless latency, and months of battery from a 2000 mAh pack — are the project's own claims, not our measurements.
What we verified, and what we only read
We built the official rmk-template's rp2040 (Pi Pico) configuration with Rust 1.100.0 on 2026-11-21, changing nothing in keyboard.toml but the project name. cargo build --release completed green in 1m48s cold, compiling 252 crates, and produced a spec-valid RP2040 UF2 image — we byte-checked the family ID and flash base address — so the drag-and-drop BOOTSEL flash path is real, though we verified the artifact, not a live board (no Pico on the bench that day). Two honest catches: writing no C of your own still requires a C compiler on the host — a build dependency quietly compiles some bundled C — and the rmkit init setup wizard assumes a human at the terminal. The wireless, split and Vial-over-BLE features are documented with per-chip templates, but that is documentation we read, not hardware we ran.
Getting started
Install the tooling with cargo install rmkit flip-link, run rmkit init, edit your keyboard.toml, and build with cargo build --release. On a Pi Pico you can flash without any debug probe: hold BOOTSEL while plugging in, and the board appears as a USB drive you drop the UF2 file onto (elf2uf2-rs automates this). The first build is the heavy part — it pulls a few hundred crates, well over a gigabyte — after that, rebuilds are instant. The full user guide lives at rmk.rs.
License and repo facts
RMK is dual-licensed under Apache-2.0 or MIT, at your option — verified from both license files in the repository, © HaoboGu 2024. Source and issue tracker live at the rmk-rs organization on GitHub, API documentation on docs.rs, and the user documentation, configuration reference and roadmap on rmk.rs. Not affiliated: RMK is an independent open-source project; QMK, ZMK, Vial and Raspberry Pi belong to their owners.
Source & Attribution

Illustration
How to Build It
Parts Needed
- A Raspberry Pi Pico (or another supported board: nRF52840, ESP32, STM32, Pico W)
- A USB data cable
- The Rust toolchain (rustup) and a host C compiler
Steps
- 1
Install the toolchain and rmkit
Install Rust with rustup if you haven't, then install the project's tooling with the documented one-liner: cargo install rmkit flip-link.
- 2
Create your firmware
Run rmkit init. The interactive wizard asks for your chip — rp2040 for a Pi Pico — and copies the matching official template. Script and CI users beware: the wizard assumes a human at the terminal.
- 3
Describe your keyboard in keyboard.toml
One readable file holds everything: chip, matrix pins, layout and every keymap layer. The keymap syntax is QMK-like — MO(1) for a momentary layer, LT(2, Kc9) for a tap-and-hold — so QMK veterans are at home and newcomers need only the keycodes doc page.

The template's keyboard.toml and the 12-key macropad it defines. Adapted from the official rmk-template (Apache-2.0/MIT); original MCU Atlas figure. - 4
Build
Run cargo build --release. The first build pulls a few hundred crates — well over a gigabyte — and quietly requires a C compiler on the host for a build dependency; our cold build finished green in 1m48s with 252 crates compiled (Rust 1.100.0, 2026-11-21). Rebuilds after that are instant.
- 5
Flash a Pi Pico with no debug probe
Hold BOOTSEL while plugging the Pico in: it appears as a USB drive, and you drop the UF2 file onto it. elf2uf2-rs automates the whole step (runner = elf2uf2-rs -d in .cargo/config.toml). We verified this path on the artifact — a spec-valid RP2040 UF2 we byte-checked — not on a live board.
- 6
Tune it live and go further
Edit your keymap at runtime with Vial — even wirelessly over BLE on supported boards. For wireless chips and split keyboards, the rmk-template ships per-chip starting points, and rmk.rs holds the full configuration reference and roadmap.
Bill of Materials
Parts list
3 parts · 2 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× Raspberry Pi Pico (RP2040)
The wired starter path and the board our verification build targeted; flash over BOOTSEL with no debug probe
1× nice!nano v2 / nrfmicro (nRF52840 Pro Micro)
The wireless path: RMK's BLE with auto-reconnection is tested on nRF52840 (project's tested list)
1× USB data cable
Any USB data cable for the one-time flash
Not included: A Rust toolchain (rustup) plus a host C compiler — a build dependency quietly compiles bundled C, Switches, keycaps and a keyboard matrix — RMK is the firmware; the hardware is your build, No debug probe needed on a Pi Pico (BOOTSEL drag-and-drop flashing)
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- RMK on GitHubSource, releases and issue tracker (dual Apache-2.0/MIT)Docs
- RMK user documentationOfficial docs: getting started, configuration reference, roadmapDocs
- Getting started guideThe official quick-start path: rmkit init, keyboard.toml, build, flashDocs
- keyboard.toml configuration referenceEvery TOML section: matrix, layout, layers, wireless, splitDocs
- API documentation (docs.rs)The Rust API for builds that outgrow TOMLDocs
- rmk-template repositoryOfficial per-chip starting points, incl. rp2040, pico_w and splitsDocs
- Do you need a debug probe?No — RMK's Pi Pico path is BOOTSEL drag-and-drop. This explains what SWD debug hardware is for when you outgrow it.Docs
Related Projects



