| Crates.io | rustedbytes-randstuff |
| lib.rs | rustedbytes-randstuff |
| version | 0.2.0 |
| created_at | 2025-10-11 10:21:06.845555+00 |
| updated_at | 2025-10-11 10:21:06.845555+00 |
| description | Rust CLI tool for generating random junk files and folders with various content themes |
| homepage | https://github.com/mad4j/rustedbytes-randstuff |
| repository | https://github.com/mad4j/rustedbytes-randstuff |
| max_upload_size | |
| id | 1878053 |
| size | 62,875 |
Rust CLI tool for generating random junk
random: Random binary datatext: Lorem Ipsum-style text contentsource-code: Rust-style source codeoffice: XML-like office document contentimage: Binary content with PNG-like headersBuild from source:
cargo build --release
The binary will be available at target/release/randstuff
# Generate a random binary file
randstuff --output myfile.bin --theme random --max-size 1024
# Generate a text file
randstuff --output document.txt --theme text --max-size 2048
# Generate a source code file
randstuff --output code.rs --theme source-code --max-size 1500
# Generate an office document
randstuff --output document.xml --theme office --max-size 3000
# Generate an image file
randstuff --output image.png --theme image --max-size 5000
# Generate 10 random binary files
randstuff --output mydir --theme random --max-size 1024 --count 10
# Generate 5 source code files
randstuff --output src_files --theme source-code --max-size 2048 --count 5
-o, --output <OUTPUT>: Output path (file or directory) - required-t, --theme <THEME>: Content theme (default: random)
random, text, source-code, office, image-m, --max-size <MAX_SIZE>: Maximum size in bytes for each file (default: 1024)-c, --count <COUNT>: Number of files to generate (for directory mode)# Generate a single 500KB text file
randstuff -o large.txt -t text -m 500000
# Generate 20 small random files in a folder
randstuff -o junk_folder -t random -m 100 -c 20
# Generate 5 office documents up to 10KB each
randstuff -o documents -t office -m 10240 -c 5
This project uses an automated release workflow. To create a new release:
auto (default): Automatically determines version based on conventional commits
! or BREAKING CHANGE:) → major version bumpfeat: commits) → minor version bumpfix: commits) → patch version bumpmajor: Manually trigger a major version bump (e.g., 1.0.0 → 2.0.0)minor: Manually trigger a minor version bump (e.g., 1.0.0 → 1.1.0)patch: Manually trigger a patch version bump (e.g., 1.0.0 → 1.0.1)The workflow will:
Cargo.toml with the new versionNote: First release requires a CARGO_REGISTRY_TOKEN secret to be configured in the repository settings for publishing to crates.io.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.