From 2c50ac0f4f41944debea1541c7d0248967a2e424 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Mar 2022 15:58:31 +0100 Subject: [PATCH] actix: Final dependencies for conversion Signed-off-by: Ian Jackson --- Cargo.lock | 23 +++++++++++++++++++++++ Cargo.toml | 1 + daemon/Cargo.toml | 3 +++ src/imports.rs | 1 + 4 files changed, 28 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index b8da1555..92ea1bef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -374,6 +374,17 @@ version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341" +[[package]] +name = "async-condvar-fair" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ea38fc7218cdf1d5620a4a1af6ccad4d793cd7d0e1204d20eb33e29d1c49e92" +dependencies = [ + "dlv-list", + "parking_lot 0.12.0", + "pin-project-lite", +] + [[package]] name = "async-trait" version = "0.1.52" @@ -1176,6 +1187,15 @@ dependencies = [ "syn 1.0.89", ] +[[package]] +name = "dlv-list" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68df3f2b690c1b86e65ef7830956aededf3cb0a16f898f79b9a6f421a7b6211b" +dependencies = [ + "rand 0.8.5", +] + [[package]] name = "docopt" version = "1.1.1" @@ -2783,6 +2803,7 @@ name = "otter" version = "0.7.3" dependencies = [ "anyhow", + "async-condvar-fair", "backtrace", "base64 0.13.0", "boolinator", @@ -2912,6 +2933,7 @@ dependencies = [ "actix-web", "fehler", "futures", + "mime 0.3.16", "num-traits", "otter", "otter-base", @@ -2922,6 +2944,7 @@ dependencies = [ "serde_with", "structopt", "strum", + "tokio", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 71b19aac..b64d7234 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,6 +83,7 @@ vecdeque-stableix="1" xmlparser = "0.13" zip="0.5" +async-condvar-fair = { version="0.2", features=["parking_lot_0_12"] } enum-map = { version="2" , features=["serde" ] } flexi_logger = { version="0.22" , features=["specfile" ] } image = { version = "0.24", default-features=false, features=["jpeg","png"] } diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml index 9a1dbb74..5e765771 100644 --- a/daemon/Cargo.toml +++ b/daemon/Cargo.toml @@ -42,10 +42,13 @@ rocket_cors="0.5" serde_with="1" structopt="0.3" +mime = "0.3" actix-web = "4" actix-files = "0.6" actix-cors = "0.6" +tokio = { version="1", features=["full","parking_lot"] } + rocket = { version="^0.4.6", features=["sse"] } rocket_contrib = { version="0.4", default-features=false, features=["tera_templates", "helmet", "json", "serve"] } diff --git a/src/imports.rs b/src/imports.rs index 450d3cc0..88937c97 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -6,6 +6,7 @@ pub use otter_base; pub use otter_base::imports::*; pub use anyhow; +pub use async_condvar_fair; pub use base64; pub use boolinator; pub use cast_trait_object; -- 2.30.2