Help me love Rust - compilation time

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

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

    Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

    Check out sccache. Use CARGO_TARGET_DIR to provide a space where compilation happens across multiple projects (and therefore can be reused). I set my CARGO_TARGET_DIR to a /tmp folder. Depending on your size of RAM, you could set it to a ramdisk.

  • mold

    Mold: A Modern Linker 🦠

    One trick is using a faster linker- try mold if you can.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • fleet

    🚀 The blazing fast build tool for Rust. (by dimensionhq)

    fleet is an awesome tool for faster builds for non-production purposes. In some cases it gave me 10-15x compilation speed.

  • cargo-watch

    Watches over your Cargo project's source.

    Also check out cargo-watch -- https://crates.io/crates/cargo-watch

  • rust-analyzer

    A Rust compiler front-end for IDEs

    Might've been hit by https://github.com/rust-lang/rust-analyzer/issues/6136 One workaround is to https://www.reddit.com/r/rust/comments/zxep9p/reduce_build_times/j21k62a/

  • 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.

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