rust-lang

    rust-lang/rustfmt

    Format Rust code

    developer-tools
    codeformatter
    formatter
    rust
    rustfmt
    Rust
    Apache-2.0
    7.0K stars
    1.1K forks
    7.0K GitHub watchers
    Updated Nov 1, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 411 contributors on GitHub.

    Gained 18% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Formats Rust source code according to official style guidelines to ensure consistent code appearance.
    • Provides seamless integration with Cargo and editor plugins for automated, standardized Rust code formatting.
    • Use for enforcing consistent Rust code style in CI pipelines to prevent unformatted code merges.
    • Use for automatically formatting Rust projects during development via editor integrations like VS Code or Vim.
    • Use for customizing Rust code style with configuration files to match team or project-specific formatting preferences.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    A tool for formatting Rust code according to style guidelines.

    If you'd like to help out (and you should, it's a fun project!), see Contributing.md and our Code of Conduct.

    You can use rustfmt in Travis CI builds. We provide a minimal Travis CI configuration (see here).

    You can run rustfmt with Rust 1.24 and above.

    Excerpt from the rust-lang/rustfmt README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    1.1K+40

    Open issues

    947+9

    Compared with peers in Developer Tools

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    rust-lang/rustfmt compared with Developer Tools repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    stablyai/orca116.8K+6.6K40today
    affaan-m/ECC297.9K+5.2K6335 days ago
    DietrichGebert/ponytail185.3K+5.1K607 days ago
    herdrdev/herdr48.3K+1.7K5922 days ago
    The-PR-Agent/pr-agent15.1K+1.5K6411 days ago
    rust-lang/rustfmt7.0K—45—
    Category median116.8K+5.1K60—

    Also by rust-lang

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description