Skip to content

Commit e835a1c

Browse files
committed
Bump version 0.5.13
1 parent 3748c44 commit e835a1c

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Push or PR
22

33
on:
4-
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
4+
[push, pull_request]
85

96
env:
107
CARGO_TERM_COLOR: always

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "socks5-impl"
3-
version = "0.5.12"
3+
version = "0.5.13"
44
authors = ["ssrlive <[email protected]>"]
55
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
66
categories = ["network-programming", "asynchronous"]
@@ -17,23 +17,23 @@ tokio = ["dep:tokio"]
1717
[dependencies]
1818
as-any = "0.3"
1919
async-trait = "0.1"
20-
byteorder = "1.5"
21-
bytes = "1.5"
20+
byteorder = "1"
21+
bytes = "1"
2222
percent-encoding = "2"
23-
serde = { version = "1.0", features = ["derive"] }
24-
thiserror = "1.0"
25-
tokio = { version = "1.36", features = ["full"], optional = true }
23+
serde = { version = "1", features = ["derive"] }
24+
thiserror = "1"
25+
tokio = { version = "1", features = ["full"], optional = true }
2626

2727
[dev-dependencies]
28-
clap = { version = "4.5", features = ["derive"] }
29-
ctrlc2 = { version = "3.5", features = ["tokio", "termination"] }
28+
clap = { version = "4", features = ["derive"] }
29+
ctrlc2 = { version = "3", features = ["tokio", "termination"] }
3030
dotenvy = "0.15"
3131
env_logger = "0.11"
3232
log = "0.4"
3333
moka = { version = "0.12", features = ["future"] }
3434
rand = "0.8"
35-
tokio = { version = "1.36", features = ["macros", "rt-multi-thread"] }
36-
trust-dns-proto = "0.23"
35+
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
36+
hickory-proto = "0.24"
3737

3838
[[example]]
3939
name = "demo-client"

examples/dns-query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
mod util;
22

3+
use hickory_proto::rr::record_type::RecordType;
34
use socks5_impl::{client, protocol::UserKey, Result};
45
use std::{net::SocketAddr, time::Duration};
56
use tokio::{
67
io::{AsyncReadExt, AsyncWriteExt},
78
net::TcpStream,
89
};
9-
use trust_dns_proto::rr::record_type::RecordType;
1010
use util::dns;
1111

1212
/// DNS query through socks5 proxy.

examples/util/dns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#![allow(dead_code)]
22

3-
use std::{net::IpAddr, str::FromStr};
4-
use trust_dns_proto::{
3+
use hickory_proto::{
54
op::{header::MessageType, op_code::OpCode, query::Query, Message, ResponseCode},
65
rr::{record_type::RecordType, Name, RData},
76
};
7+
use std::{net::IpAddr, str::FromStr};
88

99
pub fn build_dns_query(domain: &str, query_type: RecordType, used_by_tcp: bool) -> Result<Vec<u8>, String> {
1010
use rand::{rngs::StdRng, Rng, SeedableRng};

src/client/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(feature = "tokio")]
2-
31
use crate::{
42
error::{Error, Result},
53
protocol::{Address, AddressType, AuthMethod, Command, Reply, StreamOperation, UserKey, Version},

src/server/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(feature = "tokio")]
2-
31
use std::{
42
net::SocketAddr,
53
task::{Context, Poll},

0 commit comments

Comments
 (0)