Exploring the problem of faster Cargo Docker builds

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

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

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. 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.

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

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

  • Rust the Process

    1 project | news.ycombinator.com | 27 Dec 2025
  • Reducing Cargo target directory size with -Zno-embed-metadata

    1 project | news.ycombinator.com | 2 Jun 2025
  • Rust registry error "candidate versions found which didn't match"

    1 project | dev.to | 4 Jan 2025
  • Things I know about Git commits

    1 project | news.ycombinator.com | 12 Jul 2024
  • Crates-io 0.32.0 (accidentally) downgraded and published again as 0.31.1? (2020)

    1 project | news.ycombinator.com | 28 May 2024

Did you know that Rust is
the 3rd most popular programming language
based on number of references?