Rust Http Server
This project is a build of a web server in Rust on bare minimum from scratch with only std::TCPListener. This is only a fun project to learn rust.
🚀 Getting Started
Open Using Daytona
- Install Daytona: Follow the Daytona installation guide. Make sure that you have a
providerinstalled. - Create the Workspace:
bash daytona create https://github.com/priyanshuverma-dev/rust-http-server.gitYou should get something like:{"outcome":"success","result":"done"} Open Workplace in you IDE
daytona codeselect your project that you. created recently. it will open in default editor.
Build Application:
cargo buildStart the Application:
cargo runRunning on
http://localhost:5000
✨ Features
- It supports api requests and html files,
- We can create a api route for the following methods:
- GET
- POST
- PUT
- DELETE
We can add more but as of now I don't have time to add them, If you want then feel free to add and work around.
- The Project is completely memory safe as the language Rust is and very performance effective as it doesn't and a clone of any request and saves every bit of memory.
Log in or sign up for Devpost to join the conversation.