-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo list trait implementors #14852
Comments
this may also work as a sub-command of |
Another way to consider this is that |
odd is that when I ran |
Guess it is because |
I'm also interested in this feature. I've been thinking about a potential cargo Maybe use rustdoc experimental JSON output to build a queryable index of trait implementations? |
so I ended up making smth stupid that parsed the |
Problem
I am writing a program and would like a way to see every struct that implements a trait (eg:
serde::Serialize
)I know that at somepoint during compilation the full type information is avaliable because rust is able to give output like
when using types that dont implement a trait.
Proposed Solution
if I had to guess this would probally be best relegated to some kind of nightly -Z flag probally smth like
-Z dump-impls
probally producing either a debug output dump of the crates. or just a simple tabulated tree of crates and traits and implsNotes
No response
The text was updated successfully, but these errors were encountered: