8000 GitHub - BiMalxMe/Rust: Elevating my Rust proficiency by exploring the cutting-edge of its core strengths: deeply understanding the subtleties of the Ownership System 🧠, unraveling complex Borrowing and Lifetime scenarios 🧐, implementing robust and scalable Concurrency solutions 🧡, and expertly managing project dependencies with Cargo πŸ“¦. Advancing towards mastery rs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ Rust Public

Elevating my Rust proficiency by exploring the cutting-edge of its core strengths: deeply understanding the subtleties of the Ownership System 🧠, unraveling complex Borrowing and Lifetime scenarios 🧐, implementing robust and scalable Concurrency solutions 🧡, and expertly managing project dependencies with Cargo πŸ“¦. Advancing towards mastery rs

Notifications You must be signed in to change notification settings

BiMalxMe/Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Project READMEs

1. ⏱️ Date Difference Calculator: Simple Date Comparison Tool in Rust

This Rust application, Date Difference Calculator, provides a simple command-line utility to calculate the exact number of days between two dates. It uses the chrono crate for date parsing and calculation.

πŸ”‘ Key Features

  • βœ… Takes input dates in YYYY-MM-DD format
  • βœ… Automatically handles date order (earlier/later doesn't matter)
  • βœ… Displays the exact number of days between the dates

πŸ“‹ Example Output

Enter Two dates in YYYYMMDD format
Enter the First Date: 2023-05-10
Enter the Second Date: 2023-12-25
There is difference of 229 days

πŸš€ Usage

  1. Run the program
  2. Enter two dates when prompted (YYYY-MM-DD format)
  3. View the difference in days between the dates

πŸ”„ Dependencies

  • πŸ“¦ chrono: For date parsing and calculation

2. βœ… Todo CLI: Task Management System in Rust

Here is a sample code url

This Rust application, Todo CLI, is a command-line task manager that helps you track your to-do items with deadlines. It offers a simple but effective interface for managing daily tasks.

πŸ”‘ Key Features

  • βœ… Add new tasks with title, description, and deadline
  • βœ… List all tasks with their details
  • βœ… Mark tasks as complete
  • βœ… Simple menu-driven interface

πŸ“‹ Example Output

Screen Shot 2025-05-10 at 05 36 35

πŸš€ Usage

The application provides a menu with the following options:

  1. Add Task - Create a new task
  2. List Tasks - View all tasks
  3. Mark Task as Complete - Update task status
  4. Exit - Close the application

πŸ”„ Dependencies

  • πŸ“¦ chrono: For date handling
  • πŸ“¦ Standard Rust libraries for I/O

3. πŸ“ Logs Generator: Simple Asynchronous Log File Writer in Rust

Here is a sample code url

Screen Shot 2025-05-09 at 12 39 54 Screen Shot 2025-05-09 at 12 39 48

This Rust application, LogsGenerator, demonstrates a basic asynchronous file writing process using the tokio runtime. It concurrently writes simple messages to two separate files: main.txt and log.log. The log.log file includes timestamps for each entry, providing a basic logging mechanism.

πŸ”‘ Key Features

  • βœ… Creates both content and log files
  • βœ… Asynchronously writes to files for better performance
  • βœ… Timestamps each log entry
  • βœ… Demonstrates Rust's async/await capabilities

πŸ“‹ Example Output

main.txt:

hello brother 1
hello brother 2
hello brother 3
...

log.log:

[12:39:48] [2025-05-09] -> Log.1. Appended Successfully
[12:39:48] [2025-05-09] -> Log.2. Appended Successfully
[12:39:48] [2025-05-09] -> Log.3. Appended Successfully
...

πŸš€ Implementation

  • Uses Tokio runtime for async operations
  • Appends to existing files or creates them if they don't exist
  • Generates 99 log entries with timestamps

πŸ”„ Dependencies

  • πŸ“¦ tokio: For asynchronous I/O operations
  • πŸ“¦ chrono: For timestamp generation

4. ⏱️ MathQuiz: Arithmetic Game with Timer in Rust

Here is a sample code url

This Rust application, MathQuiz, is a small command-line math quiz that tests your mental arithmetic using randomly generated questions and tracks how fast and accurately you answer.

πŸ”‘ Key Features

  • βœ… Randomly generates 5 math problems using +, -, *, /
  • βœ… Uses eval crate to compute expressions dynamically
  • βœ… Times the total duration taken to solve
  • βœ… Provides final score out of 5

πŸ“‹ Example Output

Screen Shot 2025-05-11 at 08 52 51

πŸš€ Usage

  1. Run the application
  2. Solve 5 math problems as quickly as possible
  3. Get score and time summary

πŸ”„ Dependencies

  • πŸ“¦ eval: For evaluating math expressions
  • πŸ“¦ rand: For generating random numbers and operations
  • πŸ“¦ std: For I/O and timing utilities

5. 🧾 Terminal Todo Viewer: Interactive TUI for Task Lists in Rust

Here is a sample code url

This Rust application, Terminal Todo Viewer, creates a simple Text-based User Interface (TUI) using the ratatui and crossterm crates. It allows users to input, display, and manage a todo list interactively from the terminal.

πŸ”‘ Key Features

  • βœ… Add items to a list dynamically
  • βœ… View all added items in a scrollable interface
  • βœ… Use "clear" command to reset the list
  • βœ… Real-time terminal updates without pressing Enter for every input

πŸ“‹ Example Output

Screen Shot 2025-05-14 at 22 15 45

πŸš€ Usage

  1. Run the application in terminal
  2. Type to add a new list item; press Enter to submit
  3. Type clear and press Enter to clear the list
  4. Press q to quit the application

🧩 Code Overview

let lines = alllist
    .iter()
    .enumerate()
    .map(|(i, s)| Line::from(format!("{}. {}", i + 1, s)))
    .collect::<Vec<_>>();

let paragraph1 = Paragraph::new(Text::from(lines)).block(
    Block::default().title(" Total Lists ").borders(Borders::ALL),
);

let paragraph2 = Paragraph::new(Line::from(input_text.clone())).block(
    Block::default().title("Add new List ------ Enter 'clear' to Clear ").borders(Borders::ALL),
);

About

Elevating my Rust proficiency by exploring the cutting-edge of its core strengths: deeply understanding the subtleties of the Ownership System 🧠, unraveling complex Borrowing and Lifetime scenarios 🧐, implementing robust and scalable Concurrency solutions 🧡, and expertly managing project dependencies with Cargo πŸ“¦. Advancing towards mastery rs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0