Should an existing Rust project switch from two-space tabs to four-space tabs to match the Rust style guide?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • rust-analyzer

    A Rust compiler front-end for IDEs

    In it is mentioned that RA also calls rustfmt, maybe that why I see mostly well formatted code despite it having still issues with the let/match conversion. That's why I said it not being consistent. If RA could reliably reformat after code transformations, it wouldn't even matter too much if the snippets are hard coded or not.

  • agora

    File server that accepts Lightning Network payments for downloads (by agora-org)

    I'm the co-author of an existing Rust project that uses two-space tabs. I personally prefer two-space tabs, but was thinking that maybe we should switch to four-space tabs, since it's the standard, to make it easier for new contributors, and possibly more familiar for people looking at the code.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts