rust-musl-builder makes it possible to create small statically-linked Rust binaries. Google App Engine makes deploying projects written in any language so easy. This setup combines both tools to provide a startpoint for building an effortless, lightweight, performant and automatically scaling REST-Endpoint.
Dockerfileis used by Google App Engine as runtime for the project. It is very minimal and only includes the statically-linked binary.
build.shuses rust-musl-builder to build the statically linked binary i.e., the server.
- Build the project with
$ sh build.sh. This requires Docker.
- Deploy the server with
$ gcloud app deploy.