Skip to content

Conversation

chaosprint
Copy link
Contributor

No description provided.

@bigbass1997
Copy link

Just encountered this issue as well, nice to see a PR already open for it.

For reference, Rust v1.82 introduced the ability to mark some attributes as unsafe. When using edition 2024 (as this template does), failure to properly mark unsafe attributes such as link_section, will produce a compiler error.

@yutannihilation
Copy link
Contributor

I also hit this error.

Btw, why doesn't this get caught by the CI? It should be easily reproducible, but I found no compile error on GitHub Actions.

https://github.com/rp-rs/rp235x-project-template/actions

@yutannihilation
Copy link
Contributor

Ah, okay, I found the reason. This template uses edition 2021, not edition 2024.

[package]
edition = "2021"

But, it seems cargo generate, which we are supposed to use according to the README, generates a Cargo.toml with edition 2024.

@9names
Copy link
Member

9names commented Aug 29, 2025

This fix was integrated into #5, closing as resolved

@9names 9names closed this Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants