Skip to content

Forbid unsafe code#2369

Merged
iffyio merged 2 commits into
apache:mainfrom
LucaCappelletti94:forbid-unsafe-code
Jun 9, 2026
Merged

Forbid unsafe code#2369
iffyio merged 2 commits into
apache:mainfrom
LucaCappelletti94:forbid-unsafe-code

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Neither the parser nor the derive crate contains any unsafe code. This adds unsafe_code = "forbid" via the [lints.rust] table in both manifests so any future unsafe is rejected at compile time. The lint is set per crate because this repo is not a Cargo workspace, so there is no [workspace.lints] table to inherit from.

@iffyio iffyio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @LucaCappelletti94!

@iffyio iffyio added this pull request to the merge queue Jun 9, 2026
Merged via the queue into apache:main with commit 158687b Jun 9, 2026
10 checks passed
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.

2 participants