RustyUserHub is a high-performance, RESTful API crafted with Rust and Actix-web for seamless CRUD operations.
- User Management:
- Create, read, update, and delete user records.
- Unique user identification using UUID.
- Concurrency:
- Thread-safe user data management with
Arc
andMutex
.
- Thread-safe user data management with
- RESTful API:
- Standard RESTful routes for user operations.
- Rust: The application is written in Rust.
- Actix-web: Used as the web application framework.
- Serde: For serialization and deserialization.
- UUID: For unique user identification.
- Arc and Mutex: For thread-safe data management.
- Create User: Handles user creation with unique ID generation.
- Get Users: Retrieves a list of all users.
- Get User by ID: Fetches a specific user by their ID.
- Update User: Updates user details for a specific ID.
- Delete User: Deletes a user by their ID.
The project consists of the following main files:
main.rs
: This is the main Rust file containing the implementation of the RESTful API routes and handlers.Cargo.toml
: This file contains the dependencies and metadata for the Rust project.
To get started with this project:
- Clone the repository.
- Navigate to the project directory.
- Build the project using
cargo build
. - Run the server with
cargo run
.
This project serves as a practical example of implementing a RESTful API in Rust using Actix-web. It demonstrates various concepts such as concurrency, unique identification, and standard RESTful operations in a real-world scenario.
Contributions to this project are welcome. Please fork the repository and create a pull request with your changes.