mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
Move the construction of the hybrid service stack, including all middleware and the RPC service, from the main `run` function into the `process_connection` function. This change ensures that each incoming connection gets its own isolated service instance. This improves modularity by making the connection handling logic more self-contained and simplifies the main server loop. Key changes: - The `hybrid_service` and `rpc_service` are now created inside `process_connection`. - The `run` function's responsibility is reduced to accepting TCP connections and spawning tasks for `process_connection`.
RustFS
RustFS is a simple file system written in Rust. It is designed to be a learning project for those who want to understand how file systems work and how to implement them in Rust.
Features
- Simple file system structure
- Basic file operations (create, read, write, delete)
- Directory support
- File metadata (size, creation time, etc.)
- Basic error handling
- Unit tests for core functionality
- Documentation for public API
- Example usage
- License information
- Contributing guidelines
- Changelog
- Code of conduct
- Acknowledgements
- Contact information
- Links to additional resources
Getting Started
To get started with RustFS, clone the repository and build the project:
git clone git@github.com:rustfs/s3-rustfs.git
cd rustfs
cargo build
Usage
To use RustFS, you can create a new file system instance and perform basic file operations. Here is an example: