fastn xtask crate #2102
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is for people who want to use the xtask pattern for their repos.
Example Tasks
install-fastn
Right now all fastn apps READMEs tell you to install fastn. We can create a task to install latest fastn from github repository. Installing fastn from source maybe too slow so this may be handy.
fastn launchers
In earlier discussion I mentioned fastn launchers, we can have a task that does that, calling fastn update first intelligently till
fastn serve --no-update
is implemented.Ideally the launcher will internally call install fastn task so things are seamless.
cargo xtask run-ui
etc.Wasm compilation
We also have scripts for compiling wasm, and for optimising it, we can expose tasks for both.
Import Google Font
Improve the process of creating font packages #2094
Implementation Detail
This has to be a separate library crate, published on crates.io. This will expose these helpers functions. We can even create a clap helper, which will auto add these tasks to passed clap, or return some clap data structure.
Beta Was this translation helpful? Give feedback.
All reactions