Skip to content

Latest commit

 

History

History

rust-dev

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

rust-dev

Dockerized development environment for Rust.

> Usage

./project.sh start      # build the image, generate `hello.rs` if it is missing, compile and run it
./project.sh clean      # remove the containers, images, volumes and all files here, after asking (--force: without)

./project.sh start generates docker-compose.yml and hello.rs, a "Hello World!" program, then installs the Rust 1.100.1 toolchain with rustup (into .rustup/ and .cargo/ in this directory), compiles the program with rustc and runs it in the rust container and prints its environment variables. Existing files are not overwritten, so you can develop your own project in their place.

On GNU/Linux project.sh adds your user and group id to the containers in docker-compose.yml, so the files they create in this directory are owned by you.

> Image

Based on debian:13.8 with rustup and build-essential. For games see bevy-dev.

A shell in the container, with this directory as the home directory:

docker compose run --rm rust bash

> License

Rust is free and open-source software dual-licensed under the MIT License or the Apache License 2.0, at your option.