A simple command-line currency converter built using Rust that fetches real-time exchange rates and allows users to convert between different global currencies with ease.
- Convert between major world currencies
- Live exchange rates powered by API
- Lightweight and fast Rust implementation
- Input validation and error handling
- Clean and interactive terminal UI
- Rust
- reqwest — for HTTP requests
- serde — for JSON parsing
- dotenv — to manage environment variables for API key.
- [https://exchangeratesapi.io] — (API used)
Make sure you have Rust installed. If not, install it from rustup.rs.
git clone https://github.com/RahilJain1366/Currency_Convertor.git
cd Currency_Convertor
cargo build
cargo runFor the free version, only EUR can be used as the base currency
Enter base currency: USD Enter target currency: EUR Enter amount: 100 100 USD = 91.23 EUR