spatialos-sdk-rs icon indicating copy to clipboard operation
spatialos-sdk-rs copied to clipboard

Code generator plugins/extensions

Open jamiebrynes7 opened this issue 6 years ago • 2 comments

As part of https://github.com/jamiebrynes7/spatialos-sdk-rs/issues/107, the idea of code generator plugins was brought up. This issue should track this particular use case and possible solutions.

  • Plugins using WASM, or some dynamically loaded library
  • Shipping codegen as a library and have users write a build.rs to configure the plugins.

jamiebrynes7 avatar Oct 22 '19 14:10 jamiebrynes7

The idea of using WASM as a way of providing compile-time extensions has been coming up elsewhere in the Rust community, too. We should check out watt and see if we ~steal ideas from it~ use it as inspiration :grin:

randomPoison avatar Oct 22 '19 14:10 randomPoison

We should check out watt and see if we steal ideas from it use it as inspiration 😁

That project is exactly what prompted the thought to use WASM for plugins 😉

jamiebrynes7 avatar Oct 22 '19 14:10 jamiebrynes7