Update README.md

This commit is contained in:
Kasper 2021-01-06 19:34:21 +01:00
parent 903c4b00e3
commit 249e44d858

View File

@ -128,6 +128,14 @@ cargo build
``` ```
### Adding a unit ### Adding a unit
Nice resources for adding units:
- https://github.com/ryantenney/gnu-units/blob/master/units.dat
- https://support.google.com/websearch/answer/3284611 (unit list)
- https://translatorscafe.com/unit-converter (unit conversion)
- https://calculateme.com/ (unit conversion)
- https://wikipedia.org/
#### 1. Add the unit #### 1. Add the unit
In `src/units.rs`, units are specified like this: In `src/units.rs`, units are specified like this:
```rs ```rs
@ -170,9 +178,9 @@ match string {
### Potential Improvements ### Potential Improvements
#### General #### General
- Support for conversion between Power, Current, Resistance and Voltage. Multiplication and division is currently supported, but not conversions using sqrt or pow. - Support for conversion between Power, Current, Resistance and Voltage. Multiplication and division is currently supported, but not conversions using sqrt or pow.
#### Potential unit types #### Potential unit types
Nice list of units: https://support.google.com/websearch/answer/3284611 - Currency: How to go about dynamically updating the weights?
- Currency: How would you go about dynamically updating the weights?
- Fuel consumption - Fuel consumption
- Data transfer rate - Data transfer rate
- Color codes - Color codes