rustedbytes-randstuff-0.2.0 is not a library.
rustedbytes-randstuff
Rust CLI tool for generating random junk
Features
- Generate single files or directories with multiple files
- Multiple content themes:
random: Random binary datatext: Lorem Ipsum-style text contentsource-code: Rust-style source codeoffice: XML-like office document contentimage: Binary content with PNG-like headers
- Configurable maximum file size
- Automatic file extension based on theme
Installation
Build from source:
The binary will be available at target/release/randstuff
Usage
Generate a single file
# Generate a random binary file
# Generate a text file
# Generate a source code file
# Generate an office document
# Generate an image file
Generate multiple files in a directory
# Generate 10 random binary files
# Generate 5 source code files
Options
-o, --output <OUTPUT>: Output path (file or directory) - required-t, --theme <THEME>: Content theme (default:random)- Possible values:
random,text,source-code,office,image
- Possible values:
-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)
Examples
# Generate a single 500KB text file
# Generate 20 small random files in a folder
# Generate 5 office documents up to 10KB each
Development
Releasing
This project uses an automated release workflow. To create a new release:
- Go to the Actions tab in GitHub
- Select the Release workflow
- Click Run workflow
- Choose the version bump type:
auto(default): Automatically determines version based on conventional commits- Breaking changes (commits with
!orBREAKING CHANGE:) → major version bump - New features (
feat:commits) → minor version bump - Bug fixes (
fix:commits) → patch version bump
- Breaking changes (commits with
major: 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:
- Determine the new version number (0.1.0 if no previous releases exist)
- Update
Cargo.tomlwith the new version - Publish the crate to crates.io
- Create a GitHub release with a changelog
Note: First release requires a CARGO_REGISTRY_TOKEN secret to be configured in the repository settings for publishing to crates.io.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.