Skip to content

Commit 065a2b3

Browse files
committed
update deps
1 parent 161500d commit 065a2b3

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ tokio = ["dep:tokio", "async-trait"]
2222

2323
[dependencies]
2424
async-trait = { version = "0.1.89", optional = true }
25-
bytes = "1.11.0"
25+
bytes = "1.11.1"
2626
percent-encoding = "2.3.2"
2727
serde = { version = "1.0.228", features = ["derive"], optional = true }
28-
thiserror = "2.0.17"
29-
tokio = { version = "1.48.0", default-features = false, features = [
28+
thiserror = "2.0.18"
29+
tokio = { version = "1.49.0", default-features = false, features = [
3030
"net",
3131
"io-util",
3232
"time",
@@ -35,16 +35,16 @@ tokio = { version = "1.48.0", default-features = false, features = [
3535
], optional = true }
3636

3737
[dev-dependencies]
38-
clap = { version = "4.5.53", features = ["derive"] }
38+
clap = { version = "4.5.58", features = ["derive"] }
3939
ctrlc2 = { version = "3.7.3", features = ["async", "termination"] }
4040
dotenvy = "0.15.7"
41-
env_logger = "0.11.8"
41+
env_logger = "0.11.9"
4242
hickory-proto = "0.25.2"
4343
log = "0.4.29"
44-
moka = { version = "0.12.11", features = ["future"] }
45-
rand = "0.9.2"
46-
tokio = { version = "1.48.0", features = ["rt-multi-thread"] }
47-
tokio-util = { version = "0.7.17", features = [] }
44+
moka = { version = "0.12.13", features = ["future"] }
45+
rand = "0.10.0"
46+
tokio = { version = "1.49.0", features = ["rt-multi-thread"] }
47+
tokio-util = { version = "0.7.18", features = [] }
4848

4949
[[example]]
5050
name = "demo-client"

examples/util/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn build_dns_query(domain: &str, query_type: RecordType, used_by_tcp: bool)
1111
let query = Query::query(name, query_type);
1212
let mut msg = Message::new();
1313
msg.add_query(query)
14-
.set_id(rand::Rng::random::<u16>(&mut rand::rng()))
14+
.set_id(rand::random::<u16>())
1515
.set_op_code(OpCode::Query)
1616
.set_message_type(MessageType::Query)
1717
.set_recursion_desired(true);

src/server/connection/associate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl<S: Default> UdpAssociate<S> {
7272
/// that allows the process to continue as quickly as possible.
7373
#[inline]
7474
pub fn set_linger(&self, dur: Option<Duration>) -> std::io::Result<()> {
75+
#[allow(deprecated)]
7576
self.stream.set_linger(dur)
7677
}
7778

src/server/connection/bind.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ impl Bind<NeedFirstReply> {
9494
/// that allows the process to continue as quickly as possible.
9595
#[inline]
9696
pub fn set_linger(&self, dur: Option<Duration>) -> std::io::Result<()> {
97+
#[allow(deprecated)]
9798
self.stream.set_linger(dur)
9899
}
99100

@@ -186,6 +187,7 @@ impl Bind<NeedSecondReply> {
186187
/// that allows the process to continue as quickly as possible.
187188
#[inline]
188189
pub fn set_linger(&self, dur: Option<Duration>) -> std::io::Result<()> {
190+
#[allow(deprecated)]
189191
self.stream.set_linger(dur)
190192
}
191193

src/server/connection/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl<O: 'static> IncomingConnection<O> {
5858
/// that allows the process to continue as quickly as possible.
5959
#[inline]
6060
pub fn set_linger(&self, dur: Option<Duration>) -> std::io::Result<()> {
61+
#[allow(deprecated)]
6162
self.stream.set_linger(dur)
6263
}
6364

@@ -213,6 +214,7 @@ impl Authenticated {
213214
/// that allows the process to continue as quickly as possible.
214215
#[inline]
215216
pub fn set_linger(&self, dur: Option<Duration>) -> std::io::Result<()> {
217+
#[allow(deprecated)]
216218
self.0.set_linger(dur)
217219
}
218220

0 commit comments

Comments
 (0)