parth10606_first_crate 0.1.1

A test lib for publishing
Documentation
  • Coverage
  • 33.33%
    4 out of 12 items documented4 out of 4 items with examples
  • Size
  • Source code size: 13.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 224.8 kB This is the summed size of all files generated by rustdoc for all configured targets
  • ร˜ build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • parth10606

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.


๐Ÿ”— Links