Rust is a multi-paradigm programming language designed for performance and safety, especially safe concurrency.



Install rust with:

$ guix package -i rust
$ guix install rust:cargo

This will give you access to:

  • rustc
  • cargo


To compile a single file:

rustc run

To create a new project, and run it’s content:

$ cargo new hello_world
     Created binary (application) `hello_world` package
$ cd hello_world
$ cargo run
   Compiling hello_world v0.1.0 (/home/franz/git/hello_world)
    Finished dev [unoptimized + debuginfo] target(s) in 2.47s
     Running `target/debug/hello_world`
Hello, world!

Compilation issues

error occurred: Failed to find tool. Is cc installed?

export CC='ccmake'

PantherX & (unofficial) GNU Guix Wiki.

Last update: 2024-04-21 10:28:03 +0000 | Apache-2.0

Inspired by the excellent Arch Linux Wiki