Ensure Rust is installed
Check currency rates against USD, convert between currencies, and search country info.
./currency_cli --helpRun the CLI and enter currency codes separated by commas:
./currency_cliExample Response:
Enter country codes separated by commas (e.g., 'KES,UGX' for Kenyan Shilling and Ugandan Shilling):
KES,UGX
1 USD = 128.5 KES
1 USD = 3800.0 UGX
./currency_cli --convert kes-ugx 1000Example Response:
1000 KES = 29600 UGX
Search uses data/country-codes.csv embedded into the binary
Credits to datasets/country-codes
./currency_cli --find-country kenExample Response:
[
{
"official_name_en": "Kenya",
"ISO3166_1_alpha_2": "KE",
"ISO4217_currency_country_name": "KENYA",
"ISO4217_currency_alphabetic_code": "KES",
"region_name": "Africa",
"wikidata_id": "Q114",
"is_independent": "Yes",
"dial": "254"
}
]chmod +x build-rust.sh && bash build-rust.sh