{"id":17864207,"url":"https://github.com/orf/cargo-bloat-action","last_synced_at":"2025-03-21T02:31:37.164Z","repository":{"id":37095811,"uuid":"230638314","full_name":"orf/cargo-bloat-action","owner":"orf","description":"Track rust binary sizes across builds using Github Actions","archived":true,"fork":false,"pushed_at":"2022-12-27T10:01:20.000Z","size":1950,"stargazers_count":97,"open_issues_count":36,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T12:11:22.042Z","etag":null,"topics":["actions","cargo","github-actions","rust"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-28T17:03:07.000Z","updated_at":"2025-02-21T11:12:54.000Z","dependencies_parsed_at":"2023-01-11T17:21:12.062Z","dependency_job_id":null,"html_url":"https://github.com/orf/cargo-bloat-action","commit_stats":{"total_commits":232,"total_committers":6,"mean_commits":"38.666666666666664","dds":0.4612068965517241,"last_synced_commit":"a4d9d71e47296bf4fdba433f6f0b54d7f3cf3ff0"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orf%2Fcargo-bloat-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orf%2Fcargo-bloat-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orf%2Fcargo-bloat-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orf%2Fcargo-bloat-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orf","download_url":"https://codeload.github.com/orf/cargo-bloat-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244725554,"owners_count":20499628,"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":["actions","cargo","github-actions","rust"],"created_at":"2024-10-28T09:09:24.209Z","updated_at":"2025-03-21T02:31:36.820Z","avatar_url":"https://github.com/orf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cargo Bloat Action :rocket:\n\nAnalyse and track your Rust project binary size over time. This action runs on every pull request and gives you a breakdown of\nyour total binary size, how much each crate contributes to that size and a list of changes to your dependency tree.\n\n**Table of Contents**\n\n* [Example workflow](#example-workflow)\n* [Screenshots](#screenshots)\n* [Why?](#why)\n* [Contribute](#contribute)\n\n## Example Workflow\n\nCheck out [cargo-bloat-example](https://github.com/orf/cargo-bloat-example/) for a full example project. For an example pull request,\nsee https://github.com/orf/cargo-bloat-example/pull/1.\n\n```yaml\non: # rebuild any PRs and main branch changes\n  pull_request:\n  push:\n    branches:\n      - master\n\nname: bloat\n\njobs:\n  cargo_bloat:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: Install Rust\n        uses: actions-rs/toolchain@v1\n        with:\n          toolchain: stable\n      - name: Run cargo bloat\n        uses: orf/cargo-bloat-action@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Options\n\n* `by_function` - Display per-function bloat instead of per-crate bloat\n* `bloat_args` - Custom arguments to pass to `cargo bloat`\n* `tree_args` - Custom arguments to pass to `cargo tree`\n* `exclude_packages` - packages to exclude from running `cargo bloat` on (useful for projects unsupported by cargo bloat such as static libraries).\n\n## Screenshots\n\n### Total size change\n\n![](./images/comment.png)\n\n### Size difference per crate\n\n![](./images/breakdown.png)\n\n### Changes in your dependency tree (`cargo tree`)\n\n![](./images/dependencies.png)\n\n## Why?\n\nI think it's important to track the size of your dependencies. It's not the most important thing, but I think these metrics belong in a\npull request that modifies dependencies in order to have a full picture of the impact the change makes and to make an informed decision\nbefore merging.\n\n## Contribute\n\nAll contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forf%2Fcargo-bloat-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forf%2Fcargo-bloat-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forf%2Fcargo-bloat-action/lists"}