Configuring Rust

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Version

As Rust is a compiled language, it does not have to be installed at alwaysdata to be used. We do however provision with version 1.78 for the cargo executable.

You can compile your programs elsewhere, e.g. locally.

HTTP deployment

To deploy an HTTP application with Rust, create a User program type site in the Web > Sites section.

User Program Site Type
User Program Site Type

After compiling the program and loading it into your account, you need to specify the command that starts your Rust application, for example:

$ $HOME/myapp/hello

Your application must absolutely listen to IP and the port shown in the site configuration in the Command field. The IP / HOST and PORT environment variables can also be used.