sagiegurari / cargo-make

Rust task runner and build tool.
https://sagiegurari.github.io/cargo-make/
Apache License 2.0
2.46k stars 123 forks source link

`cargo-make` as library: task exection in asynchronous persistent queues #1110

Open SamuelMarks opened 1 week ago

SamuelMarks commented 1 week ago

Feature Description

cargo-make is great. I've been using it since at least 2018. I have ideas that are too far outside the scope of cargo-make to be contributed back to master.

Describe The Solution You'd Like

Can we expose cli::descriptor::load https://github.com/sagiegurari/cargo-make/blob/153fa22/src/lib/descriptor/mod.rs#L581-L586 ? - A bunch of other modules also? - Your src/lib/cli.rs uses a lot of private and pub(crate) modules.

Code Sample

https://github.com/offscale/cargo-make/tree/publicise


I have ideas about making tasks asynchronous whilst retaining parallelizability by using a real database or Redis (valkey) to continue/resume/replay. But need to either fork your repo (sad) or get you to expose internals in order to experiment here.

Thanks for your consideration