rust-include-files-example icon indicating copy to clipboard operation
rust-include-files-example copied to clipboard

Busybox like module / applet structure

Open pwFoo opened this issue 4 years ago • 0 comments

Hi, I'm new with rust and try to build a modular small app / binary file in busybox applet design. Your repository helps me to understand file including, so maybe you can give me a hint how to build a busybox applet style application binary?

Thanks to some reading I get loaded / included modules (optional) features, but searching for a app base which add "applets" by features and dynamically route subcommands (first argument) to the applet / module(?) in a subdirectory structure.

app
- src
-- main.rs 
- applets
-- applet1
--- [applet1 files]
-- applet2
--- [applet2 files]
[...]

It's not important if the applet directory is inside of src or outside. Maybe optional external "src directory" to include an external (local) applet would also fine...

Next problem is a "dynamic routing" of subcommands (first argument) to the right feature / module / applet without the need of add all the applets line by line to the source code as subcommand => mod_function.

Is that possible?

pwFoo avatar Dec 31 '20 16:12 pwFoo