mozilla/sccache
View on GitHub ↗ ★ 7,865 Rust
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.
50 mentions on Hacker News by 43 people: 7 stories, 43 comments · first 2016-11-22 · latest 2026-10-01
20082026
-
You should have set up https://github.com/mozilla/sccache at minimum. Setting up compiler caching is routine for people coming from older compiled language backgrounds but it's often missed by people coming from languages like JS/TS who…
comment by Aurornis · 2026-10-01 · in How to speed up the Rust compiler in September 2026 -
…was probably compiling dependencies. If you give it another go, I would recommend a shared sccache. https://github.com/mozilla/sccache
comment by paholg · 2026-10-01 · in How to speed up the Rust compiler in September 2026 -
sccache can, but most of us don't have access to an sccache instance: https://github.com/mozilla/sccache
comment by 01HNNWZ0MV43FF · 2026-04-13 · in How to make Firefox builds 17% faster -
…[2] https://docs.conda.io/projects/conda/en/latest/user-guide/co... [3] https://github.com/mozilla/sccache
comment by goku12 · 2025-10-16 · in Why You Should Be Using Git Worktrees -
…but it gets you to a relatively pleasant speed still IME [1] https://github.com/rui314/mold [2] https://github.com/mozilla/sccache [3] https://github.com/rust-lang/rustc_codegen_cranelift
comment by chiffaa · 2025-08-28 · in Unexpected productivity boost of Rust -
You can: https://github.com/mozilla/sccache
comment by jakkos · 2025-06-12 · in Rust compiler performance -
https://github.com/mozilla/sccache
comment by Cyph0n · 2025-02-04 · in Roc rewrites the compiler in Zig -
…builds if you have a few machines sitting idle. (This is like distcc with extra features). [1]: https://github.com/mozilla/sccache
comment by goku12 · 2025-01-21 · in Ruff: Python linter and code formatter written in Rust -
sccache can help with compile times: https://github.com/mozilla/sccache
comment by tempodox · 2024-09-23 · in One Year of Rust in Production -
Use icecream or sccache. sccache optionally supports distributed builds. https://github.com/mozilla/sccache/blob/main/docs/Distribute...
comment by hi-v-rocknroll · 2024-04-29 · in Speeding up C++ build times -
They probably mean tools like distcc or sccache: https://github.com/distcc/distcc https://github.com/mozilla/sccache
comment by kwk1 · 2023-12-30 · in Tracking developer build times to decide if the M3 MacBook is worth upgrading -
…by configuring the CCACHE_BASEDIR option. There doesn't seem to be an exact equivalent in sccache. https://github.com/mozilla/sccache/issues/35
comment by slavik81 · 2023-12-24 · in Mozilla sccache: ccache with cloud storage -
Worth noting that the first commit in sccache git repository was in 2014 ( https://github.com/mozilla/sccache/commit/115016e0a83b290dc2... ). So I suppose that what "happened" happened waay back. Then in 2016 it seems like sccache was…
comment by CaptainOfCoit · 2023-12-24 · in Mozilla sccache: ccache with cloud storage -
So does project like Mozilla sccache. - https://github.com/mozilla/sccache
comment by wey-gu · 2023-12-22 · in Welcome to Apache OpenDAL -
I'm going to set up sccache [0] to use it tomorrow. We use MSVC, so EFS is off the cards. [0] https://github.com/mozilla/sccache/blob/main/docs/S3.md
comment by maccard · 2023-11-28 · in S3 Express Is All You Need -
https://github.com/mozilla/sccache is another option which addresses the use cases of both icecream and ccache (and also supports Rust, and cloud storage of artifacts, if those are useful for you)
comment by jgraham · 2023-06-01 · in Distcc: A fast, free distributed C/C++ compiler -
…well-known and that this comment is really more directed at TFA. [0] https://tangramvision.com [1] https://github.com/mozilla/sccache
comment by ThatGeoGuy · 2023-02-17 · in I love building a startup in Rust but wouldn't pick it again -
…binary and two lines of configuration to have a cache around rustc, so it's worth testing out. 1: https://github.com/mozilla/sccache
comment by wongarsu · 2023-02-03 · in Improving Rust compile times to enable adoption of memory safety -
…only two steps to install it and enable it globally, speeds up compilation time a lot as well: https://github.com/mozilla/sccache
comment by jackosdev · 2023-01-26 · in Pip and cargo are not the same -
…clean + full build cycles there's sccache[1]. [0] https://github.com/rust-lang/rust/pull/84762 [1] https://github.com/mozilla/sccache
comment by the8472 · 2023-01-06 · in A practical comparison of build and test speed between C++ and Rust -
Also see mozilla/sccache for Rust. https://github.com/mozilla/sccache
comment by quocanh · 2022-11-24 · in Ccache – a fast C/C++ compiler cache -
…here, and nopt only does it do that it does so _without sacrificing performance_ in many cases. [0] https://github.com/mozilla/sccache/blob/main/src/compiler/gc...
comment by maccard · 2022-11-18 · in Rust in the 6.2 kernel -
…as flexible or powerful as Bazel, but also vastly simpler to setup if all you want is caching. https://github.com/mozilla/sccache
comment by wongarsu · 2022-07-28 · in Rust is actually portable -
…not more. The binary cache is available in other flavours too. If you don't use go, then sccache ( https://github.com/mozilla/sccache ) may be useful.
comment by viraptor · 2022-06-26 · in We Halved Go Monorepo CI Build Time -
My first contribution to a Rust codebase was < https://github.com/mozilla/sccache/commit/da2934fcc2ed2a4ae2... >. It is adding the -fminimize-whitespace flag to the preprocessor command when available (New in Clang 14, <…
comment by meinersbur · 2022-05-12 · in Sccache – Shared Compilation Cache -
Sure, but they're nothing special, just lifted the recommendations from sccache and mold. sccache: https://github.com/mozilla/sccache#usage mold: https://github.com/rui314/mold#how-to-use My own cargo.toml: [build] rustc-wrapper =…
comment by vladvasiliu · 2022-04-23 · in Show HN: Fleet – Experimental build tool for Rust that’s up to 5x faster -
There is sccache ( https://github.com/mozilla/sccache ) so a first step would be looking to see why it isn't used more to see how to lower that barrier. Another idea is crate-build caching so local and CI can pull down a pre-built…
comment by epage · 2021-11-01 · in GCC Rust Monthly Report – October 2021 -
I'm not sure what you mean by a build cache, does sccache suit? https://github.com/mozilla/sccache
comment by rhooke · 2021-08-10 · in Rust in Production: Qovery -
Have you tried sccache? https://github.com/mozilla/sccache
comment by styluss · 2021-07-26 · in Understanding Rust futures by going way too deep -
…code is well-structured Rust and not too big, adding a cloud backend would be a nice project. [1] https://github.com/mozilla/sccache
comment by georgewfraser · 2021-06-03 · in Distributed Cloud Builds for Everyone -
…like sccache[0] can help with that in CI pipelines and when getting a new dev environment up. [0]: https://github.com/mozilla/sccache
comment by conradludgate · 2021-05-15 · in Things you can’t do in Rust (and what to do instead) -
…that I think bazel also does a bunch of these, but you need to use bazel as your build system. [0] https://github.com/mozilla/sccache [1] quickstart - https://github.com/mozilla/sccache/blob/master/docs/Distribu... [2] reference docs -…
comment by aidanhs · 2021-01-01 · in Distcc – distribute builds across multiple machines simultaneously (2006) -
https://github.com/mozilla/sccache
comment by Camas · 2020-09-03 · in Gitlab reducing free tier CI/CD minutes from 2000 to 400 minutes -
…using sccache. It saved a lot of compile time for me. You can find how to install and use it here: https://github.com/mozilla/sccache
comment by nicklauri · 2020-07-13 · in Rust Is Surprisingly Good as a Server Language -
…by most, but FWIW sccache has been pretty freakin' great for me at keeping build times manageable: https://github.com/mozilla/sccache And, LOL, just now finally read the readme, didn't even know I could archive the the cache over the…
comment by rubyn00bie · 2020-06-29 · in A Few More Reasons Rust Compiles Slowly -
…personally only used it locally for my Rust builds. [0]: https://github.com/icecc/icecream [1]: https://github.com/mozilla/sccache
comment by saghm · 2020-01-29 · in Hacking on Clang is surprisingly easy -
…instead of building the whole world from scratch. This already exists and is easy to use: https://github.com/mozilla/sccache
comment by steveklabnik · 2019-10-22 · in An Intern's Experience with Rust -
…(or mount an NFS share as the CARGO_TARGET_DIR, if you’re feeling adventurous or want fast CI) [0] https://github.com/mozilla/sccache
comment by _nhynes · 2019-08-21 · in Thoughts on Rust bloat -
…use sccache to at least save the time spent to compile the same version of a crate more than once. https://github.com/mozilla/sccache
comment by saghm · 2019-04-11 · in Rust 1.34.0 -
…10 minutes (there's quite a lot to build and test). If I could, I would love to have an sccache ( https://github.com/mozilla/sccache ) compatible distributed free caching solution for my C++ projects. That'd be a killer feature!
comment by Orphis · 2019-01-24 · in Microsoft’s Azure DevOps: An Unsatisfying Adventure -
I've been using sccache ( https://github.com/mozilla/sccache ) lately, and it mostly solves this problem for me (although I agree with what others have mentioned that the issue isn't that much of a deal-breaker for me given how…
comment by saghm · 2018-11-06 · in How to speed up the Rust compiler in 2018: NLL edition -
…they're generally placed within the relevant source file in the tree, like the cache tests here: https://github.com/mozilla/sccache/blob/6eadccc9d6752747766d... I also wrote some higher-level tests that test the server functionality:…
comment by tedmielczarek · 2016-11-22 · in Sccache, Mozilla’s distributed compiler cache, now written in Rust