diff options
| -rwxr-xr-x[-rw-r--r--] | .gitattributes | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | .gitignore | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | Cargo.lock | 32 | ||||
| -rwxr-xr-x[-rw-r--r--] | Cargo.toml | 18 | ||||
| -rw-r--r-- | README.md | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/extractor.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/handlers.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/http.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/lib.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/main.rs | 8 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/request.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/response.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/router.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/server.rs | 0 | ||||
| -rwxr-xr-x[-rw-r--r--] | src/utils.rs | 0 |
15 files changed, 22 insertions, 36 deletions
diff --git a/.gitattributes b/.gitattributes index 176a458..176a458 100644..100755 --- a/.gitattributes +++ b/.gitattributes diff --git a/.gitignore b/.gitignore index 73fab07..73fab07 100644..100755 --- a/.gitignore +++ b/.gitignore diff --git a/Cargo.lock b/Cargo.lock index 096c35d..b212bb2 100644..100755 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,22 +127,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" [[package]] -name = "http-server-starter-rust" -version = "0.1.0" -dependencies = [ - "anyhow", - "base64", - "bytes", - "flate2", - "itertools", - "nom", - "pretty_assertions", - "regex", - "thiserror", - "tokio", -] - -[[package]] name = "itertools" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -403,6 +387,22 @@ dependencies = [ ] [[package]] +name = "tiny-server" +version = "0.1.0" +dependencies = [ + "anyhow", + "base64", + "bytes", + "flate2", + "itertools", + "nom", + "pretty_assertions", + "regex", + "thiserror", + "tokio", +] + +[[package]] name = "tokio" version = "1.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/Cargo.toml b/Cargo.toml index 9858303..2d9f937 100644..100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,23 +1,9 @@ -# DON'T EDIT THIS! -# -# Codecrafters relies on this file being intact to run tests successfully. Any changes -# here will not reflect when CodeCrafters tests your code, and might even cause build -# failures. -# -# DON'T EDIT THIS! [package] -name = "http-server-starter-rust" +name = "tiny-server" version = "0.1.0" -authors = ["Codecrafters <hello@codecrafters.io>"] +authors = ["omagdy7 <omar.professional8777@gmail.com>"] edition = "2021" -# DON'T EDIT THIS! -# -# Codecrafters relies on this file being intact to run tests successfully. Any changes -# here will not reflect when CodeCrafters tests your code, and might even cause build -# failures. -# -# DON'T EDIT THIS! [dependencies] anyhow = "1.0.59" # error handling bytes = "1.3.0" # helps manage buffers diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/README.md diff --git a/src/extractor.rs b/src/extractor.rs index 9b53215..9b53215 100644..100755 --- a/src/extractor.rs +++ b/src/extractor.rs diff --git a/src/handlers.rs b/src/handlers.rs index 376cdd0..376cdd0 100644..100755 --- a/src/handlers.rs +++ b/src/handlers.rs diff --git a/src/http.rs b/src/http.rs index 7a48760..7a48760 100644..100755 --- a/src/http.rs +++ b/src/http.rs diff --git a/src/lib.rs b/src/lib.rs index cd51189..cd51189 100644..100755 --- a/src/lib.rs +++ b/src/lib.rs diff --git a/src/main.rs b/src/main.rs index 957d2ae..a68dc53 100644..100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,10 @@ -use http_server_starter_rust::handlers::*; -use http_server_starter_rust::http::{get, post}; -use http_server_starter_rust::router::Router; -use http_server_starter_rust::server::*; use std::collections::HashMap; use std::io::{self}; use std::net::{IpAddr, Ipv4Addr, SocketAddr}; +use tiny_server::handlers::*; +use tiny_server::http::{get, post}; +use tiny_server::router::Router; +use tiny_server::server::*; fn main() -> io::Result<()> { // Collect the command-line arguments diff --git a/src/request.rs b/src/request.rs index 5d2b33f..5d2b33f 100644..100755 --- a/src/request.rs +++ b/src/request.rs diff --git a/src/response.rs b/src/response.rs index bf63804..bf63804 100644..100755 --- a/src/response.rs +++ b/src/response.rs diff --git a/src/router.rs b/src/router.rs index d0b4c9d..d0b4c9d 100644..100755 --- a/src/router.rs +++ b/src/router.rs diff --git a/src/server.rs b/src/server.rs index 6c0eeb1..6c0eeb1 100644..100755 --- a/src/server.rs +++ b/src/server.rs diff --git a/src/utils.rs b/src/utils.rs index 925669c..925669c 100644..100755 --- a/src/utils.rs +++ b/src/utils.rs |
