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

didc bind -t create named struct for inline tuple record params #346

Closed
lastmjs opened this issue May 6, 2022 · 1 comment
Closed

didc bind -t create named struct for inline tuple record params #346

lastmjs opened this issue May 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lastmjs
Copy link
Contributor

lastmjs commented May 6, 2022

With didc bind -t the generated Rust code for inline records uses a custom named struct, so that the Rust function actually references a named struct instead of an anonymous struct in the param. It would be great if the same thing could be done for tuple structs. This is breaking my code because of some traits that would be hard to derive for a heterogeneous tuple struct. If tuple structs and regular structs were treated the same by didc bind -t then my code should automatically work.

@lastmjs lastmjs added the enhancement New feature or request label May 6, 2022
@lastmjs lastmjs changed the title didc bind create named struct for inline tuple record params didc bind -t create named struct for inline tuple record params May 6, 2022
@chenyan-dfinity
Copy link
Contributor

Duplicate of #255

@chenyan-dfinity chenyan-dfinity marked this as a duplicate of #255 May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants