{"id":15994703,"url":"https://github.com/taiki-e/cargo-no-dev-deps","last_synced_at":"2026-04-01T19:36:42.942Z","repository":{"id":65208216,"uuid":"587715305","full_name":"taiki-e/cargo-no-dev-deps","owner":"taiki-e","description":"Cargo subcommand for running cargo without dev-dependencies.","archived":false,"fork":false,"pushed_at":"2026-03-20T08:17:02.000Z","size":201,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-20T23:26:44.487Z","etag":null,"topics":["cargo","cli","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taiki-e.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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},"funding":{"github":"taiki-e"}},"created_at":"2023-01-11T12:17:55.000Z","updated_at":"2026-03-20T09:06:43.000Z","dependencies_parsed_at":"2026-01-24T12:05:43.679Z","dependency_job_id":null,"html_url":"https://github.com/taiki-e/cargo-no-dev-deps","commit_stats":{"total_commits":45,"total_committers":2,"mean_commits":22.5,"dds":0.0444444444444444,"last_synced_commit":"8356e08080af7f3ef2acfb6a1fc428fe0931a682"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/taiki-e/cargo-no-dev-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcargo-no-dev-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcargo-no-dev-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcargo-no-dev-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcargo-no-dev-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taiki-e","download_url":"https://codeload.github.com/taiki-e/cargo-no-dev-deps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcargo-no-dev-deps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cargo","cli","rust"],"created_at":"2024-10-08T07:09:53.509Z","updated_at":"2026-04-01T19:36:42.934Z","avatar_url":"https://github.com/taiki-e.png","language":"Rust","funding_links":["https://github.com/sponsors/taiki-e"],"categories":[],"sub_categories":[],"readme":"# cargo-no-dev-deps\n\n[![crates.io](https://img.shields.io/crates/v/cargo-no-dev-deps?style=flat-square\u0026logo=rust)](https://crates.io/crates/cargo-no-dev-deps)\n[![license](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue?style=flat-square)](#license)\n[![github actions](https://img.shields.io/github/actions/workflow/status/taiki-e/cargo-no-dev-deps/ci.yml?branch=main\u0026style=flat-square\u0026logo=github)](https://github.com/taiki-e/cargo-no-dev-deps/actions)\n\nCargo subcommand for running cargo without dev-dependencies.\n\nThis is an extraction of the [cargo-hack's `--no-dev-deps` flag](https://github.com/taiki-e/cargo-hack#--no-dev-deps) to be used as a stand-alone cargo subcommand.\n\n- [Usage](#usage)\n- [Installation](#installation)\n- [Related Projects](#related-projects)\n- [License](#license)\n\n## Usage\n\n\u003cdetails\u003e\n\u003csummary\u003eComplete list of options (click to show)\u003c/summary\u003e\n\n\u003c!-- readme-long-help:start --\u003e\n```console\n$ cargo no-dev-deps --help\ncargo-no-dev-deps\n\nCargo subcommand for running cargo without dev-dependencies.\n\nUSAGE:\n    cargo no-dev-deps \u003cCARGO_SUBCOMMAND\u003e [OPTIONS] [CARGO_OPTIONS]\n\nOPTIONS:\n        --no-private    Perform without `publish = false` crates\n\nCARGO_SUBCOMMANDS:\n    build\n    check\n    ...\n```\n\u003c!-- readme-long-help:end --\u003e\n\n\u003c/details\u003e\n\nTo run `cargo check` without dev-deps:\n\n```sh\ncargo no-dev-deps check\n```\n\n\u003e [!NOTE]\n\u003e cargo-no-dev-deps modifies `Cargo.toml` and `Cargo.lock` while running and restores it when finished. Any changes you made to those files during running will not be preserved.\n\nIf you want exclude `publish = false` crates, you can exclude these crates by using `--no-private` flag.\n\n```sh\ncargo no-dev-deps --no-private check\n```\n\nThis flag is more powerful than [cargo-hack's `--ignore-private` flag](https://github.com/taiki-e/cargo-hack#--ignore-private), because this also prevents private crates from affecting lockfile and metadata.\n\n## Installation\n\n\u003c!-- omit in toc --\u003e\n### From source\n\n```sh\ncargo +stable install cargo-no-dev-deps --locked\n```\n\nCurrently, installing cargo-no-dev-deps requires rustc 1.85+.\n\ncargo-no-dev-deps is usually runnable with Cargo versions older than the Rust version\nrequired for installation (e.g., `cargo +1.59 no-dev-deps check`).\n\n\u003c!-- omit in toc --\u003e\n### From prebuilt binaries\n\nYou can download prebuilt binaries from the [Release page](https://github.com/taiki-e/cargo-no-dev-deps/releases).\nPrebuilt binaries are available for Linux (x86_64 gnu/musl, aarch64 gnu/musl, powerpc64le gnu/musl, riscv64gc gnu/musl, and s390x gnu, musl binaries are static executable), macOS (x86_64, aarch64, and universal), Windows (x86_64 and aarch64, static executable), FreeBSD (x86_64), and illumos (x86_64).\nAll releases are [immutable](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases) and releases since 0.2.23 publish [artifact attestations](https://docs.github.com/en/actions/concepts/security/artifact-attestations).\n\n\u003cdetails\u003e\n\u003csummary\u003eExample of script to install from the Release page with verifications (click to show)\u003c/summary\u003e\n\n```sh\n# Get host target.\nhost=$(rustc -vV | grep '^host:' | cut -d' ' -f2)\n# Download binary.\ncurl --proto '=https' --tlsv1.2 -fsSL -o cargo-no-dev-deps.tar.gz \"https://github.com/taiki-e/cargo-no-dev-deps/releases/latest/download/cargo-no-dev-deps-${host}.tar.gz\"\n# Verify release attestations.\ngh release -R https://github.com/taiki-e/cargo-no-dev-deps verify-asset cargo-no-dev-deps.tar.gz\n# Verify artifact attestations.\ngh attestation verify --repo taiki-e/cargo-no-dev-deps --signer-workflow taiki-e/github-actions/.github/workflows/rust-release.yml cargo-no-dev-deps.tar.gz\n# Install to $CARGO_HOME/bin (or $HOME/.cargo/bin if CARGO_HOME is unset).\ntar xf cargo-no-dev-deps.tar.gz -C \"${CARGO_HOME:-\"$HOME/.cargo\"}\"/bin\n# Remove archive.\nrm cargo-no-dev-deps.tar.gz\n```\n\n`gh release -R .. verify-asset` should output messages like the following (`\u003chash256\u003e`/`\u003chash1\u003e`/`\u003cversion\u003e` contains the actual SHA-256 digest of the downloaded file / the actual SHA-1 digest of tag / the actual version number):\n\n```text\nCalculated digest for cargo-no-dev-deps.tar.gz: sha256:\u003chash256\u003e\nResolved tag v\u003cversion\u003e to sha1:\u003chash1\u003e\nLoaded attestation from GitHub API\n\n✓ Verification succeeded! cargo-no-dev-deps.tar.gz is present in release v\u003cversion\u003e\n```\n\n`gh attestation verify` should output messages like the following (`\u003chash256\u003e` contains the actual SHA-256 digest of the downloaded file):\n\n```text\nLoaded digest sha256:\u003chash256\u003e for file://cargo-no-dev-deps.tar.gz\nLoaded 1 attestation from GitHub API\n\nThe following policy criteria will be enforced:\n- Predicate type must match:................ https://slsa.dev/provenance/v1\n- Source Repository Owner URI must match:... https://github.com/taiki-e\n- Subject Alternative Name must match regex: (?i)^https://github.com/taiki-e/\n- OIDC Issuer must match:................... https://token.actions.githubusercontent.com\n\n✓ Verification succeeded!\n\nThe following 1 attestation matched the policy criteria\n\n- Attestation #1\n  - Build repo:..... taiki-e/cargo-no-dev-deps\n  - Build workflow:. .github/workflows/release.yml@refs/heads/main\n  - Signer repo:.... taiki-e/github-actions\n  - Signer workflow: .github/workflows/rust-release.yml@refs/heads/main\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eExample of script to install from the Release page without verification (click to show)\u003c/summary\u003e\n\n```sh\n# Get host target.\nhost=$(rustc -vV | grep '^host:' | cut -d' ' -f2)\n# Download binary and install to $CARGO_HOME/bin (or $HOME/.cargo/bin if CARGO_HOME is unset).\ncurl --proto '=https' --tlsv1.2 -fsSL \"https://github.com/taiki-e/cargo-no-dev-deps/releases/latest/download/cargo-no-dev-deps-$host.tar.gz\" \\\n  | tar xzf - -C \"${CARGO_HOME:-\"$HOME/.cargo\"}\"/bin\n```\n\n\u003c/details\u003e\n\n\u003c!-- omit in toc --\u003e\n### On GitHub Actions\n\nYou can use [taiki-e/install-action](https://github.com/taiki-e/install-action) to install prebuilt binaries on Linux, macOS, and Windows.\nThis makes the installation faster and may avoid the impact of [problems caused by upstream changes](https://github.com/tokio-rs/bytes/issues/506).\n\n```yaml\n- uses: taiki-e/install-action@cargo-no-dev-deps\n```\n\n\u003c!-- omit in toc --\u003e\n### Via Homebrew\n\nYou can install cargo-no-dev-deps from the [Homebrew tap maintained by us](https://github.com/taiki-e/homebrew-tap/blob/HEAD/Formula/cargo-no-dev-deps.rb) (x86_64/AArch64 macOS, x86_64/AArch64 Linux):\n\n```sh\nbrew install taiki-e/tap/cargo-no-dev-deps\n```\n\n\u003c!-- omit in toc --\u003e\n### Via Scoop (Windows)\n\nYou can install cargo-no-dev-deps from the [Scoop bucket maintained by us](https://github.com/taiki-e/scoop-bucket/blob/HEAD/bucket/cargo-no-dev-deps.json):\n\n```sh\nscoop bucket add taiki-e https://github.com/taiki-e/scoop-bucket\nscoop install cargo-no-dev-deps\n```\n\n\u003c!-- omit in toc --\u003e\n### Via cargo-binstall\n\nYou can install cargo-no-dev-deps using [cargo-binstall](https://github.com/cargo-bins/cargo-binstall):\n\n```sh\ncargo binstall cargo-no-dev-deps\n```\n\n## Related Projects\n\n- [cargo-hack]: Cargo subcommand to provide various options useful for testing and continuous integration.\n- [cargo-llvm-cov]: Cargo subcommand to easily use LLVM source-based code coverage.\n- [cargo-minimal-versions]: Cargo subcommand for proper use of `-Z minimal-versions`.\n- [cargo-config2]: Library to load and resolve Cargo configuration.\n\n[cargo-config2]: https://github.com/taiki-e/cargo-config2\n[cargo-hack]: https://github.com/taiki-e/cargo-hack\n[cargo-llvm-cov]: https://github.com/taiki-e/cargo-llvm-cov\n[cargo-minimal-versions]: https://github.com/taiki-e/cargo-minimal-versions\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or\n[MIT license](LICENSE-MIT) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiki-e%2Fcargo-no-dev-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaiki-e%2Fcargo-no-dev-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiki-e%2Fcargo-no-dev-deps/lists"}