rust-embedded / rust-embedded/svd2rust

`gen` is a reserved keyword in Rust 2024 edition

Open
#927 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
857
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Since gen is a reserved keyword in the Rust 2024 edition, it must be added to the KEYWORDS const in sanitize_keywords: https://github.com/rust-embedded/svd2rust/blob/master/src/util.rs#L135-L142, otherwise crates build with Rust 2024 will give compiler errors.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/util.rs at the sanitize_keywords function and its KEYWORDS constant. Add the Rust 2024 reserved keyword noted in the issue, then verify that generated crates build successfully with the Rust 2024 edition.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.