Is there any way, using Cargo or related services, for me to quickly find out which crates are using my code? I'd be content with answers that are limited to crates published back to crates.io, but my golden answer would include finding out about unreleased and unpublished use cases, as well.
For background, I'm exploring some possibilities around a sharealike license, and I'd love to be able to use the crates ecosystem to track and enforce it. I realize that that's not the goal of the Cargo project, and if the answer is "sorry, can't be done" it's not the end of the world, but if there's prior art I'd love to know.
crates.io tracks the dependents of every published crate. For example: https://crates.io/crates/syn/reverse_dependencies
GitHub has a feature where it'll try to highlight users of a repository, for example: Network Dependents · Heliozoa/elm_rs · GitHub
If your crate's source is on GitHub, combining GitHub's and crates.io's lists is as comprehensive as it gets to my knowledge.
You could try a search engine too, if your crate's name is distinct enough that might even be the best option if you wanted to find every single user out there.
I would be horrified if there is a way to do this.
So would I, but I would still prefer to know.
Fantastic, that's exactly what I was hoping for. Is there a way to get a machine-parseable version of this, or an API I can call out to?