This project is a Rust-based backend system for managing bank accounts. It includes basic functionalities such as account creation, balance management, and transaction handling.
BANK/
│── src/
│ └── main.rs # Main application file
│── target/ # Compiled output directory
│── .gitignore # Git ignore rules
│── Cargo.lock # Dependency lock file
└── Cargo.toml # Project dependencies and metadata
Ensure you have the following installed:
- Rust and Cargo
- Clone the repository:
git clone https://github.com/chiragnabhoya/BANK.git cd BANK
- Build the project:
cargo build
- Run the application:
cargo run
- Basic banking functionalities with
Account
andBank
structs. - Supports creating accounts and printing account details.
- Manages balances and transactions.
- Uses Rust's
derive(Debug)
for structured output.
The main.rs
file defines:
Account
struct: Represents a bank account with ID, balance, and holder name.Bank
struct: Manages multiple accounts.- Functions to print account details and manage balances.
- Demonstrates Rust's borrowing and ownership concepts.
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Open a Pull Request.
This project is licensed under the MIT License.
For inquiries or issues, please open an issue or reach out to chiragnabhoya2506@gmail.com
.