| Crates.io | mi_primera_lib |
| lib.rs | mi_primera_lib |
| version | 0.1.1 |
| created_at | 2025-08-18 11:50:14.920063+00 |
| updated_at | 2025-08-18 11:58:58.88049+00 |
| description | Basic math and text utilities for Rust |
| homepage | https://github.com/JennyT3/mi_primera_lib |
| repository | https://github.com/JennyT3/mi_primera_lib |
| max_upload_size | |
| id | 1800360 |
| size | 5,635 |
A lightweight Rust library providing essential mathematical operations and text utilities with zero dependencies.
✅ 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
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)
cargo add mi_primera_lib
Or add to your Cargo.toml:
[dependencies]
mi_primera_lib = "0.1.0"
# Build
cargo build
# Test
cargo test
# Documentation
cargo doc --open
# Lint
cargo clippy
Special thanks to:
Built with ❤️ and Rust