Skip to content

Commit

Permalink
Upgrade some dependencies and librqbit to 4.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Dec 1, 2023
1 parent 143bdea commit af1facb
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 42 deletions.
204 changes: 169 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions crates/librqbit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ sha1w = {path = "../sha1w", default-features=false, package="librqbit-sha1-wrapp
dht = {path = "../dht", package="librqbit-dht", version="4.0.0-beta.1"}

tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
axum = {version = "0.6"}
tower-http = {version = "0.4", features = ["cors", "trace"]}
axum = {version = "0.7"}
tower-http = {version = "0.5", features = ["cors", "trace"]}
tokio-stream = "0.1"
serde = {version = "1", features=["derive"]}
serde_json = "1"
serde_urlencoded = "0.7"
anyhow = "1"
itertools = "0.12"
http = "0.2"
http = "1"
regex = "1"
reqwest = {version="0.11.22", default-features=false}
urlencoding = "2"
Expand Down
10 changes: 6 additions & 4 deletions crates/librqbit/src/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,12 @@ impl HttpApi {
.into_make_service();

info!("starting HTTP server on {}", addr);
axum::Server::try_bind(&addr)
.with_context(|| format!("error binding to {addr}"))?
.serve(app)
.await?;

use tokio::net::TcpListener;
let listener = TcpListener::bind(&addr)
.await
.with_context(|| format!("error binding to {addr}"))?;
axum::serve(listener, app).await?;
Ok(())
}
}
Expand Down

0 comments on commit af1facb

Please sign in to comment.