In this article we will build a simple HTTP server application in Rust, cross-compile it for the Raspberry Pi ARM architecture, deploy it to a Raspberry Pi board over a network connection, and install it as a persistent service so that it restarts automatically at boot time and upon crash.
For the rest of the article, there will be two devices involved:
- a development machine, for instance a Linux or Mac laptop or desktop computer, from which we do most of the development.
- a target board, for instance a Raspberry Pi 4, connected to the same network as the development machine, and to which we deploy the compiled binary. We assume that the target board is already configured to be reachable at a given IP address or hostname over the same network as the development machine, and has SSH exposed. We also assume that SSH is configured with public key based authentication, so that no password is required every time we connect to it. …