mi_primera_lib 0.1.1

Basic math and text utilities for Rust
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 4 items with examples
  • Size
  • Source code size: 5.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • JennyT3/mi_primera_lib
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JennyT3

🦀 Mi Primera Lib - Rust Math & Text Utilities

A lightweight Rust library providing essential mathematical operations and text utilities with zero dependencies.

🚀 Features

Math Operations: Addition, subtraction, multiplication, division with overflow handling
Text Utilities: String reversal and word counting
Zero Dependencies: Pure Rust implementation
Comprehensive Testing: Full test coverage
Modular Design: Clean, organized code structure

📖 Usage

use mi_primera_lib::calc1::{add, sub};
use mi_primera_lib::calc2::{multiply, rate};

// Math operations
let sum = add(10, 20);           // 30
let diff = sub(20, 10);          // 10
let product = multiply(4, 5);    // 20
let quotient = rate(10, 2);      // 5

// Overflow handling
let overflow = add(u32::MAX, 1); // 0 (wrapping)
let safe_sub = sub(5, 10);       // 0 (no negative u32)

🛠️ Installation

cargo add mi_primera_lib

Or add to your Cargo.toml:

[dependencies]
mi_primera_lib = "0.1.0"

🔧 Development

# Build
cargo build

# Test
cargo test

# Documentation
cargo doc --open

# Lint
cargo clippy

📚 Documentation

🙏 Acknowledgments

Special thanks to:

  • Nearx for the incredible learning experience
  • Lucas Bispo de Oliveira for mentorship and guidance
  • #HackMeridian2025 community for inspiration and support

Built with ❤️ and Rust