2 releases

Uses new Rust 2024

0.1.1 Jul 20, 2025
0.1.0 Jul 20, 2025

#693 in Math

MIT license

11KB
142 lines

parth10606_first_crate

Crates.io Docs.rs License: MIT

A modular, production-ready Rust crate that demonstrates clean project architecture, reusable utilities, and core logic.


✨ Features

  • 🧠 Core Modules — Includes logic processors under core/
  • 🔢 Math Utilities — Handy numeric functions like addition, subtraction, etc.
  • 🔤 String Utilities — Functions to manipulate and format strings
  • 📅 Date Utilities — Smart date formatting powered by chrono
  • 🧪 Well-tested — Unit tests, doctests, and integration tests across all modules

📦 Installation

Add this to your Cargo.toml:

[dependencies]
parth10606_first_crate = "0.1"

🚀 Quick Start

use parth10606_first_crate::utils::math::add;

fn main() {
    let result = add(10, 5);
    println!("10 + 5 = {}", result);
}

📚 Documentation

View full documentation at docs.rs/parth10606_first_crate

To build locally:

cargo doc --open

📁 Examples

This crate includes runnable examples in the examples/ folder.

To run an example:

cargo run --example math_usage.rs

To reference an example in documentation:

//! ```no_run
//! // See examples/usage.rs
//! use parth10606_first_crate::utils::string::reverse;
//! println!("{}", reverse("hello"));
//! ```

🧪 Testing

To run all tests (unit + integration + doc):

cargo test

✅ Roadmap

  • Modular folder structure
  • Unit + doc + integration tests
  • Clean lib.rs exports
  • Examples for users
  • Add more real-world use cases
  • Publish to crates.io

👥 Contributing

Pull requests, bug reports, and suggestions are welcome!
Open an issue or fork and submit a PR.


📄 License

This project is licensed under the MIT License.


No runtime deps