RogueBasin
Menu (Edit):
Contents:
  1. Rust
    1. Rust Libraries
    2. Rust Tutorials
    3. Rust Roguelikes
    4. References

Rust


Rust is a systems programming language from Mozilla Research. It is a viable replacement for C++ and is used by Mozilla to write a next-generation web browser engine. Unlike most high-level programming languages that use garbage collection, Rust uses the scope-delimited memory management idiom of C++ with stronger enforcement at the language level. It uses an abstraction idiom similar to Haskell’s type classes instead of OO, and supports reasonably extensive generic programming with type parameters that can be constrained to implemented traits. It has a macro system.

The language and type system have been designed to make it impossible to create memory safety violations outside regions explicitly marked as unsafe, while maintaining C++-style explicit memory handling. The cost for this is a somewhat complex core language with various smart pointer types and the occasional need for explicit lifetime annotations.

Writing FFI bindings to C code is easy. The Cargo tool handles builds and dependencies to third-party packages. There is built-in unit test and benchmark support.

Rust Libraries

  • tcod-rs: libtcod 1.5.1 bindings for Rust, last git commit: August 29, 2018
  • rltk-rs: A libtcod-like library for Rust, last git commit: September 11, 2019

Rust Tutorials

Rust Roguelikes

References