For certain examples, I want to build/run them using Cargo. My examples directory looks as follows:
- examples/
- test1.rs
- test2/
- Cargo.toml
- src/
- main.rs
- ...
Is this possible? If it is, what are my options to accomplish this?
I tried a few things already, but they either don't work (e.g. using a workspace for the examples and adding that as member to the project workspace) or don't have the desired effect (e.g. adding the example crates as members to the project workspace).
Currently I'm building them using a shell script, but integrating then would be prefered. I'm thinking of adding the example crates as [[example]] to one of the actual crates, but I can't find out how. Also, there might be an easier/prefered way I'm overlooking...