Rust

Introduction

Warning

Rust applications belong in your home, not in your docroot.

Rust is a multi-paradigm programming language focused on performance and safety, especially safe concurrency. Rust is syntactically similar to C++, but provides memory safety without using garbage collection. The compiler is free and open-source software dual-licensed under the MIT License and Apache License 2.0.

Versions

Release Types

The Rust project uses a concept called ‘release channels’ to manage releases. For now we support the stable channel.

Crates

Packaged Rust projects are called crates. The crates.io website serves as an official repository for them. You can install binaries from there with the cargo install command:

[isabell@stardust ~] cargo install package-name

This downloads the source for package-name and compiles it. The resulting binaries are placed into $HOME/.cargo/bin/. Which is already included in your $PATH (unless you changed our default setup). You can find ways to configure this in the documentation for cargo install.

Connection to webserver

In order to make your application accessable from the outside, you need to connect it to the webserver, using a web backend.

Please note that your application must listen on the IP 0.0.0.0. You can choose any port between 1024 and 65535.