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

Generate parametric interface GUIDs using const fns #47

Open
Boddlnagg opened this issue Dec 8, 2017 · 1 comment
Open

Generate parametric interface GUIDs using const fns #47

Boddlnagg opened this issue Dec 8, 2017 · 1 comment

Comments

@Boddlnagg
Copy link
Collaborator

Boddlnagg commented Dec 8, 2017

We're currently generating all the necessary parametric interface GUIDs ahead of time in the code generator (C#). At least those that are necessary to compile the library. User code might need additional parametric interface instantiations and there's no way for the user to get the required GUIDs. We should instead try to do this from Rust using const fns, once that is implemented stable.

The C++ WinRT projection is using constexpr to do this: https://www.youtube.com/watch?v=7TdpWB_vRZM#t=23m46s

@Boddlnagg
Copy link
Collaborator Author

I started working on this in a branch: https://github.com/Boddlnagg/winrt-rust/tree/constfn-pinterface

However, const fn support is not yet capable of everything that we need for it to work.

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

No branches or pull requests

1 participant