Re:Show HN: RustyBox – a Busybox fork written in Rust
by wrs on Thursday November 14, 2019 @07:23PM
(#21541098)
Given that busybox is structured as one function per command
and that it's compilable as a library already, I wonder if it would make more sense to use bindgen or the like to start with the actual busybox C code, but with a (trivial) Rust main function. You'd have the current busybox source compiling an ever-smaller library, and a Rust lib next to it. Then move things over to the Rust side one command at a time.
[ Parent
| on HN ]
Re:Show HN: RustyBox – a Busybox fork written in Rust
by skainswoo on Friday November 15, 2019 @12:00AM
(#21542304)
I've actually thought about doing this. There are some "applets" that are just so complex or have so many gotos that I really don't want to touch the rust code any more than I want to touch the C code, so it may make sense to take this route with them in the future.