Rust on balena - Hello world!

This is a very simple project that is an example of how to build and run Rust code on a device that is supported by balena. It showcases how to create a multi-staged build process, that results in an app image that does not have compilation tools embedded.

Multi-staged build process; using Dockerfile.template

Dockerfile.template file builds artifacts in release mode with optimizations by default and the final image does not contain build tools, Rust toolchain or the application source code. It contains the application binary only.

This sample application depends on the clap crate intentionally to demonstrate build artifacts caching.

Push to a device

Start an image build on a local-mode balena device:

balena push $DEVICE_IP -s .


Balena Rust Hello World

Example of how to deploy Rust code on a balena supported device.

Balena Rust Hello World Info

⭐ Stars 18
🔗 Source Code
🕒 Last Update 10 months ago
🕒 Created 5 years ago
🐞 Open Issues 3
➗ Star-Issue Ratio 6
😎 Author balena-io-examples