rustybox icon indicating copy to clipboard operation
rustybox copied to clipboard

Is it possible to include some applets from toybox?

Open joeky888 opened this issue 4 years ago • 5 comments

Is it possible to include some applets from toybox?

For example the file command

Toybox is BSD licence and Busybox is GPL licence, I don't know if they can be mixed together :/

joeky888 avatar Mar 28 '20 21:03 joeky888

That would be cool! Based on my experience with c2rust so far, I think the easiest way forward is to do by-hand rewrites in rust for most new applets, but I'd be happy to consider PRs either way! Starting with fresh rewrites helps with the licensing situation as well.

samuela avatar Mar 28 '20 23:03 samuela

BTW, what is the licence of rustbox?

joeky888 avatar Mar 28 '20 23:03 joeky888

It's kind of weird right now... Busybox is GPL and rustybox is obviously transpiled from that. I'm not a lawyer, so I guess I'm just letting users figure out however they'd like to interpret the situation. The end goal is to gradually split rustybox into cargo workspaces with each applet in its own project. Then to slowly rewrite things from scratch with a less viral license.

samuela avatar Mar 29 '20 00:03 samuela

I'd be happy to consider PRs either way

I ported toybox file command to Go before, I think I can port it to Rust.

That would be cool

It would be cooler if rustybox has some handy commands like curl dig nmap 7z which are not available in both busybox and toybox.

I don't know why they made wget and nc but no curl command.

joeky888 avatar Mar 29 '20 04:03 joeky888

I don't know why they made wget and nc but no curl command.

No idea! Happy to have them in rustybox though! I think the ideal situation will be to split each of the applets into its own cargo workspace project. That way users can have very fine-grained control over what applets they'd like to compile and could mix-and-match their favorite rustybox distro.

samuela avatar Apr 07 '20 20:04 samuela