Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo Gen support for DiplomatOption #673

Merged

Conversation

ambiguousname
Copy link
Member

@ambiguousname ambiguousname commented Sep 3, 2024

Because we currently don't pass context when we recursively evaluate parameters, DiplomatOption effectively is ignored for the purposes of demonstration.

Especially difficult to resolve since we flatten all struct and opaque construction parameters into one render terminus (making it hard to label what belongs where and thus set up optional support), so this is a workaround for now.

Should help with the ICU4X PR for DiplomatOption<>

Because we currently don't pass context when we recursively evaluate parameters, DiplomatOption effectively is ignored for the purposes of demonstration.

Especially difficult to resolve since we flatten all struct and opaque construction into one render terminus (making it hard to set up optional support), so this is a workaround for now.
@ambiguousname ambiguousname added the B-demo_gen Demo_Gen backend label Sep 3, 2024
Copy link
Contributor

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

Sounds like we'll need proper support for specifying Nones for both optional Opaques and DiplomatOptions.

@Manishearth Manishearth merged commit c2929db into rust-diplomat:main Sep 3, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-demo_gen Demo_Gen backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants