Skip to content

Commit

Permalink
Bump version 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Jun 16, 2024
1 parent d0a53df commit 94818f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dns2socks"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
license = "MIT"
repository = "https://github.com/ssrlive/dns2socks"
Expand All @@ -23,4 +23,4 @@ rand = "0.8"
socks5-impl = "0.5"
tokio = { version = "1", features = ["full"] }
tokio-util = "0.7"
trust-dns-proto = "0.23"
hickory-proto = "0.24"
1 change: 0 additions & 1 deletion build-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ cbindgen --config cbindgen.toml -l C -o target/include/dns2socks.h
cat > target/include/dns2socks.modulemap <<EOF
framework module dns2socks {
umbrella header "dns2socks.h"
export *
module * { export * }
}
Expand Down
4 changes: 2 additions & 2 deletions src/dns.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::{net::IpAddr, str::FromStr};
use trust_dns_proto::{
use hickory_proto::{
op::{header::MessageType, op_code::OpCode, query::Query, Message, ResponseCode},
rr::{record_type::RecordType, Name, RData},
};
use std::{net::IpAddr, str::FromStr};

#[allow(dead_code)]
pub fn build_dns_query(domain: &str, query_type: RecordType, used_by_tcp: bool) -> Result<Vec<u8>, String> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mod config;
mod dns;
mod dump_logger;

use hickory_proto::op::{Message, Query};
use moka::future::Cache;
use socks5_impl::{
client,
Expand All @@ -14,7 +15,6 @@ use tokio::{
io::{AsyncReadExt, AsyncWriteExt, BufStream},
net::{TcpListener, TcpStream, ToSocketAddrs, UdpSocket},
};
use trust_dns_proto::op::{Message, Query};

pub use ::tokio_util::sync::CancellationToken;
pub use api::{dns2socks_start, dns2socks_stop};
Expand Down

0 comments on commit 94818f7

Please sign in to comment.