Leafwing-Studios / template-repo

A quick, CI-enabled Bevy template repository.
Apache License 2.0
43 stars 9 forks source link

Enable usage with `cargo generate` #14

Closed alice-i-cecile closed 2 years ago

alice-i-cecile commented 2 years ago

See: https://crates.io/crates/cargo-generate

alice-i-cecile commented 2 years ago

So, cargo generate turns the files stored in the repo into Rust-like files, which are then transformed when cargo generate is called.

Unfortunately, this means that Rust Analyzer and CI no longer work directly on them, and the "use as template" button on Github will break badly. We could probably get CI working again (for us) by generating the two variants, and then running CI on that. But then CI will be wrong again for the end user :(

Overall the complexity is far too high, and it's going to be a serious hit to maintainability. Probably worth doing for an official tool at some point, but not for a simple third-party option.