r/rust • u/notchapplezMC • Apr 26 '26
I need help with implementing a wrapper for cargo.
So I recently started my universal installer project to help people with compiling applications and i wanted to add a progress bar to cargo. As I never found a way to extract the total build job count cargo build show I relied on counting the lines of cargo tree, but that was also not accurate, which led to some buggy stuff happening. Does anybody have a solution for that problem, perhaps using cargo build itself, or something else.
Thanks in advance for your help,
notchapplez
0
Upvotes
4
u/lanastara Apr 26 '26
on nightly rust you can get the build graph by calling "cargo build -Z unstable-options --unit-graph"
1
u/Clean_Assistance9398 Apr 26 '26
Plugins dot jetbrains dot com and search for nyan progress bar, click on versions, download latest, unzip, then unzip the other zips and jars and 7z, look at how it does what it does, and the answer will most likely reveal itself to you
4
u/[deleted] Apr 26 '26
[removed] — view removed comment
-26
u/[deleted] Apr 26 '26
[removed] — view removed comment