rust-shorter
CommunityModularize Rust code into clean 130-line modules.
AuthorDevelata
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Large Rust codebases often exceed 130 lines in a single file, making maintenance painful. This tool modularizes Rust code into smaller, functional units without changing behavior, enabling modularization by function, data flow, or dependency structure.
Core Features & Use Cases
- Automates splitting long Rust files into modular components while preserving the original logic.
- Supports three refactoring strategies: functional, dataflow, and hierarchical.
- Maintains stable public interfaces and reduces cognitive load when navigating codebases.
- Use Case: when a monolithic Rust file becomes hard to manage, apply this tool to break it into cohesive modules.
Quick Start
Run python scripts/rust_modularizer.py <file_path> --strategy <strategy> to generate modular parts.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-shorter Download link: https://github.com/Develata/Deve-Skills/archive/main.zip#rust-shorter Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.