unitconv

Crates.iounitconv
lib.rsunitconv
version0.1.1
created_at2025-08-01 10:23:18.261959+00
updated_at2025-08-05 04:17:49.260364+00
descriptionRust Simple Unit Converter
homepage
repositoryhttps://github.com/balsantiger/rs-unitconv
max_upload_size
id1776422
size5,813
Sungwoo Lee (balsantiger)

documentation

README

📦 rs-unitconv — A Simple Unit Conversion Library for Rust

✨ Lightweight, zero-dependency utility crate for common unit conversions: length, weight, temperature and more.


🚀 Features

  • 📏 Length: cm ↔ inch, m ↔ ft
  • ⚖️ Weight: kg ↔ lb
  • 🌡️ Temperature: °C ↔ °F, °C ↔ K
  • 💡 Intuitive function names and clean API
  • 🧪 Tested and ready for embedded or CLI use
  • 🔀 No external dependencies

📥 Installation

# Cargo.toml
[dependencies]
rs-unitconv = "0.1.0"

🧑‍💻Usage

use rs_unitconv::length::{cm_to_inch, inch_to_cm};
use rs_unitconv::weight::{kg_to_lb, lb_to_kg};
use rs_unitconv::temperature::{c_to_f, f_to_c};

fn main() {
    println!("100 cm = {:.2} in", cm_to_inch(100.0));
    println!("220 lb = {:.2} kg", lb_to_kg(220.0));
    println!("37 °C = {:.2} °F", c_to_f(37.0));
}
Commit count: 0

cargo fmt