Files
rustfs/rustfs
houseme 96d22c3276 Refactor(server): Encapsulate service creation within connection handler
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`.
2025-07-04 01:33:16 +08:00
..
2025-05-29 06:53:11 +00:00

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: