rust-playpen
A web interface for running Rust code
File Explorer
Download Latest Version (.zip)- compile.sh
- evaluate.sh
- build.sh
- Dockerfile-beta
- Dockerfile-nightly
- Dockerfile-stable
- install.sh
- playbot.rs
- playpen.rs
- docker.rs
- lib.rs
- web.css
- web.html
- web.js
- .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 RecommendedPrerequisites
- 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
MediumPrerequisites
- 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
Was this content helpful?
(0 ratings)
