Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 29, 2024
1 parent 88fcac7 commit bf093c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
18 changes: 9 additions & 9 deletions counit-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ futures = "0.3.28"
# web server
tokio = { version = "1.30.0", features = ["macros", "process", "rt", "rt-multi-thread", "io-std", "io-util", "sync", "fs"] }

axum = { version = "0.6.18", features = ["http2", "headers"] }
axum-extra = { version = "0.7.4", features = ["cookie", "cookie-private"] }
axum = { version = "0.7.5", features = ["http2"] }
axum-extra = { version = "0.9.3", features = ["cookie", "cookie-private"] }
tower = "0.4.13"
tower-http = { version = "0.4.1", features = ["auth", "cors", "catch-panic", "fs"] }
tower-http = { version = "0.5.2", features = ["auth", "cors", "catch-panic", "fs"] }

chrono = { version = "0.4.26", features = ["serde", "clock"], default-features = false }
time = { version = "0.3.22", default-features = false }
Expand All @@ -27,13 +27,13 @@ stardict_wrapper = "0.0.5"

# third party
# the open api spec
utoipa = { version = "3", features = ["axum_extras"] }
utoipa = { version = "4.2.0", features = ["axum_extras"] }
# utoipa-swagger-ui
utoipa-swagger-ui = { version = "3", eatures = ["axum"] }
utoipa-swagger-ui = { version = "6.0.0", eatures = ["axum"] }

# embedding
ort = { git = "https://github.com/bloopai/ort", branch = "env-builder-telemetry" }
tokenizers = "0.13.3"
tokenizers = "0.15.2"
ndarray = "0.15.6"
qdrant-client = { version = "1.3.0", default-features = false }

Expand All @@ -50,12 +50,12 @@ tracing-appender = "0.2.2"

#
regex = "1.9.3"
regex-syntax = "0.7.4"
regex-syntax = "0.8.3"


# serialization
serde = "1.0.183"
erased-serde = "0.3.28"
erased-serde = "0.4.4"
serde_json = "1.0.104"

# misc
Expand All @@ -65,7 +65,7 @@ uuid = { version = "1.4.0", features = ["v4", "fast-rng", "serde"] }
#domain language
walkdir = "2"
csv = "1.2"
polars = "0.32.1"
polars = "0.38.3"

[build-dependencies]
fs_extra = "1.3.0"
10 changes: 7 additions & 3 deletions counit-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ async fn main() -> anyhow::Result<()> {

info!(%bind, "starting webserver");

axum::Server::bind(&bind)
.serve(router.into_make_service())
.await?;

// axum::Server::bind(&bind)
// .serve(router.into_make_service())
// .await?;

let listener = tokio::net::TcpListener::bind(&bind).await.unwrap();
axum::serve(listener, router).await.unwrap();

Ok(())
}
Expand Down

0 comments on commit bf093c6

Please sign in to comment.