{"id":21167728,"url":"https://github.com/actions-rust-lang/rustfmt","last_synced_at":"2025-07-09T17:33:41.318Z","repository":{"id":46867300,"uuid":"490850718","full_name":"actions-rust-lang/rustfmt","owner":"actions-rust-lang","description":"Check formatting of Rust code with rustfmt","archived":false,"fork":false,"pushed_at":"2024-10-01T20:57:14.000Z","size":83,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-11T07:47:02.451Z","etag":null,"topics":["ci","github-actions","hacktoberfest","rust","rust-lang","rustfmt"],"latest_commit_sha":null,"homepage":"","language":null,"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/actions-rust-lang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-05-10T20:27:47.000Z","updated_at":"2024-11-10T05:40:41.000Z","dependencies_parsed_at":"2023-01-11T17:22:56.720Z","dependency_job_id":"6319c14f-6dc6-4787-8e62-9c97eedfca15","html_url":"https://github.com/actions-rust-lang/rustfmt","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"2d1d4e9f72379428552fa1def0b898733fb8472d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rust-lang%2Frustfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rust-lang%2Frustfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rust-lang%2Frustfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rust-lang%2Frustfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-rust-lang","download_url":"https://codeload.github.com/actions-rust-lang/rustfmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225578938,"owners_count":17491282,"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":["ci","github-actions","hacktoberfest","rust","rust-lang","rustfmt"],"created_at":"2024-11-20T15:01:16.254Z","updated_at":"2024-11-20T15:01:31.886Z","avatar_url":"https://github.com/actions-rust-lang.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run `rustfmt`\n\nRun `cargo fmt --all` and report all formatting differences in a nice overview.\nIt works best in combination with [`actions-rust-lang/setup-rust-toolchain`] for [problem matcher] highlighting.\n\nExecution Summary:\n\n![The action reports any formatting issues found by rustfmt.](./imgs/rustfmt-results.png)\n\nProblem Matcher:\n\n![Annotation highlighting formatting differences.](./imgs/rustfmt-problem-matcher.png)\n\n## Example workflow\n\n```yaml\nname: \"Test Suite\"\non:\n  push:\n  pull_request:\n\njobs:\n  formatting:\n    name: cargo fmt\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      # Ensure rustfmt is installed and setup problem matcher\n      - uses: actions-rust-lang/setup-rust-toolchain@v1\n        with:\n          components: rustfmt\n      - name: Rustfmt Check\n        uses: actions-rust-lang/rustfmt@v1\n```\n\n## Inputs\n\nAll inputs are optional.\nIf a [toolchain file](https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file) (i.e., `rust-toolchain` or `rust-toolchain.toml`) is found in the root of the repository, it takes precedence.\nAll input values are ignored if a toolchain file exists.\n\n| Name            | Description                                                              | Default      |\n| --------------- | ------------------------------------------------------------------------ | ------------ |\n| `manifest-path` | Path to the `Cargo.toml` file, by default in the root of the repository. | ./Cargo.toml |\n\n[`actions-rust-lang/setup-rust-toolchain`]: https://github.com/actions-rust-lang/setup-rust-toolchain\n[problem matcher]: https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rust-lang%2Frustfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-rust-lang%2Frustfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rust-lang%2Frustfmt/lists"}