pothos / rust-userland

Rust userland container image
MIT License
7 stars 0 forks source link

A few alternative to non-coreutils utilities #2

Open darleybarreto opened 2 years ago

darleybarreto commented 2 years ago

Hi,

I googled around a bit and found the following alternatives to some programs you listed on README

What do you think of those?

pothos commented 2 years ago

Thanks

Here some more: https://github.com/KillingSpark/zstd-rs https://github.com/orhun/systeroid for zstd and sysctl

There was also a start of porting bzip2 to rust but it stalled, a decoder exists, though: https://github.com/paolobarbolini/bzip2-rs

pothos commented 2 years ago

less implementation: https://github.com/jonfk/mless (stalled)

pothos commented 2 years ago

Maybe a wrapper around sd or fd could provide compatibility with sed or find, same for procs which could be used to provide ps or pgrep (and killall).

pothos commented 2 years ago

https://github.com/seanmonstar/reqwest could be used as alternative for curl and wget but currently it provides no CLI. Edit: there are https://github.com/raydwaipayan/rust-wget and https://github.com/ksk001100/ruget as CLIs

pothos commented 2 years ago

A netcat alternative is https://github.com/robiot/rustcat and an attempt for a drop-in was started in https://github.com/Dhole/rust-netcat (stalled)

darleybarreto commented 2 years ago

Looking at kirlo-editor repo, it seems to be stalled, tho I'm not sure if it has any task left to implement, since it's very simple. I know two other actively maintained editors: helix and zee.

darleybarreto commented 2 years ago

About relibc, I'm not sure mainline rust would work easily. We would need to compile it in the base container, which requires a C compiler too, because of libm and pthreads. I have no idea of what would require to use mustang, probably we wouldn't need to compile rustc, but we would be very lucky if it worked out of the box.

pothos commented 2 years ago

Looking at kirlo-editor repo, it seems to be stalled, tho I'm not sure if it has any task left to implement, since it's very simple.

The only slightly annoying bug I found was https://github.com/rhysd/kiro-editor/issues/16 but hitting Ctrl-L in the shell works around it.

Thanks for the other two editor suggestions, seems we should add those two! There is also https://github.com/nuta/noa but it needs nightly, thus I skipped it for now. Another candidate could be https://github.com/curlpipe/ox.

For relibc a new target would need to be defined, maybe this is possible without any changes. Another option could be to supply a different cc to rustc that does the linking against relibc instead of glibc (The build container already has a C compiler because that's what rustc usually invokes for linking).

P.S.: Alternative to df: https://dystroy.org/dysk/ And a replacement for sudo: https://github.com/memorysafety/sudo-rs Alternative to jq: https://github.com/01mf02/jaq

Also, https://github.com/uutils/findutils https://github.com/uutils/hostname https://github.com/uutils/procps https://github.com/uutils/util-linux https://github.com/uutils/diffutils and more: https://github.com/orgs/uutils/repositories?type=all