wayland-rs icon indicating copy to clipboard operation
wayland-rs copied to clipboard

wayland-scanner as a library

Open i509VCB opened this issue 2 years ago • 2 comments

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.

i509VCB avatar Feb 13 '23 04:02 i509VCB

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.

elinorbgr avatar Mar 01 '23 12:03 elinorbgr

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

i509VCB avatar Mar 01 '23 13:03 i509VCB