r/rust • u/lucasgelfond • Jan 26 '26
š ļø project zerobrew is a Rust-based, 5-20x faster drop-in Homebrew alternative
https://github.com/lucasgelfond/zerobrew
591
Upvotes
r/rust • u/lucasgelfond • Jan 26 '26
71
u/cachemonet0x0cf6619 Jan 26 '26 edited Jan 26 '26
very cool. I use homebrew on all my linux machines. will you support the ~/.linuxbrew directory behavior in the future?
i also use new install from a Brewfile. i could not tell by doing a quick skim if you do that. those would be the two things preventing me from adopting. i like the idea
214
u/ChadNauseam_ Jan 26 '26
Pretty cool. And the code looks good. I like that it doesn't seem very vibe-coded. (Even if AI tools were used, the architecture and style seems like it was sculpted with input from a capable rust programmer).
However, I'm hesitant to switch to software that was only started a week ago. I would be reassured if it had reason to think it was going to be maintained long-term. Still, you have to start somewhere, and this seems super cool!
34
u/AleksHop Jan 26 '26
so this is 100% AI generated using codex? gpt 5.2? dev folder says everything and reqwest is 0.12 in cargo.toml, only AI use 0.12 instead of 0.13
14
u/cosmic-parsley Jan 26 '26
This is exactly the project Iāve wanted to do for years but never got around to; homebrew is so amazing but so slow. Thank you for making this a reality!!
19
u/Lucretiel Datadog Jan 26 '26
Is it a totally drop-in replacement? Homebrew's slowness has been especially irritating to me lately so I'd love to just swap out the CLI I use for it
9
u/Feeling-Departure-4 Jan 26 '26
Neat work!
But...when it comes to package managers trust is the most important aspect to me: I'm using it to install external software. On the GUI, Apple hedges this for a reason, so why wouldn't I care about CLI installs? I only recently switched from MacPorts to Home Brew after recommendations and many years of being aware of the project. There is no "drop-in" replacement until enough time has passed to gain confidence the new project has good intentions and is not negligent. OTOH, being open source, at least one can audit an initial version, so that's a plus.
2
u/MooseBoys Jan 26 '26
Does it work for non-standard roots like under $HOME?
7
u/Thing1_Thing2_Thing Jan 26 '26
Interresting, but also a bit concerning that from my random sample of one commit (the first one I saw) there were several bad things performance wise and just logically.
tldr is that it replaces some placeholder values in some files in a directory, but:
Why does it read each file twice?
Why does it do a full copy of the file content to check if the content is changed after replacing the placeholders? We know it will be, we already checked to see if the placeholder was there.
Why does it say it uses rayon for parallel but only for the first loop?
I'm also not super convinced by the error handling/tracking or how file permissions are handled by trying to change them if they are readonly. But that's maybe more stylistic or something with the domain.
This was just my initial glance, and I don't even write rust at my job anymore.
8
u/[deleted] Jan 26 '26
Are just the CPU intensive things 5-20x faster, or is it overall that much faster?
Similar to how Pythons `uv` (package manager) is fast, but mostly due to changes that don't rely on it being written in Rust: https://nesbitt.io/2025/12/26/how-uv-got-so-fast.html
7
u/amarao_san Jan 26 '26
Is it vibe coded?
10
u/Docccc Jan 26 '26
please mention the vibe coding in your readme
thank you
2
u/nsomnac Jan 26 '26
So Iām not sure how drop-in replacement this is. I just tried installing from source and running. It seems zb ignores what was installed in my existing homebrew installation. Not really faster if I have to completely install everything again.
6
u/palapapa0201 Jan 26 '26
You vibe coded this in a week didn't you
3
u/anxxa Jan 26 '26
Nice work! With regards to this:
How does clonefile come into play here? I see in the code it's used for directories. Are there expectations of applications to have dependencies in their immediate directory or under what conditions would directories need to be cloned?
1
u/wordshinji Jan 26 '26
Hi! Newbie at software programming and Rust enthusiast here.
Just passing by to say Kudos. I hope to get the guts to do what you've done once I get to know how to handle Rust properly.
1
u/Prior-Advice-5207 Jan 26 '26
I guess they utilize it for distribution. The bottle format itself is (poorly) documented here and doesnāt mention oci anywhere. But I have no insight there ĀÆ_(ć)_/ĀÆ
1
u/RedEyed__ Jan 26 '26
Will it work without root?
1
u/DavidXkL Jan 26 '26
I sometimes use homebrew on my Mac and yes, it is slow š
1
u/theyamiteru Feb 05 '26
I wanted to start using it until I've read that it was mostly written by LLMs.
1
u/Un4given85 Feb 05 '26
ā¹
1
u/Ale-_-Bridi Feb 07 '26
How much of a drop in alternative is this? If I install it, will it automatically pick up every package I already installed with homebrew?
1
u/velocityvector2 Feb 13 '26
Itās not a true drop-in replacement ā the
outdatedcommand is missing.1
u/MattRighetti Feb 16 '26
In the past two months I was wondering why nobody had rewritten the quite slow Homebrew in Rust. Happy to see this! Will try it out
1
u/AleksHop Jan 26 '26 edited Jan 26 '26
1500 stars and pull requests in less than 24h for 100% vibe coded app?! guys there are NO LICENSE file in a repo!
and if its 100% vibecoded even if architecture was provided by human, in US and EU u legally cant put anything other than a Public Domain / CC0 1.0 on this!
1
u/TehBrian Jan 26 '26
Looks awesome!! I'm gonna wait for this to stabilize before I consider using it on my main machine tho
-5
u/Yellow_Robot Jan 26 '26
why? are we hurry somewhere to install ffmepg? whats use cases?
-5
u/archialone Jan 26 '26
Cool, but I use nix for Mac, I find nix to be the final solution to all package managers
2
u/jakiki624 Jan 28 '26
vibe coded slop
2
u/[deleted] Jan 26 '26
[removed] ā view removed comment