-
Notifications
You must be signed in to change notification settings - Fork 8
Distributor Guide
Zakaria Madaoui edited this page Jul 24, 2026
·
5 revisions
This guide is for developers who want to port RTIC to new hardware, create a new distribution, or write a new compilation pass.
It assumes you are familiar with the user-facing syntax described in the User Guide and Syntax Reference.
A distributor crate:
- Implements the low-level, target-specific backend traits defined by
rtic-core(and optionally by passes such asrtic-sw-pass). - Registers the compilation passes it wants to use via
RticMacroBuilder. - Exposes the final
#[rtic::app]proc macro.
The result is a self-contained RTIC distribution that application developers can depend on.
This repository maintains the core framework and a set of reference distributions. New distributions for additional hardware targets are expected to live in their own crates and repositories. They are not merged into this repository.
- Architecture — how the core, passes, and distributions fit together.
-
Writing Compilation Passes — implementing the
RticPasstrait. -
Writing Distributions — implementing backends and exposing
#[rtic::app].
-
RticMacroBuilder— the API used by every distribution to assemble the macro pipeline. -
CorePassBackend— the target-specific interface for the core code generation phase. -
RticPass— the interface for syntax-transformation passes. - Backend extension traits — passes such as
rtic-sw-passmay define their own backend traits (e.g.,SwPassBackend) for target-specific details.
Start with Architecture for the big picture.