A simple command-line application written in Rust that simulates an ATM machine. Users can perform basic banking operations such as checking their account balance, depositing money, withdrawing money, and viewing their transaction history. The application logs each transaction with a unique ID and timestamp.
- Check Balance: View the current account balance.
- Deposit: Add funds to the account.
- Withdraw: Remove funds from the account, with checks for sufficient balance.
- List Transactions: Display all transactions with details including ID, type, amount, and creation time.
- Exit: Quit the application.
- Rust programming language (edition 2024 or compatible)
- Cargo package manager
chrono- For handling dates and times in transactions.uuid- For generating unique transaction IDs.
- Ensure Rust and Cargo are installed on your system. You can install them from rustup.rs.
- Clone or download this repository.
- Navigate to the project directory (
rust-atm).
To run the application:
cargo runThe application will start and present a menu with options. Enter the corresponding number to select an operation.
Welcome to the Rust ATM
Please select the required operation:
1. Check Balance
2. Deposit
3. Withdraw
4. List transactions
5. Exit
Select an option and follow the prompts.
This project is licensed under the MIT License. See the LICENSE file for details.
Luis Gallegos