Temperature unit converter written in rust
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
Cargo.toml
LICENSE.md
README.md

README.md

temperature

Temperature, a library (and executable) written in Rust converts Temperature Units "Celsius", "Fahrenheit", "Kelvin", "Rankine" From eachother.

Note: A working executable can be compiled from example/temperature.rs

Usage

As Library

See examples at examples/simple.rs

Compile and run standalone program

Note: A working executable can be compiled from example/temperature

Compile and install

$ cargo build --release --example temperature
$ chmod 711 ./target/release/examples/temperature 
\# mv ./target/release/examples/temperature /usr/local/bin/

Temperature takes three arguments without dash.

  1. The input temperature
  2. The input temperature unit
  3. The desired output temperature unit

Execute

$ temperature {temp} {C|F|K|R} {C|F|K|R} 

Example

$ temperature 32.9 C F

Contributing