Currently, the way sourcegen works is via building your own binary on top of the sourcegen-cli. Would be nice to somehow separate tool from plugins so you can install global cargo-sourcegen, run something like cargo sourcegen and have it to compile all necessary generators and run them.
Potentially, can build binary crate behind the scenes? Or use stdin/stdout protocol (syntax in => syntax out)?
Currently, the way sourcegen works is via building your own binary on top of the
sourcegen-cli
. Would be nice to somehow separate tool from plugins so you can install globalcargo-sourcegen
, run something likecargo sourcegen
and have it to compile all necessary generators and run them.Potentially, can build binary crate behind the scenes? Or use stdin/stdout protocol (syntax in => syntax out)?