localhost:3000
Screenshot coming soon
07 / 11
⚡ Bounty Claimed

Rust Simple File Server

This project was built for the StackUp Rust Bounty Challenge — the first submission to complete all objectives. The server binds a TcpListener to port 7878 and handles each connection with a custom HTTP parser that reads raw bytes, extracts the method and path, locates the file on disk, detects its MIME type via mime_guess, and writes a full HTTP response back over the stream — all without any web framework dependency.

Key Features

  • Raw TCP listener — no web framework whatsoever
  • Custom HTTP request parser — method, path, headers from raw bytes
  • Custom HTTP response builder with correct status codes
  • MIME type detection via mime_guess for proper Content-Type headers
  • Recursive directory traversal using walkdir
  • URL encoding/decoding via url-escape
  • First submission to complete all StackUp Rust Bounty objectives

Tech Stack

RustCargowalkdirinferurl-escapemime_guessTCP/HTTPSystems Programming

Links

Award

Prize

Bounty Claimed

Event

StackUp Rust Bounty Challenge

Type

Hackathon / Bounty