Skip to content

Commit 94818f7

Browse files
committed
Bump version 0.1.5
1 parent d0a53df commit 94818f7

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dns2socks"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/ssrlive/dns2socks"
@@ -23,4 +23,4 @@ rand = "0.8"
2323
socks5-impl = "0.5"
2424
tokio = { version = "1", features = ["full"] }
2525
tokio-util = "0.7"
26-
trust-dns-proto = "0.23"
26+
hickory-proto = "0.24"

build-apple.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cbindgen --config cbindgen.toml -l C -o target/include/dns2socks.h
2828
cat > target/include/dns2socks.modulemap <<EOF
2929
framework module dns2socks {
3030
umbrella header "dns2socks.h"
31-
3231
export *
3332
module * { export * }
3433
}

src/dns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use std::{net::IpAddr, str::FromStr};
2-
use trust_dns_proto::{
1+
use hickory_proto::{
32
op::{header::MessageType, op_code::OpCode, query::Query, Message, ResponseCode},
43
rr::{record_type::RecordType, Name, RData},
54
};
5+
use std::{net::IpAddr, str::FromStr};
66

77
#[allow(dead_code)]
88
pub fn build_dns_query(domain: &str, query_type: RecordType, used_by_tcp: bool) -> Result<Vec<u8>, String> {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mod config;
33
mod dns;
44
mod dump_logger;
55

6+
use hickory_proto::op::{Message, Query};
67
use moka::future::Cache;
78
use socks5_impl::{
89
client,
@@ -14,7 +15,6 @@ use tokio::{
1415
io::{AsyncReadExt, AsyncWriteExt, BufStream},
1516
net::{TcpListener, TcpStream, ToSocketAddrs, UdpSocket},
1617
};
17-
use trust_dns_proto::op::{Message, Query};
1818

1919
pub use ::tokio_util::sync::CancellationToken;
2020
pub use api::{dns2socks_start, dns2socks_stop};

0 commit comments

Comments
 (0)