rust-lang / rust-lang/cargo

cargo search: ability to search in crate names only

Open
#4,161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-interacts-with-crates.io C-feature-request Command-search S-blocked-external
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Currently cargo search produces very noisy output with a lot of irrelevant results. It would be nice to add options to control where to search: crate names only (strict), keywords, description (most relaxed).

Current situation: cargo search python gives:
https://crates.io/crates/yamlate
https://crates.io/crates/autojump
https://crates.io/crates/strfmt

Where is any "Python" word in these crates - I do not know.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cargo search command and its current crates.io query behavior. Define how name-only, keyword, and description modes should differ, then verify the results against the examples in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.