What's the best practice for caching compilation of Rust dependencies?

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • crane

    A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.

  • https://github.com/ipetkov/crane seems very promising

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

  • I thought sccache also supports remote compilation. But maybe I misunderstood https://github.com/mozilla/sccache/blob/main/docs/DistributedQuickstart.md

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

    InfluxDB logo
  • cargo-quick

    Discontinued (currently vapourware) A cargo subcommand to quickly bootstrap your dependency tree on first build

  • Hi. Sorry I'm late to the party. The approach that you suggest is similar to something that I was considering as well. https://github.com/cargo-quick/cargo-quickbuild contains a description of what I think you would need. Basically, it would look a bit like cargo-chef, but with a way to parse the crate dependency graph and split it out into subtrees.

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

  • Transitioning to Rust as a company

    8 projects | /r/rust | 2 Jun 2023
  • How to setup devShell for rust development with bevy?

    2 projects | /r/NixOS | 14 Nov 2022
  • Nix-ifying a Rust project

    12 projects | /r/rust | 7 Apr 2021
  • NixOS: Declarative Builds and Deployments

    13 projects | news.ycombinator.com | 14 Jan 2024
  • Help with building a 32bit library with cargo

    3 projects | /r/NixOS | 7 Apr 2023