A simple space for experimenting with Rust snippets, testing features, and trying out ideas. Nothing here is meant to be tidy or final — it’s just a sandbox.
- Minimal structure
- Quick experiments without heavy setup
- Optional isolated Cargo projects for different tests
- Room for standalone .rs files or small modules
- Clone the repo
git clone https://github.com/QuantumJunction/RustPlayground.git
cd RustPlayground- Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh- Update dependencies (if using Cargo projects)
cargo update/
├── experiments/ # Small Cargo projects or isolated tests
│ ├── exp1/
│ │ └── src/main.rs
│ └── exp2/
├── scratch/ # Loose .rs files without a full Cargo setup
├── utils/ # Reusable helper modules
├── LICENSE
└── README.mdCompile and run a single Rust file
rustc scratch/<file>.rs
./<file>Run a Cargo project
cargo run --manifest-path experiments/<project>/Cargo.tomlRun tests
cargo test- Keep experiments separated so they don’t interfere with each other.
- Throw away what’s not useful.
- Anything that might be handy more than once goes into utils/.