Skip to content

feat: enforce edition and rust-version on the generated crate#301

Merged
LouisGariepy merged 1 commit into
mainfrom
299-enforce-correctness-of-rust-version-and-edition-of-the-generated-crate
May 20, 2026
Merged

feat: enforce edition and rust-version on the generated crate#301
LouisGariepy merged 1 commit into
mainfrom
299-enforce-correctness-of-rust-version-and-edition-of-the-generated-crate

Conversation

@LouisGariepy
Copy link
Copy Markdown
Member

@LouisGariepy LouisGariepy commented May 20, 2026

The generated crate now uses Rust edition 2024 and declares rust-version = "1.85". Both are set by cornucopia and any value under [manifest.package] is ignored, since the syntax of the emitted code is tied to them. A warning is emitted when the user sets either key. See #299 for why this is needed.

Added gen to the reserved-keyword escape list so columns or queries named gen are emitted as r#gen, with a regression test in the keyword-escaping suite.

Fixes #299

The generated crate now uses Rust edition 2024 and declares
`rust-version = "1.85"`. Both are set by cornucopia and any value
under `[manifest.package]` is ignored, since the syntax of the emitted
code is tied to them. A warning is emitted when the user sets either
key.

Added `gen` to the reserved-keyword escape list so columns or queries
named `gen` are emitted as `r#gen`, with a regression test in the
keyword-escaping suite.
@LouisGariepy LouisGariepy merged commit 159c91a into main May 20, 2026
5 checks passed
@github-actions github-actions Bot mentioned this pull request May 20, 2026
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.

Enforce correctness of rust-version and edition of the generated crate

1 participant