{"id":50725209,"url":"https://github.com/fasterthanlime/cargo-wrapper","last_synced_at":"2026-06-10T03:30:49.224Z","repository":{"id":360261911,"uuid":"1249281606","full_name":"fasterthanlime/cargo-wrapper","owner":"fasterthanlime","description":"A wrapper around cargo that prevents using `-p` / `--package` (which ruins caching)","archived":false,"fork":false,"pushed_at":"2026-05-25T20:52:58.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T03:30:27.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fasterthanlime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T14:36:02.000Z","updated_at":"2026-05-25T20:53:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fasterthanlime/cargo-wrapper","commit_stats":null,"previous_names":["fasterthanlime/cargo-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fasterthanlime/cargo-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasterthanlime%2Fcargo-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasterthanlime%2Fcargo-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasterthanlime%2Fcargo-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasterthanlime%2Fcargo-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasterthanlime","download_url":"https://codeload.github.com/fasterthanlime/cargo-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasterthanlime%2Fcargo-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34136112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-10T03:30:48.469Z","updated_at":"2026-06-10T03:30:49.216Z","avatar_url":"https://github.com/fasterthanlime.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-wrapper\n\nMeant to live in your $PATH before `cargo`, so that it can call the \"real\" cargo\n(well, the next cargo) while preventing stupid things like using `--package`.\n\nThe installed binary is named `cargo`. Put it in a directory that appears before\nthe real Cargo binary on `PATH`; it will find and run the next executable named\n`cargo` after itself.\n\n## Install\n\nInstall it into its own root, not into `~/.cargo/bin`:\n\n```sh\ncargo install --git https://github.com/fasterthanlime/cargo-wrapper \\\n  --root ~/.local/cargo-wrapper \\\n  --force\n```\n\nThen put the wrapper before the real Cargo on `PATH`:\n\n```sh\nexport PATH=\"$HOME/.local/cargo-wrapper/bin:$PATH\"\nhash -r 2\u003e/dev/null || true\n```\n\nCheck the order:\n\n```sh\nwhich -a cargo\n```\n\nThe first `cargo` should be `~/.local/cargo-wrapper/bin/cargo`. A later one\nshould be the real Cargo executable, usually the rustup shim in `~/.cargo/bin`.\n\nFor local development:\n\n```sh\ncargo install --path . --root ~/.local/cargo-wrapper --force\n```\n\nIt rejects `cargo test` before forwarding the command, and points agents at\n`cargo nextest run` instead. If the rejected test command also used `-p foo` or\n`--package foo`, the diagnostic steers that selection to nextest's filter syntax:\n`cargo nextest run -E 'package(foo)'`.\n\nIt also rejects `-p` and `--package` on other commands before forwarding them.\nThe point is not style policing: package selection changes the set of crates\nbeing built, which changes the set of enabled features. The whole workspace\nneeds to establish one feature-unified build shape so Cargo stops invalidating\nand overwriting useful cache entries with partial-workspace feature sets.\nKeeping failures outside the selected crate visible is useful too, but the cache\ninvalidation is the main reason this wrapper exists.\n\nAgents should run whole-workspace commands instead:\n\n```sh\ncargo check --workspace\ncargo clippy --workspace -- -D warnings\ncargo nextest run --workspace --no-fail-fast\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasterthanlime%2Fcargo-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasterthanlime%2Fcargo-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasterthanlime%2Fcargo-wrapper/lists"}