riscv-macros
Procedural macros re-exported in `riscv`
0.4.1
4.3M downloads/mo
#4860 most downloaded on crates.io
rust-embedded/riscv
What this package is like to depend on
Last release 2 months ago
28 May 2026
Ships on a steady schedule
a new release about every 5 months
Most releases are documented
notes for 3 of 5 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
5 releases · first in 2024
3 releases in the last 12 months
see the full history below
Release timeline
5 releases · Oct 2024 to May 2026
2025
2026
Releases
latest 5-
0.4.128 May 2026Release notes
Open source →Added
- New
setup_interruptsmacro for custom interrupt setup routines. - New
exception,core_interrupt, andexternal_interruptmacros for trap handlers. - New
entrymacro for the Rust entry point (forriscv-rt). - New
rvrt-u-bootfeature to adaptentrymacro for U-Boot. - New
post_initmacro for Rust routines that must be executed before main. - New
rvrt_llvm_arch_patchandrvrt_default_start_trapfor generating assembly code required by theriscv-rtcrate. - New
riscv-rtfeature to opt-inriscv-rt-related macros. - New
rvrt-pre-default-start-trapfeature to opt-in assembly injection at the beginning of_default_start_trap. - New
s-modefeature to adapt macros to S-Mode execution.
- New
-
0.4.024 Dec 2025Release notes
Open source →Added
- New
rtandrt-v-trapfeatures to opt-inriscv-rt-related code inriscv::pac_enummacro.
Changed
- Isolate code that depend on the
riscvcrate in a newriscvmodule. - Fix
cargo docerrors. - Use fully qualified paths in generated code (i.e.,
::riscvinstead ofriscv) - Moved from
riscv/macros/toriscv-macros/ - Now,
riscv::pac_enummacro only includes trap-related code ifrtorrt-v-trapfeatures are enabled.
- New
-
0.3.009 Sep 2025Release notes
Open source →This crate was placed inside
riscv/. Checkriscv/CHANGELOG.mdfor details -
0.2.018 Feb 2025Nothing published for this version
-
0.1.020 Oct 2024Nothing published for this version