Show HN: RustyBox – a Busybox fork written in Rust
1–10 of 56 posts
Re: Show HN: RustyBox – a Busybox fork written in Rust
#2Re: Show HN: RustyBox – a Busybox fork written in Rust
#3Re: Show HN: RustyBox – a Busybox fork written in Rust
#4Yes, literally. But figuratively, No, because you used the C as a higher order definition language and did translation not re-implementation.
So this might (in some cases) be bug for bug compatible (a good thing?) if the bug is a logic bug, not a C boundary error or a type cast effect or something not strictly defined. It isn't an "independently implemented suite" if you wanted to e.g. use it for conformance testing to a spec.
Re: Show HN: RustyBox – a Busybox fork written in Rust
#5Re: Show HN: RustyBox – a Busybox fork written in Rust
#6Seems 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.
* Replace some extern "C" includes with more idiomatic uses. Pretty straightforward find/replace-all usually does the trick. * Pick a utility, like cat or touch, and work on translating it into safer, more idiomatic rust. There are plenty of unsafes lying around that you can tackle!
Re: Show HN: RustyBox – a Busybox fork written in Rust
#7What is this used for? I am interested in contributing
Re: Show HN: RustyBox – a Busybox fork written in Rust
#8Re: Show HN: RustyBox – a Busybox fork written in Rust
#9I don't see any LICENSE or COPYING files in the repo.