How to improve my Rust workflow?
I will briefly describe what I do 99% of the time with Rust:
- I create a binary crate in Rust (
generate_data.exe); the executable: reads data from an external file, manipulates it, generates atxtfile with data to make some plots. - I write a template in LaTeX (
generate_plots.tex) to generate the plots with pgfplots and tikz. - I write a bash script (
my_program.exe) that: runsgenerate_data.exe, compilegenerate_plots.tex
Things I don't like:
- I don't know how to organize the templates and bash scripts. Where should they go? Its easy to organize and deal with the Rust stuff, but where should the rest go? If I add C++ stuff, should cmake run cargo build? Where can I read about organizing projects not 100% Rust?
- My program is actually divided into 2 programs: bash script and rust script. It feels ugly because my bash script is asking for flags that it needs (keep/remove files) plus flags just to send to the rust script.
- I need some sort of
config.shthat defines environment variables with the path to the latex templates. Is this reasonable?
I want to keep using txt files and LaTeX templates because this makes it easier to re-use plots in publications, beamer presentations, and other tex files.
Does anybody have some suggestions for me?