{"id":16806799,"url":"https://github.com/loipesmas/cargo-select","last_synced_at":"2025-03-22T02:31:35.927Z","repository":{"id":45301320,"uuid":"504828371","full_name":"LoipesMas/cargo-select","owner":"LoipesMas","description":"Cargo subcommand to easily run targets/examples","archived":false,"fork":false,"pushed_at":"2022-08-24T18:51:17.000Z","size":88,"stargazers_count":19,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T07:12:02.736Z","etag":null,"topics":["cargo","cargo-plugin","cargo-subcommand","developer-tools","fuzzy","fuzzy-matching","fuzzy-search","fzf","rust","rust-lang","tui","tui-rs"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LoipesMas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-18T11:45:22.000Z","updated_at":"2025-02-08T09:06:27.000Z","dependencies_parsed_at":"2022-09-24T10:02:41.459Z","dependency_job_id":null,"html_url":"https://github.com/LoipesMas/cargo-select","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoipesMas%2Fcargo-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoipesMas%2Fcargo-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoipesMas%2Fcargo-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoipesMas%2Fcargo-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LoipesMas","download_url":"https://codeload.github.com/LoipesMas/cargo-select/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898185,"owners_count":20528331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","cargo-plugin","cargo-subcommand","developer-tools","fuzzy","fuzzy-matching","fuzzy-search","fzf","rust","rust-lang","tui","tui-rs"],"created_at":"2024-10-13T09:51:54.959Z","updated_at":"2025-03-22T02:31:35.626Z","avatar_url":"https://github.com/LoipesMas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-select\n### Cargo subcommand to easily run targets/examples/tests\nFuzzy match against targets, examples or tests in current rust project.\n[![asciicast](https://asciinema.org/a/QSaxIcXfjjjjyM4JGJwBZtZVS.svg)](https://asciinema.org/a/QSaxIcXfjjjjyM4JGJwBZtZVS)\n\n```\ncargo-select 0.2.0\nLoipesMas\nFuzzy-match targets/examples\n\nUSAGE:\n    cargo select [OPTIONS] [ARGS]\n\nARGS:\n    \u003cCARGO_COMMAND\u003e    Cargo command to run with selected target (e.g. \"run\").\n    \u003cPATTERN\u003e          Pattern to fuzzy-match targets with. Omit for interactive mode.\n    \u003cCARGO_ARGS\u003e...    Additional arguments to pass to cargo.\n\nOPTIONS:\n    -h, --help       Print help information\n        --no-skip    Run all tests that match selected test (i.e. dont skip names that are\n                     supersets)(tests only)\n    -V, --version    Print version information\n```\n\n`cargo select run` is special-cased to `cargo run` with `--package NAME` or `--example NAME`.\n\n`cargo select test` is special-cased to match against test names (deduced from source files) and run them with `cargo test`.  \nAlternatives:  \n- You *could* just do `cargo test NAME`, but it doesn't let you find tests by name and doesnt work well with workspaces\n- You *could* do a command similar to `cargo test -- --list | fzf | sed \"s/: .*//\" | xargs cargo test -- --exact`, but it requires compiling the tests which can take a lot of time and disk space on some projects (especially ones with a few workspaces). And it still has some limitations.\n\n## Installation\n### From crates.io\n`cargo install cargo-select`\n### From source\n```\ngit clone https://github.com/LoipesMas/cargo-select.git\ncd cargo-select\ncargo install --path .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floipesmas%2Fcargo-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floipesmas%2Fcargo-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floipesmas%2Fcargo-select/lists"}