{"id":25827072,"url":"https://github.com/guangie88/rustfmt-clippy","last_synced_at":"2026-01-03T09:05:52.541Z","repository":{"id":48585192,"uuid":"120247031","full_name":"guangie88/rustfmt-clippy","owner":"guangie88","description":"Dockerfiles to include rustc, cargo, rustfmt and clippy.","archived":false,"fork":false,"pushed_at":"2021-07-19T14:17:58.000Z","size":17,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-11T16:08:16.227Z","etag":null,"topics":["clippy","docker","rust","rustfmt"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/guangie88.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":"2018-02-05T02:52:50.000Z","updated_at":"2021-01-15T11:18:48.000Z","dependencies_parsed_at":"2022-09-04T17:00:29.464Z","dependency_job_id":null,"html_url":"https://github.com/guangie88/rustfmt-clippy","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangie88%2Frustfmt-clippy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangie88%2Frustfmt-clippy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangie88%2Frustfmt-clippy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guangie88%2Frustfmt-clippy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guangie88","download_url":"https://codeload.github.com/guangie88/rustfmt-clippy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241176625,"owners_count":19922732,"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":["clippy","docker","rust","rustfmt"],"created_at":"2025-02-28T15:52:21.180Z","updated_at":"2026-01-03T09:05:52.473Z","avatar_url":"https://github.com/guangie88.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rustfmt-clippy\n\n[![Build Status](https://travis-ci.org/guangie88/rustfmt-clippy.svg?branch=master)](https://travis-ci.org/guangie88/rustfmt-clippy)\n[![Docker Image Layers](https://images.microbadger.com/badges/image/guangie88/rustfmt-clippy.svg)](https://microbadger.com/images/guangie88/rustfmt-clippy)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nBuilds a Rust environment Docker image to get an easy-to-use working code\nformatting and linting set-up for CI/CD, executable for any user.\n\nPeriodically run by CI to automatically push valid Docker images into the\n[Docker registry](https://hub.docker.com/r/guangie88/rustfmt-clippy). This\nbuilds for all three toolchains, `stable`, `beta` and `nightly`.\n\nNote that the underlying distribution is currently Debian based.\n\n## How to use\n\nThe designated directory for the Rust project directory is `/volume`.\n\nAssuming your current `pwd` is at the desired Rust project directory to build:\n\n```bash\ndocker run --rm -it -v `pwd`:/volume -u `id -u`:`id -g` guangie88/rustfmt-clippy:stable cargo fmt\ndocker run --rm -it -v `pwd`:/volume -u `id -u`:`id -g` guangie88/rustfmt-clippy:stable cargo clippy\ndocker run --rm -it -v `pwd`:/volume -u `id -u`:`id -g` guangie88/rustfmt-clippy:stable cargo build\n```\n\nThe above runs various cargo subcommands as your current host user, and saves\nthe Cargo cache within `.cargo` in your Rust project directory. You should\nput `.cargo` into your `.gitignore` if you are planning to frequently use this\nDocker image for your development.\n\n## Executables included\n\n- `cargo` and `rustc`\n- `rustfmt` (i.e. `cargo fmt`)\n- `clippy` (i.e. `cargo clippy`)\n\n## Development libraries included\n\n- `default-libmysqlclient-dev`\n- `libpq-dev`\n- `libsqlite3-dev`\n- `libssl-dev`\n- `libcurl4-openssl-dev`\n- `zlib1g-dev`\n\n## Scripts executed by CI\n\n```bash\ndocker build \\\n    --build-arg RUST_CHANNEL=${RUST_CHANNEL} \\\n    -t guangie88/rustfmt-clippy:${RUST_CHANNEL} \\\n    .\n```\n\nThe `latest` tag is deprecated since 6 July 2019, as such, it is recommended to\nuse `stable`, which corresponds to the `stable` toolchain of `rustup`.\n\nIf `nightly` toolchain must be used, then it is recommended to pin to\n`nightly-yyyy-mm-dd`, where `yyyy-mm-dd` is the year/month/day nightly build\ndate, since `nightly` builds are possibly unstable across different dates.\n\n## Acknowledgement\n\nThis repository is clearly inspired by:\n[https://github.com/clux/muslrust](https://github.com/clux/muslrust), so thanks\nto the author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguangie88%2Frustfmt-clippy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguangie88%2Frustfmt-clippy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguangie88%2Frustfmt-clippy/lists"}