███╗ ██╗ ██████╗████████╗ ██████╗ ██╗ ██╗ ██████╗████████╗
████╗ ██║██╔════╝╚══██╔══╝ ██╔══██╗██║ ██║██╔════╝╚══██╔══╝
██╔██╗ ██║██║ ██║ ██████╔╝██║ ██║╚█████╗ ██║
██║╚██╗██║██║ ██╗ ██║ ██╔══██╗██║ ██║ ╚═══██╗ ██║
██║ ╚████║╚██████╔╝ ██║ ██║ ██║╚██████╔╝██████╔╝ ██║
╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
A simple library management system built in Rust with user authentication, book management, and borrowing functionality.
- User Management: Sign up and login with different roles (Customer, Librarian, Admin)
- Book Management: Add, view, and manage books in the library
- Borrowing System: Customers can borrow and return books
- Fund Management: Customers can add funds to their account
- Role-based Access: Different functionality based on user role
- Prerequisites: Make sure you have Rust installed
- Run the application:
cargo run
- Sign up with a username, password, and role
- Login to access the library system
- Customers can browse books, borrow/return books, and manage funds
- Librarians can manage the book inventory
- Admins have administrative privileges
src/
├── Models/ # Data structures (Book, User, Borrower, Librarian)
├── Services/ # Business logic (Auth, Book, Borrowing, User services)
└── main.rs # Application entry point
Nguyen Nghia Hiep, Tran Vinh Trong and Duong Phu Dong