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

Feature Request: search predicates like after:<DATE>. #2151

Closed
nathan-at-least opened this issue Jun 15, 2023 · 1 comment
Closed

Feature Request: search predicates like after:<DATE>. #2151

nathan-at-least opened this issue Jun 15, 2023 · 1 comment

Comments

@nathan-at-least
Copy link

I love https://docs.rs btw! Thanks to everyone who's contributed to it.

I've noticed whenever I do crate searches on https://docs.rs I almost always filter by the date stamp on the right hand side, and I rarely look at packages that haven't been updated this year (currently 2023).

That made me wonder if there were search predicates, so I can do a search like json-rpc after:2023-01-01 or the like. I didn't see any mention of this kind of feature at https://docs.rs/about nor on the a quick search of open and closed tickets here with a query of search.

I could imagine a variety of predicates I'd like to use. For example, I also rarely use a crate that doesn't have pub items documented, so I'd be tempted to do a search like grpc after:2022 lint-deny:missing_docs to quickly find recent crates that have all documented APIs.

I realize this is a large umbrella feature, and also there may be simpler ways to get what I want. I'll file tickets for those other approaches (namely date sorting).

@syphar
Copy link
Member

syphar commented Jun 16, 2023

Also taking into account my other comments ( #2153 (comment) and #2152 (comment)):

docs.rs is using the crates.io search, and should continue doing so.

So feature requests like this would be better suitet to the crates.io repository.
That being said, crates.io search is pending a big rewrite, where requirements like this could be taken into account.

So in regards to purely docs.rs, this feels like "crate discovery" again, which is not a use-case for docs.rs. Also if crates.io would start supporting this syntax, we would directly benefit from this feature.

@syphar syphar closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants