{"id":13635767,"url":"https://github.com/frewsxcv/cargo-all-features","last_synced_at":"2025-10-08T00:05:07.571Z","repository":{"id":41466867,"uuid":"266655863","full_name":"frewsxcv/cargo-all-features","owner":"frewsxcv","description":"A Cargo subcommand to build and test all feature flag combinations.","archived":false,"fork":false,"pushed_at":"2025-09-22T15:33:44.000Z","size":87,"stargazers_count":165,"open_issues_count":32,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-23T17:58:13.732Z","etag":null,"topics":["cargo","feature-flags","rust","testing"],"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/frewsxcv.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-05-25T01:26:07.000Z","updated_at":"2025-09-19T21:15:38.000Z","dependencies_parsed_at":"2023-02-10T16:50:13.132Z","dependency_job_id":"bcf18f88-6479-486d-9d73-112456ce3f5e","html_url":"https://github.com/frewsxcv/cargo-all-features","commit_stats":{"total_commits":89,"total_committers":8,"mean_commits":11.125,"dds":0.2808988764044944,"last_synced_commit":"8983423ea35d3fc383ee2be93b57a6a96fc592a9"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/frewsxcv/cargo-all-features","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frewsxcv%2Fcargo-all-features","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frewsxcv%2Fcargo-all-features/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frewsxcv%2Fcargo-all-features/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frewsxcv%2Fcargo-all-features/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frewsxcv","download_url":"https://codeload.github.com/frewsxcv/cargo-all-features/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frewsxcv%2Fcargo-all-features/sbom","scorecard":{"id":411360,"data":{"date":"2025-08-11","repo":{"name":"github.com/frewsxcv/cargo-all-features","commit":"098e75d1f1d356b16d041f894c54b78732d0fc3e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":5,"reason":"Found 4/7 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/frewsxcv/cargo-all-features/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2022-0081"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T22:47:15.539Z","repository_id":41466867,"created_at":"2025-08-18T22:47:15.539Z","updated_at":"2025-08-18T22:47:15.539Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278866931,"owners_count":26059671,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["cargo","feature-flags","rust","testing"],"created_at":"2024-08-02T00:00:51.406Z","updated_at":"2025-10-08T00:05:07.566Z","avatar_url":"https://github.com/frewsxcv.png","language":"Rust","funding_links":[],"categories":["Development tools","开发工具 Development tools","Rust"],"sub_categories":["Build system","构建系统 Build system"],"readme":"# cargo-all-features\n\nCargo subcommands that build and test all feature flag combinations for a crate.\n\n\u003cimg src=https://i.imgur.com/OVBRtEC.png width=500\u003e\n\n## Install\n\n```\ncargo install cargo-all-features\n```\n\n## Usage\n\nRun cargo subcommands on a Cargo package or at the root of a Cargo workspace with all feature flag combinations:\n\n```\ncargo all-features \u003cSUBCOMMAND\u003e \u003cCARGO SUBCOMMAND FLAGS\u003e\n```\n\n### Example\n\nBuild crate with all feature flag combinations:\n\n```\ncargo all-features build \u003cCARGO BUILD FLAGS\u003e\n```\n\nCheck crate with all feature flag combinations:\n\n```\ncargo all-features check \u003cCARGO CHECK FLAGS\u003e\n```\n\nTest crate with all feature flag combinations:\n\n```\ncargo all-features test \u003cCARGO TEST FLAGS\u003e\n```\n\n## Why?\n\nIf you have a crate that utilizes Rust feature flags, it’s common to set up a test matrix in your continuous integration tooling to _individually_ test all feature flags. This setup can be difficult to maintain and easy to forget to update as feature flags come and go. It’s also not exhaustive, as it’s possible enabling _combinations_ of feature flags could result in a compilation error that should be fixed. This utility was built to address these concerns.\n\n## Options\n\nYou can add the following options to your Cargo.toml file to configure the behavior of cargo-all-features under the heading `[package.metadata.cargo-all-features]`:\n\n```toml\n[package.metadata.cargo-all-features]\n\n# Features \"foo\" and \"bar\" are incompatible, so skip permutations including them\nskip_feature_sets = [\n    [\"foo\", \"bar\"],\n]\n\n# If your crate has a large number of optional dependencies, skip them for speed\nskip_optional_dependencies = true\n\n# Add back certain optional dependencies that you want to include in the permutations\nextra_features = [\n    \"log\",\n]\n\n# Exclude certain features from the build matrix\ndenylist = [\"foo\", \"bar\"]\n\n# Always include these features in combinations.\n# These features should not be included in `skip_feature_sets` or `denylist`, they get\n# added in later\nalways_include_features = [\"baz\"]\n\n# The maximum number of features to try at once. Does not count features from `always_include_features`.\n# This is useful for reducing the number of combinations run for a crate with a large amount of features,\n# since in most cases a bug just needs a small set of 2-3 features to reproduce.\nmax_combination_size = 4\n\n# Only include certain features in the build matrix\n#(incompatible with `denylist`, `skip_optional_dependencies`, and `extra_features`)\nallowlist = [\"foo\", \"bar\"]\n\n# Disable the entire package from being tested (useful in a workspace)\n# skip_package = true\n```\n\nThe project also supports chunking: `--n-chunks 3 --chunks 1` will split the crates being tested into three sets (alphabetically, currently), and run the requested command for the first set of crates only. This is useful for splitting up CI jobs or performing disk cleanups since for large workspaces `check-all-features` and friends can take a very long time and produce a ton of artifacts.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrewsxcv%2Fcargo-all-features","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrewsxcv%2Fcargo-all-features","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrewsxcv%2Fcargo-all-features/lists"}