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

Perform more transformations of parameters when generating Rust-side C functions #82

Open
Manishearth opened this issue Sep 1, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Manishearth
Copy link
Contributor

Currently we don't do any complicated munging of the signatures at the Rust level, the generated C functions almost always directly call the Rust functions without ceremony.

We should support some transformations, like:

  • Returning Result<T, E> will generate a C API using DiplomatResult with the appropriate conversion at the boundary
  • Self in parameters should be appropriately translated
@Manishearth Manishearth added enhancement New feature or request help wanted Extra attention is needed labels Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant