hybridgroup / mechanoid

Mechanoid is a framework for WebAssembly applications on embedded systems and IoT devices.
https://mechanoid.io
Apache License 2.0
170 stars 8 forks source link

cmd/mecha: add ability to compile Zig modules using mecha build command #29

Closed deadprogram closed 3 months ago

deadprogram commented 3 months ago

This PR extends cmd/mecha by adding the ability to compile Zig modules using the mecha build command.

deadprogram commented 3 months ago

Added support for Rust/Zig module templates to this PR.

Create TinyGo module:

mecha new module -template=github.com/hybridgroup/mechanoid-templates/modules/ping ping2

Create Rust module:

mecha new module -template=github.com/hybridgroup/mechanoid-templates/modules/pingrs -type=rust pingrs

Create Zig module:

mecha new module -template=github.com/hybridgroup/mechanoid-templates/modules/pingzig -type=zig pingzig
deadprogram commented 3 months ago

Thanks for review @orsinium now merging.