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

wayland-scanner as a library #601

Open
i509VCB opened this issue Feb 13, 2023 · 2 comments
Open

wayland-scanner as a library #601

i509VCB opened this issue Feb 13, 2023 · 2 comments

Comments

@i509VCB
Copy link
Member

i509VCB commented Feb 13, 2023

It may be useful to allow using wayland-scanner as a library for codegen (essentially describing a protocol in data). This may help with api design experiments with wayland-backend.

@elinorbgr
Copy link
Member

What kind of api design experiments do you have in mind?

Because afaik rust does not allow to make a crate that is both a library and a proc-macro, so that would mean splitting wayland-scanner into two crates.

@i509VCB
Copy link
Member Author

i509VCB commented Mar 1, 2023

I had realized I would need to make a sort of wayland-scanner-core crate to make it work.

Otherwise my current work on it is related to just adjusting the public API of the new crate to be more usable as a library and then putting wayland-scanner ontop of it

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

2 participants