Exploring the problem of faster Cargo Docker builds

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

    The Rust package manager

  • This is the most popular issue on the Cargo repository. The issue revolves around the fact that currently, it is not trivial to define Dockerfiles for Cargo projects that would skip rebuilding dependencies after any source code change. This means that each Docker build of a Cargo project can be quite slow and Docker layer caching cannot be used to its full effect, unlike with some other builds systems, e.g. npm (NodeJS), pip (Python) or gem (Ruby), where it's quite straightforward.

  • cargo-chef

    A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.

  • A tool already exists for this called Cargo-chef, and it works extremely well.

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

    Discontinued Miniature experienced

  • I created this terrible github workflow to build a dockerfile with Swatinem's rust-cache, and then copy it into the dockerfile already built. This is incredibly error prone. I would love something built-in.

  • monadium

    A platform with the purpose to teach Rust web development to people with no prior experience of programming

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