I have a package with a lib and I want to distribute it with two
examples - a CLI app & web app
Cargo supports examples and example dependencies that are not lib
dependencies can be put in a separate [dev-dependencies] section
That's better than adding them to the regular [dependencies] section,
but is it possible to specify different dev_dependencies for the different examples?
Looking at the yew package (which would be one of my dependencies), I see that they have taken a 3rd route - put their examples inside the examples dir, but as separate projects with their own Cargo.toml files - they are independent of the top level Cargo.toml file...