Skip to content
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

rustdoc search command #2207

Closed
brson opened this issue Apr 14, 2012 · 11 comments
Closed

rustdoc search command #2207

brson opened this issue Apr 14, 2012 · 11 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. P-low Low priority T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@brson
Copy link
Contributor

brson commented Apr 14, 2012

I want to be able to write rustdoc search vec::each and have rustdoc tell me the docs. It would use the following algorithm:

  • Locate all the source crates (.rc files) under the current path
  • Locate all the compiled crates used by those source crates
  • Scan the all the found source and compiled crates for matching items/methods/variants, etc
  • Generate the docs for all the matches
  • Maybe provide interactive selection when there are multiple matches

Requires #2206

@graydon
Copy link
Contributor

graydon commented Apr 16, 2012

yes!

@dbp
Copy link
Contributor

dbp commented Oct 9, 2012

I'm sort of working on this (not pulling out of metadata, but rather out of what rustdoc generates, for now), and more (searching by types), over here: http://github.com/dbp/rustle . Perhaps it would make sense to integrate it into rustdoc once it has stabilized a little.

@alexcrichton
Copy link
Member

Nominating for feature-complete

@graydon
Copy link
Contributor

graydon commented May 30, 2013

accepted for feature-complete milestone

@catamorphism
Copy link
Contributor

Bug triage: still a bug, milestone/tags look good.

@emberian
Copy link
Member

#8125

Such a tool could be implemented by caching rustdoc_ng's JSON in the rustpkg workspace. Perhaps in $workspace/docs/json. @catamorphism?

@dobkeratops
Copy link

on a related note, how about adding tag-cloud search ... some sort of annotation in docstrings for tagging documented entities for non-heirachical search. for example , functions could be tagged with the names of similar functions in other languages
http://en.wikipedia.org/wiki/Tag_cloud

@catamorphism
Copy link
Contributor

Low, not 1.0

@huonw
Copy link
Member

huonw commented Jan 29, 2014

We now have online/HTML search via some JS included with rustdoc, but nothing at the command line, and it's only within a single crate.

@emberian
Copy link
Member

The search is now within multiple crates. Original reasoning about rustpkg still applies to cargo.

@steveklabnik
Copy link
Member

I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.

This issue has been moved to the RFCs repo: rust-lang/rfcs#647

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
ui_test: ensure all worker threads stay around

Also organize files such that the by far slowest test (weak_memory/consistency) always starts first. It still finishes last on my system... even after I halved the iteration count.

Fixes rust-lang/miri#2204
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. P-low Low priority T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

9 participants