Skip to content

Conversation

@agraven
Copy link

@agraven agraven commented Jan 11, 2026

This is a proof of concept to demonstrate what supporting the language-level field defaults defined by RFC 3681 might look like.

The behavior implemented is that the language-level field default gets ignored if the existing default_value attribute is present. I haven't decided if that's optimal or not.

It uses the syn version from this PR: dtolnay/syn#1955

@epage
Copy link
Member

epage commented Jan 12, 2026

If you are looking to explore this being used in clap, I would recommend opening an issue for discussing the design. One important reason for being Issues-first is shown here where we have two different PRs for this and the conversation can be harder to follow as we go through PRs. Let's leave the PR for discussing the implementation.

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