[
  {
    "path": ".github/workflows/auto-tag.yml",
    "content": "name: Release\n\non:\n  push:\n    branches:\n      - master\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - id: compute_tag\n        uses: craig-day/compute-tag@v10\n        with:\n          github_token: ${{ github.token }}\n          version_scheme: continuous\n          version_type: major\n\n      - name: create release\n        uses: actions/create-release@v1\n        with:\n          tag_name: ${{ steps.compute_tag.outputs.next_tag }}\n          release_name: ${{ steps.compute_tag.outputs.next_tag }}\n          body: >\n            Automatic release of ${{ steps.compute_tag.outputs.next_tag }}\n        env:\n          GITHUB_TOKEN: ${{ github.token }}\n\n"
  },
  {
    "path": ".pre-commit-config.yaml",
    "content": "repos:\n-   repo: https://github.com/pre-commit/pre-commit-hooks\n    rev: v3.1.0\n    hooks:\n    -   id: check-byte-order-marker\n    -   id: check-case-conflict\n    -   id: check-merge-conflict\n    -   id: check-symlinks\n    -   id: check-yaml\n    -   id: end-of-file-fixer\n    -   id: mixed-line-ending\n    -   id: trailing-whitespace\n-   repo: https://github.com/pre-commit/pre-commit\n    rev: v2.5.1\n    hooks:\n    -   id: validate_manifest\n"
  },
  {
    "path": ".pre-commit-hooks.yaml",
    "content": "- id: fmt\n  name: fmt\n  description: Format files with cargo fmt.\n  entry: cargo fmt\n  language: system\n  types: [rust]\n  args: [\"--\"]\n- id: cargo-check\n  name: cargo check\n  description: Check the package for errors.\n  entry: cargo check\n  language: system\n  types: [rust]\n  pass_filenames: false\n- id: clippy\n  name: clippy\n  description: Lint rust sources\n  entry: cargo clippy\n  language: system\n  args: [\"--\", \"-D\", \"warnings\"]\n  types: [rust]\n  pass_filenames: false\n"
  },
  {
    "path": "README.md",
    "content": "# Rust hooks for pre-commit\n\n[Rust](https://www.rust-lang.org) tools package for [pre-commit](https://pre-commit.com).\n\n## Using rust tools with pre-commit\n\n```yaml\n-   repo: https://github.com/doublify/pre-commit-rust\n    rev: master\n    hooks:\n    -   id: fmt\n    -   id: cargo-check\n```\n\n## Passing arguments to rustfmt\n\n```yaml\n-   repo: https://github.com/doublify/pre-commit-rust\n    rev: master\n    hooks:\n    -   id: fmt\n        args: ['--verbose', '--edition', '2018', '--']\n```\n"
  },
  {
    "path": "hooks.yaml",
    "content": "-   id: fmt\n    name: fmt\n    description: Format files with cargo fmt.\n    entry: cargo fmt --\n    language: system\n    files: \\.rs$\n    args: []\n-   id: cargo-check\n    name: cargo check\n    description: Check the package for errors.\n    entry: cargo check\n    language: system\n    files: \\.rs$\n    pass_filenames: false\n-   id: cargo-clippy\n    name: cargo clippy\n    description: Run the Clippy linter on the package.\n    entry: cargo clippy -- -D warnings\n    language: system\n    files: \\.rs$\n    pass_filenames: false\n"
  }
]