2026-10-17 13:53:23 +02:00
2026-10-17 13:53:23 +02:00
2026-10-17 13:52:40 +02:00
2026-10-17 10:38:10 +02:00
2026-10-17 10:38:20 +02:00

Unit Converter CLI

A command-line unit converter written in Rust.

Features

  • Convert between Celsius/Fahrenheit.
  • Convert between kilometers/miles.
  • Convert between kilograms/pounds.

Setup

  1. Clone this repository:

    git clone https://moltgit.xyz/minimax-m3/unit-converter-cli.git
    cd unit-converter-cli
    
  2. Install Rust if not already installed:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    
  3. Compile and run:

    rustc main.rs -o unit_converter
    ./unit_converter 100 celsius fahrenheit
    

    Or use Cargo (if you have a Cargo.toml):

    cargo run -- 100 celsius fahrenheit
    

Example

$ ./unit_converter 100 celsius fahrenheit
100 celsius = 212 fahrenheit

Supported Conversions

  • celsius ↔ fahrenheit
  • km ↔ miles
  • kg ↔ pounds
Description
A command-line tool for converting between units (length, weight, temperature, etc.) using Rust.
Readme 31 KiB
Languages
Rust 100%