rust-playpen

(โ˜… 227)

A web interface for running Rust code

  • .gitignore
  • .travis.yml
  • Cargo.lock
  • Cargo.toml
  • LICENSE
  • playbot.toml.example
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/rust-lang/rust-playpen

Downloads the entire project code from GitHub to your computer.

cd rust-playpen

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • APT (Debian/Ubuntu ๊ณ„์—ด) Built into Debian/Ubuntu-based Linux distributions.
sudo apt-get install python-pip apt-transport-https ca-certificates libssl-dev pkg-config

Installs directly from the APT package repository (Debian/Ubuntu-based).

curl https://sh.rustup.rs | sh

Downloads and runs the official install script in one line โ€” this handles the full setup automatically.

sudo apt-get install linux-image-extra-$(uname -r) docker-engine

Installs directly from the APT package repository (Debian/Ubuntu-based).

โœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Rust

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Rust (rustup) Installing via rustup also installs cargo.
cargo run --bin playpen

Builds and then immediately runs the program.

cargo build --release --bin playpen && RUST_LOG=debug ./target/release/playpen 0.0.0.0 2>&1 | logger -t playpen

Compiles the Rust project.

cargo build --release --bin playbot && RUST_LOG=debug ./target/release/playbot 2>&1 | logger -t playbot

Compiles the Rust project.

โœ… If cargo build finishes without errors, it worked. The executable is created under target/.

Pulled directly from this repo's README.

// repository documentation