rusticl: add proc macro module for generating API stubs
authorKarol Herbst <git@karolherbst.de>
Sat, 3 Jun 2023 12:59:41 +0000 (14:59 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Jun 2023 10:35:23 +0000 (10:35 +0000)
commit5875f2e8030ac25628f748e7d51fc85103848c86
treed9565a7261ba14fd02a2f9fbddada41963ff9ff8
parentb1cd5780d6546d2b0082db11336589b929ec344c
rusticl: add proc macro module for generating API stubs

Most of the API stubs are very very trivial to generate as the sole
purpose of those are to deconstruct the returned `Result` object.

Sadly we can't use external crates yet, so "syn" and "qoute" can't be used
for this :'(

The code is kinda hacky, but we also don't expose this to other people, so
we can keep this as a big hack until we can use external crates.

I wish there was a better solution here.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23413>
src/gallium/frontends/rusticl/meson.build
src/gallium/frontends/rusticl/proc/lib.rs [new file with mode: 0644]