Skip to content

Commit 0d9b2af

Browse files
committed
chore: update dependencies and replace std::sync::Arc with triomphe::Arc
1 parent 0a9b4ec commit 0d9b2af

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tokio = { version = "1", features = ["full", "tracing"] }
2929
tokio-util = { version = "0.7", features = ["codec", "io", "tracing"] }
3030
async-trait = "0.1"
3131
futures = "0.3"
32-
bytes = "1.10"
32+
bytes = "1"
3333
pin-project-lite = "0.2"
3434

3535
dynosaur = "0.3"
@@ -49,12 +49,12 @@ brotli = "8.0"
4949

5050
thiserror = "2"
5151

52-
arc-swap = "1.7"
52+
arc-swap = "1.8"
5353
once_cell = "1.21"
5454
triomphe = "0.1"
5555

5656

57-
matchit = "0.8"
57+
matchit = "0.9"
5858

5959
mockall = "0.13"
6060
criterion = "0.7"

crates/web/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ bytes.workspace = true
3838

3939
hlist2.workspace = true
4040
tower-layer.workspace = true
41+
triomphe.workspace = true
4142

4243
dhat.workspace = true
4344

crates/web/src/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use http_body_util::combinators::UnsyncBoxBody;
55
use micro_http::protocol::body::ReqBody;
66
use micro_http::protocol::{HttpError, ParseError};
77
use std::pin::Pin;
8-
use std::sync::Arc;
98
use std::task::{Context, Poll};
109
use tokio::sync::Mutex;
10+
use triomphe::Arc;
1111

1212
#[derive(Debug, Clone)]
1313
pub struct OptionReqBody {

crates/web/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ use micro_http::protocol::RequestHeader;
4141
use micro_http::protocol::body::ReqBody;
4242
use std::error::Error;
4343
use std::net::{SocketAddr, ToSocketAddrs};
44-
use std::sync::Arc;
4544
use thiserror::Error;
4645
use tokio::net::TcpListener;
4746
use tracing::{Level, error, info, warn};
4847
use tracing_subscriber::FmtSubscriber;
48+
use triomphe::Arc;
4949
use crate::extract::FromRequest;
5050
use crate::responder::Responder;
5151

0 commit comments

Comments
 (0)