Seems to consist mostly of a copy of Busybox’s C code auto-translated to Rust using c2rust – resulting in ubiquitous use of raw pointers and `unsafe` for mundane operations. That’s technically “written entirely in Rust”, but not in the way you’d expect… On the other hand, it could serve as a good starting point for a gradual rewrite into idiomatic Rust.
Show HN: RustyBox – a Busybox fork written in Rust
11–20 of 56 posts
Re: Show HN: RustyBox – a Busybox fork written in Rust
#12Re: Show HN: RustyBox – a Busybox fork written in Rust
#13Seems to consist mostly of a copy of Busybox’s C code auto-translated to Rust using c2rust – resulting in ubiquitous use of raw pointers and `unsafe` for mundane operations. That’s technically “written entirely in Rust”, but not in the way you’d expect… On the other hand, it could serve as a good starting point for a gradual rewrite into idiomatic Rust.
Re: Show HN: RustyBox – a Busybox fork written in Rust
#14https://git.busybox.net/busybox/tree/networking/httpd.c
Shame the rustybox version strips all the comments:
https://github.com/samuela/rustybox/blob/master/networking/h...
Re: Show HN: RustyBox – a Busybox fork written in Rust
#15What is this used for? I am interested in contributing
Re: Show HN: RustyBox – a Busybox fork written in Rust
#16Seems to consist mostly of a copy of Busybox’s C code auto-translated to Rust using c2rust – resulting in ubiquitous use of raw pointers and `unsafe` for mundane operations. That’s technically “written entirely in Rust”, but not in the way you’d expect… On the other hand, it could serve as a good starting point for a gradual rewrite into idiomatic Rust.
Re: Show HN: RustyBox – a Busybox fork written in Rust
#17What is this used for? I am interested in contributing
Out of curiosity, how does one become interested in contributing to a thing when one doesn't even know what the thing is?
Re: Show HN: RustyBox – a Busybox fork written in Rust
#18It's somewhat impressive that c2rust is can translate so much code, but without following it up with refactoring into more idiomatic Rust (which is a lot of work), this is merely replacing gcc with rustc.
Re: Show HN: RustyBox – a Busybox fork written in Rust
#19If this started with BusyBox translated from C to Rust, is this code also under the GPL, as is BusyBox? I don't see any LICENSE or COPYING files in the repo.
Re: Show HN: RustyBox – a Busybox fork written in Rust
#20I've always been interested in busybox and other similar tool sets - I even wrote a very simple set of coreutils clones at one point; but I've never really understood the use case. I like Rust & I like using modern tools when there's a benefit. But whatever coreutils Apple ship or come with a reasonable Linux distro seem to work 99% of the time for my work. Simpler & smaller I get for restricted embedded, I'm sure I'…