My Rust Manager is a command-line tool for managing and displaying information about your local Rust projects. It scans a specified directory (e.g., your ~/rust
folder) for Rust projects and allows you to list, view details, and manage them directly from the terminal.
- Lists all Rust projects in a specified directory
- Displays project details including name, description, and path
- Provides a simple command-line interface
- Handles graceful shutdowns with Ctrl+C
-
Clone the repository:
git clone https://github.com/your-username/my_rust.git cd my_rust
-
Build the project using
cargo
:cargo build --release
-
Optionally, install the binary globally:
cargo install --path .
Once you have built or installed the tool, you can run it from the command line. By default, the tool will search for Rust projects in the ~/rust
directory and list them.
To list all available Rust projects, simply run:
./my_rust
or
./my_rust --list
This will display a list of Rust projects found in the specified directory.
When projects are listed, you can enter the number corresponding to the project to view more detailed information, including:
- Project name
- Description (if available)
- Path to the project
Example interaction:
1. project_one - My first Rust project
2. project_two - Another Rust project
3. project_three - No description
Enter the number of the project to view details, or 'q' to quit:
> 1
Project Name: project_one
Description: My first Rust project
Path: /home/user/rust/project_one
You can run this project from: /home/user/rust/project_one/target/release
For help, you can use the --help
flag:
./my_rust --help
This will display a list of available options.
By default, My Rust Manager
searches for Rust projects in the ~/rust
directory. You can change the search directory by modifying the code in the main.rs
file. In future releases, we may introduce a configuration file to allow this to be set without modifying code.
Contributions are welcome! Feel free to submit a pull request or open an issue if you encounter a bug or have a feature request.
- Fork the repository.
- Create a feature branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Open a pull request.
This project is licensed under the GNU GPLv3 License. See the LICENSE file for details.
This project was built using Rust and relies on the following crates: