I'm working on a small project that needs to do HTTP GET queries to fetch some data. When developing I'd like to have a locally running HTTP serving predefined static files to avoid hitting the network.
I thought about having two [[bin]]
sections in my Cargo.toml; one for the main app, one for the companion HTTP server. Those two binaries would have two different sets of dependencies but it seems that it's not possible at the moment.
I could use a separate HTTP server to serve the files but I would prefer to have everything at one place packaged with Cargo.
How do you usually manage such kind of setup?