Programming

Small Rust tools for game projects

This sample note shows how technical writing can live alongside game development work. Little tools can make the daily loop of a project easier: inspect an asset, validate a data file, or turn a repetitive check into one command.

Start with one job

A useful helper does one thing clearly. Give it predictable input, readable errors, and output that can be used by both a person and a build script.

rust
fn main() -> Result<(), Box<dyn std::error::Error>> { let path = std::env::args().nth(1).ok_or("missing asset path")?; println!("checking {path}"); Ok(()) }

Keep the workflow visible

Document the command next to the project. The best tool is one the team remembers to use.

END OF NOTEMore writing →