Skip to content

genescu/currency-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Converter

Table of Contents

Introduction

Currency Converter is a Rust library that provides functionality for converting currency amounts between different currencies. It offers a simple and straightforward interface for performing currency conversions based on the latest exchange rates.

This documentation will guide you through the installation process, explain how to use the library in your code, provide information about running tests, and outline how you can contribute to the project.

Installation

To use Currency Converter, follow these steps:

  1. Ensure you have Rust installed. If not, you can install it by following the official Rust installation guide.

  2. Run the following command to fetch and build the dependency:

    cargo update

Usage

exchange <amount> <from_currency> to <to_currency>

./exchange 100 usd to dkk
>> Converted amount: 689.00 DKK

Release & Run

bash release.sh

Tests

Currency Converter includes a comprehensive suite of unit tests to ensure the correctness of the codebase. To run the tests, use the following command:

cargo test

About

Currency conversion tool that converts amounts between different currencies using exchange rates from an API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors