PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 5
  1. 0.4.1 28 May 2026
    Release notes

    Added

    • New setup_interrupts macro for custom interrupt setup routines.
    • New exception, core_interrupt, and external_interrupt macros for trap handlers.
    • New entry macro for the Rust entry point (for riscv-rt).
    • New rvrt-u-boot feature to adapt entry macro for U-Boot.
    • New post_init macro for Rust routines that must be executed before main.
    • New rvrt_llvm_arch_patch and rvrt_default_start_trap for generating assembly code required by the riscv-rt crate.
    • New riscv-rt feature to opt-in riscv-rt-related macros.
    • New rvrt-pre-default-start-trap feature to opt-in assembly injection at the beginning of _default_start_trap.
    • New s-mode feature to adapt macros to S-Mode execution.
    Open source →
  2. 0.4.0 24 Dec 2025
    Release notes

    Added

    • New rt and rt-v-trap features to opt-in riscv-rt-related code in riscv::pac_enum macro.

    Changed

    • Isolate code that depend on the riscv crate in a new riscv module.
    • Fix cargo doc errors.
    • Use fully qualified paths in generated code (i.e., ::riscv instead of riscv)
    • Moved from riscv/macros/ to riscv-macros/
    • Now, riscv::pac_enum macro only includes trap-related code if rt or rt-v-trap features are enabled.
    Open source →
  3. 0.3.0 09 Sep 2025
    Release notes

    This crate was placed inside riscv/. Check riscv/CHANGELOG.md for details

    Open source →
  4. 0.2.0 18 Feb 2025

    Nothing published for this version

  5. 0.1.0 20 Oct 2024

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive