diff --git a/backend/rust-webserver.md b/backend/rust-webserver.md index 38124f6..81141bc 100644 --- a/backend/rust-webserver.md +++ b/backend/rust-webserver.md @@ -1,10 +1,14 @@ # Writing a simple Web Server with Rust! -Write a web server that: +Write a multithreaded web server using only the standard library that: - Listens on a specified port (5000/8000) -- Has a single endpoint, that serves 1 HTML file, along with CSS and a JS script. +- Has a single endpoint, that serves 1 HTML file, along with CSS and a JS script. +- Can handle upto 4 incoming connections at a time. +- Has a counter that counts the number of visitors that have visited the site. -Explain all the crates you have used, and write a detailed README with build/run instructions. +You are not allowed to use external crates and only can use the `std` crate for the webserver. + +Explain in detail how Rust's borrow checker and type safety provides advantages for safety. (Optional) Tell us how you could deploy this application using Docker. This is purely an optional component, and you could feel free to ignore @@ -14,7 +18,4 @@ Rust, HTTP ## Relevant Material - https://doc.rust-lang.org/book/ -- https://docs.microsoft.com/en-us/learn/modules/rust-get-started/ -- https://www.fifthtry.com/amitu/realm/ - https://doc.rust-lang.org/book/ch20-01-single-threaded.html -- https://hyper.rs/