Skip to content

QuantumJunction/RustPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustPlayground

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.

Features

  • Minimal structure
  • Quick experiments without heavy setup
  • Optional isolated Cargo projects for different tests
  • Room for standalone .rs files or small modules

Getting Started

  1. Clone the repo
git clone https://github.com/QuantumJunction/RustPlayground.git
cd RustPlayground
  1. Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Update dependencies (if using Cargo projects)
cargo update

Structure

/
├── 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.md

Usage

Compile and run a single Rust file

rustc scratch/<file>.rs
./<file>

Run a Cargo project

cargo run --manifest-path experiments/<project>/Cargo.toml

Run tests

cargo test

Guidelines

  • 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/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages