inirs

Crates.ioinirs
lib.rsinirs
version0.1.6
sourcesrc
created_at2024-06-20 12:18:54.122683
updated_at2024-06-20 12:23:48.27365
descriptionA simple command line task manager
homepagehttps://github.com/nobel-von-it/inirs.git
repositoryhttps://github.com/nobel-von-it/inirs.git
max_upload_size
id1277925
size23,518
Maksimus (nobel-von-it)

documentation

README

Crate Manager

================

This crate manager is a command-line utility that helps you create and manage Rust projects with specific dependencies. It uses the clap crate for command-line parsing.

Installation

Git Clone

  1. Clone the repository:
    git clone https://github.com/nobel-von-it/inirs.git
    
  2. Change into the directory:
    cd inirs
    
  3. Build and run the application:
    cargo build --release
    target/release/inirs <options>
    

Cargo install

  1. Install the inirs package:
    cargo install inirs
    

Usage


Command-Line Arguments

dir

The directory where the new project will be created. Defaults to /home/nerd/Dev/Rusty/. This is my personal project directory.

name

The name of the new crate.

crates

A list of crates to add to the project, separated by spaces.

Example

inirs --dir /path/to/project --name clap serde serde_json ...

Crate Options


Supported Libraries


Currently, full snippets are supported only for the following libraries:

  • Ratatui: A Rust library for building terminal user interfaces.
  • Crossterm: A cross-platform terminal handling library.
  • Clap: A command-line argument parser.
  • Serde: A serialization and deserialization library.
  • Tokio: An asynchronous runtime for Rust.

All other libraries will be added in the future, but for now, only these libraries have comprehensive snippet support.

Project Structure


The project structure will be as follows:

src/main.rs
Cargo.toml

Build and Run


After running the crate manager, you can build and run your project using cargo build and cargo run respectively.

Note


This crate manager assumes that you have cargo installed and configured on your system.

Commit count: 6

cargo fmt