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

Include metadata in programs that indicates which interfaces they handle or use #831

Open
tomaka opened this issue Feb 20, 2021 · 0 comments
Labels
T-enhancement New feature or request

Comments

@tomaka
Copy link
Owner

tomaka commented Feb 20, 2021

It should be possible to know ahead of time which interfaces a program is going to handle or use.
For this, we should somehow put the information in the program itself.

I've briefly tried the approach of doing extern "C" { static INTERFACE_TOKEN_AAAAAAAA: i32; }, but the Rust compiler apparently just magically assumes that its value is 0 rather than importing the value.

@tomaka tomaka added the T-enhancement New feature or request label Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant