You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]riscv-rt-macro: #[export_name = "main"] change to #[unsafe(export_name = "main")]?[/-][+]Port to Rust edition 2024[/+]on Jun 13, 2025
Hi @xiaguangbo ! Thanks for raising this issue. Moving to Rust edition 2024 will need a few more tweaks, especially in macros that use no_mangle and export_name. We can try to update the edition for all our crates :)
https://github.com/rust-embedded/riscv/blob/master/riscv-rt/macros/src/lib.rs#L139
why not have
edition = 2024? addedition = 2024need change#[export_name = "main"]to#[unsafe(export_name = "main")]