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 /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rust-analyzer

    Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)

  • In https://github.com/rust-analyzer/rust-analyzer/issues/10818 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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