Skip to content

Port to Rust edition 2024 #298

Description

@xiaguangbo

https://github.com/rust-embedded/riscv/blob/master/riscv-rt/macros/src/lib.rs#L139
why not have edition = 2024? add edition = 2024 need change #[export_name = "main"] to #[unsafe(export_name = "main")]

Activity

  1. changed the title [-]riscv-rt-macro: #[export_name = "main"] change to #[unsafe(export_name = "main")]?[/-] [+]Port to Rust edition 2024[/+] on Jun 13, 2025
  2. romancardenas commented on Jun 13, 2025

    @romancardenas
    Contributor

    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 :)

  3. linked a pull request that will close this issueUpdate to Rust edition 2024 #299on Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions