Hi, is it possible to implement "extensions" such that that a master crate's behaviour is only defined when it is compiled?
I tried, but I can't even word that elegantly
For example, I want to have an application crate that uses clap-rs, but at compile time do a lookup for all the "extension" crates that implement X, and generate a Subcommand for each of them.
I don't know if what I'm asking is the right question, but the alternative is to always change the master crate when adding a new subcommand, and I prefer to not have to touch it to add functionality.
Maybe the right question is "Is there a way to mimic a service registry at compile time?"