mod-tempdir 1.0.0

Temporary directory and file management for Rust. Auto-cleanup on Drop, collision-resistant naming, orphan cleanup, cross-platform paths. Zero runtime deps by default; opt-in mod-rand feature for uniformly distributed naming. tempfile replacement at MSRV 1.75.
Documentation
//! Minimal example: create a temp directory, write a file, observe auto-cleanup.
//!
//! Run with: `cargo run --example basic`

use mod_tempdir::TempDir;

fn main() -> std::io::Result<()> {
    let dir = TempDir::new()?;
    println!("Created: {}", dir.path().display());

    let file = dir.path().join("greeting.txt");
    std::fs::write(&file, b"Hello from mod-tempdir!\n")?;
    println!("Wrote:   {}", file.display());

    println!("Contents: {}", std::fs::read_to_string(&file)?);
    println!("\n(directory will be deleted automatically when this program exits)");

    Ok(())
}