5 ms·
Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example
by plmu 7y ago
Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example) and require much compile time. 204 crates needed to be compiled.
I found that, using yay or another aur helper on arch linux, having a few rust utilities installed that have regular updates, significantly slows down the average system upgrade time. I tend to avoid Rust programs for that reason.
- adimitrov 7y agoThat's the nature of these spare time one (wo)man side projects: packaging a piece of software for a wide variety of distributions and platforms is tedious and boring, so unless there's a large community (or money) involved, you have to compile it from source. Of course, you can always package your favourite utility for your favourite distribution. I'm sure the author would be thrilled to endorse your package in the Readme. Note also that Rust can compile to portable static binaries. This tool is available as such from the releases page on GH (it's in the readme)
- psibi 7y agoHow is that musl based binary built ? I saw the repositories travis configuration and wasn't able to find anything relevant.
- steveklabnik 7y agoThe simplest way is to pass the —target flag with the musl target; that should work unless you’re also including C code, and then it may Just Work or may need you to do something special.
- res0nat0r 7y agoI've been using `nethogs` for this for a long time, and it is already in most Linux repos and can be installed quickly. https://github.com/raboof/nethogs https://github.com/raboof/nethogs
- BenjiWiebe 7y agoNot at my computer atm, but nethogs won't list the process name/PID, will it?
- dima55 7y agoYes it does. That's the whole point
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- nineteen999 7y agoRPM and DEB packaging are going to help make it available to about 90% of Enterprise and cloud based Linux environments respectively. It's well worth the effort IMHO.
- husam212 7y agoI added a package that uses the pre-built binaries, `what-bin` in the AUR.
- ksrm 7y ago204 depedencies?! Is that normal for a Rust project?
- steveklabnik 7y agoDepends on the size. It’s not unheard of.
- aspaceman 7y agoRust has a really good package manager, so it's pretty standard for projects to depend on a lot of things just from that.
- Tyr42 7y agoNot too many direct deps Networking: pnet, ipnetwork, trust-dns-resolver, UI: tui, termion, structopt (CLI is UI) Utility: signal-hook, failure, chrono, regex, lazy_static, Async: tokio, async-trait None of those seem egregious.
- zamadatix 7y agoDirect dependencies is irrelevant, I could create a single dependency that wraps all of these and the problem being discussed remains unchanged.