commure / sourcegen

🐠Like procedural macro, but generates sources! 🐡
Apache License 2.0
30 stars 4 forks source link

🔌Figure out plugins / extensibility? #2

Open idubrov opened 5 years ago

idubrov commented 5 years ago

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)?