From a6a2ccde369b46d193fd6e715c0d97b0504947de Mon Sep 17 00:00:00 2001 From: Signor-Koala <96680111+Signor-Koala@users.noreply.github.com> Date: Sat, 15 Apr 2023 16:31:57 +0530 Subject: [PATCH 1/3] Update rust-webserver.md --- backend/rust-webserver.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/rust-webserver.md b/backend/rust-webserver.md index 38124f6..fb77536 100644 --- a/backend/rust-webserver.md +++ b/backend/rust-webserver.md @@ -1,8 +1,14 @@ # Writing a simple Web Server with Rust! -Write a web server that: +Write a multithreaded web server 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 in detail how Rust's borrow checker and type safety provides advantages for safety. Explain all the crates you have used, and write a detailed README with build/run instructions. From c1eb4403c441e64c6ea4befeada4ebb0d714c778 Mon Sep 17 00:00:00 2001 From: Signor-Koala <96680111+Signor-Koala@users.noreply.github.com> Date: Fri, 5 May 2023 23:29:08 +0530 Subject: [PATCH 2/3] Update rust-webserver.md --- backend/rust-webserver.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/rust-webserver.md b/backend/rust-webserver.md index fb77536..ced2ff3 100644 --- a/backend/rust-webserver.md +++ b/backend/rust-webserver.md @@ -1,6 +1,6 @@ # Writing a simple Web Server with Rust! -Write a multithreaded web server that: +Write a multithreaded web server using 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. - Can handle upto 4 incoming connections at a time. @@ -10,8 +10,6 @@ Write a multithreaded web server that: Explain in detail how Rust's borrow checker and type safety provides advantages for safety. -Explain all the crates you have used, and write a detailed README with build/run instructions. - (Optional) Tell us how you could deploy this application using Docker. This is purely an optional component, and you could feel free to ignore ## Tech Stack @@ -20,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/ From e33b30c9be382b54d96d1054667687e4a15369d8 Mon Sep 17 00:00:00 2001 From: Signor-Koala <96680111+Signor-Koala@users.noreply.github.com> Date: Fri, 5 May 2023 23:49:42 +0530 Subject: [PATCH 3/3] Update rust-webserver.md --- backend/rust-webserver.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/rust-webserver.md b/backend/rust-webserver.md index ced2ff3..81141bc 100644 --- a/backend/rust-webserver.md +++ b/backend/rust-webserver.md @@ -1,12 +1,12 @@ # Writing a simple Web Server with Rust! -Write a multithreaded web server using the standard library 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. - Can handle upto 4 incoming connections at a time. - Has a counter that counts the number of visitors that have visited the site. - +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.