-
Notifications
You must be signed in to change notification settings - Fork 208
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
Search for type names in dependencies #494
Comments
It's already the case. You need to open it in docs.rs. ;) |
@GuillaumeGomez I don't have permissions on that repo so you will have to move the issue there (by using transfer issue option ) |
Transferred. |
Hoogle is great, but I wonder if we can do better. Can we autogenerate maps that visualise the possible routes to get from one type to another. Here's a graphviz of getting to/from String,&str,OsString.OsStr,PathBuf,Path... (I've probably missed a few paths as it's not autogenerated), but it would be pretty epic to give a handful of types and for a graph to show me how I could get from one to the other.
(You can paste the above into http://webgraphviz.com/ ) It might be worth distinguishing the owned types from the refernce types... |
@steveklabnik tweeted in https://t.co/b0WKl6Bmm1 that docs.rs supported vec -> usize though that doesn't seem to alas work any longer. |
@gilescope your idea sounds really cool but I'm not sure it belongs in this issue. Search terms are a special case - they're already generated by rustdoc for local docs, docs.rs just needs integrate them into the main site. If you're interested in the graph idea, could you open an issue in https://github.com/rust-lang/rust for rustdoc? |
@Dylan-DPC can you expand on this? I'd like to implement it but I'm not familiar with how search indexing works. Do we know why cross-crate search isn't currently working on docs.rs? Is it because we pass |
Suggestions from discord:
|
The |
@gilescope That link is broken ... do you have a link for the tweet? |
That tweet is here: https://twitter.com/steveklabnik/status/727530114607661057
|
any progress or updates? It is at the point that it takes me hours to read a few lines of cod because I spend mot of that time trying to find out what is even being called. |
I opened rust-lang/rust#86715 about this. Nothing has been done for the moment. |
Thanks. Not sure much will be done, but the language has become incredibly
difficult to understand when you don't know where a function comes from.
Some IDE features can help, but you aren't always using an IDE.
The flip side to this is a way to see all function that can be called on a
value. Beside the impls directly for it, there is also all the one syou
don't even know about (eg, I had no idea read/write was on the FutureEx
trait instead so wanted 2-3 hours trying to future it out then just
started asking what I can run on it and was quickly overwhelmed by the
amount of searching required. Something that couple terminus what was
implemented for a value so you could explore in a more directed manor would
help a lot. I think every language I've become good at I've learned that
way to a large extent - but I find it very difficult in rust.
…On Thu, Apr 14, 2022 at 8:15 AM Guillaume Gomez ***@***.***> wrote:
I opened rust-lang/rust#86715
<rust-lang/rust#86715> about this. Nothing has
been done for the moment.
—
Reply to this email directly, view it on GitHub
<#494 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASBHXDTDLK7X7XP4UFCESDVFAK6JANCNFSM4JSF3WBQ>
.
You are receiving this because you commented.Message ID: <rust-lang/docs.
***@***.***>
|
From a Twitter discussion, quoting @GuillaumeGomez :
Creating this issue so that we remember it in future and possibly implement it
(Context: Idea was suggested by @gilescope who wanted a functionality similar to Haskell's hoogle
The text was updated successfully, but these errors were encountered: