diff --git a/Cargo.lock b/Cargo.lock index 6deab47..7363d6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1440,6 +1440,9 @@ dependencies = [ "getrandom 0.4.3", "gpui-kit", "gpui-omarchy", + "http-body-util", + "hyper", + "hyper-util", "include_dir", "jiff", "serde", @@ -1447,6 +1450,7 @@ dependencies = [ "tempfile", "testresult", "thiserror 2.0.21", + "tokio", "uuid", ] @@ -3640,6 +3644,12 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + [[package]] name = "hybrid-array" version = "0.4.15" @@ -3663,6 +3673,7 @@ dependencies = [ "http", "http-body", "httparse", + "httpdate", "itoa", "pin-project-lite", "smallvec", diff --git a/Cargo.toml b/Cargo.toml index 6914575..b9efe91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,12 +16,16 @@ duckdb = { version = "1.20000.1", features = ["bundled", "uuid"] } getrandom = { version = "0.4.3", features = ["sys_rng"] } gpui-kit = "0.7.0" gpui-omarchy = "0.2.1" +http-body-util = "0.1.5" +hyper = { version = "1.12.0", features = ["server", "http1"] } +hyper-util = { version = "0.1.21", features = ["tokio"] } include_dir = "0.7.4" jiff = { version = "1.0.1", features = ["serde"] } serde = "1.0.229" serde_json = "1.0.154" testresult = "0.4.2" thiserror = "2.0.21" +tokio = { version = "1.54.1", features = ["rt-multi-thread", "net"] } uuid = { version = "1.29.3", features = ["v4", "serde"] } [dev-dependencies] diff --git a/src/main.rs b/src/main.rs index 0887b7c..c23e6e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ mod db; mod error; mod screens; mod session; +mod srv; #[cfg(test)] mod test_data;