Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

provide cargo subcommand cargo syntex #21

Open
oli-obk opened this issue Nov 10, 2015 · 4 comments
Open

provide cargo subcommand cargo syntex #21

oli-obk opened this issue Nov 10, 2015 · 4 comments

Comments

@oli-obk
Copy link

oli-obk commented Nov 10, 2015

instead of relying on the user to implement a build script, now that cargo install is becoming a thing, it could be as easy as cargo install syntex, cargo syntex build

To figure out which files to use, maybe instead of main.rs.in one could use main.rs.syntex and translate all .syntex files.

@erickt
Copy link

erickt commented Feb 12, 2016

Interesting! How do you think this would work when one builds a library that uses syntex? What if cargo syntex could generate a build.rs script, and re-running it would re-generate the build.rs?

@dtolnay
Copy link
Contributor

dtolnay commented Jun 12, 2016

How would a cargo subcommand know what plugins to run? Syntex by itself doesn't do anything unless you register plugins for it to apply. At that point I don't see this significantly reducing the complexity compared to build.rs.

@bjorn3
Copy link

bjorn3 commented Jun 13, 2016

Maybe name all syntex plugins syntex-*. cargo syntex could then simply look for dependencies named syntex-*.

@oli-obk
Copy link
Author

oli-obk commented Jun 13, 2016

The idea is to not re-generate the files in every build, but generate them once and put them onto crates.io. This way crates using syntex won't even have to depend on syntex on crates.io

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants