Skip to content

Commit

Permalink
Bump version 0.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Jun 21, 2024
1 parent 3748c44 commit e835a1c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 21 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Push or PR

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
[push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "socks5-impl"
version = "0.5.12"
version = "0.5.13"
authors = ["ssrlive <[email protected]>"]
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
categories = ["network-programming", "asynchronous"]
Expand All @@ -17,23 +17,23 @@ tokio = ["dep:tokio"]
[dependencies]
as-any = "0.3"
async-trait = "0.1"
byteorder = "1.5"
bytes = "1.5"
byteorder = "1"
bytes = "1"
percent-encoding = "2"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tokio = { version = "1.36", features = ["full"], optional = true }
serde = { version = "1", features = ["derive"] }
thiserror = "1"
tokio = { version = "1", features = ["full"], optional = true }

[dev-dependencies]
clap = { version = "4.5", features = ["derive"] }
ctrlc2 = { version = "3.5", features = ["tokio", "termination"] }
clap = { version = "4", features = ["derive"] }
ctrlc2 = { version = "3", features = ["tokio", "termination"] }
dotenvy = "0.15"
env_logger = "0.11"
log = "0.4"
moka = { version = "0.12", features = ["future"] }
rand = "0.8"
tokio = { version = "1.36", features = ["macros", "rt-multi-thread"] }
trust-dns-proto = "0.23"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
hickory-proto = "0.24"

[[example]]
name = "demo-client"
Expand Down
2 changes: 1 addition & 1 deletion examples/dns-query.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mod util;

use hickory_proto::rr::record_type::RecordType;
use socks5_impl::{client, protocol::UserKey, Result};
use std::{net::SocketAddr, time::Duration};
use tokio::{
io::{AsyncReadExt, AsyncWriteExt},
net::TcpStream,
};
use trust_dns_proto::rr::record_type::RecordType;
use util::dns;

/// DNS query through socks5 proxy.
Expand Down
4 changes: 2 additions & 2 deletions examples/util/dns.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(dead_code)]

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};

pub fn build_dns_query(domain: &str, query_type: RecordType, used_by_tcp: bool) -> Result<Vec<u8>, String> {
use rand::{rngs::StdRng, Rng, SeedableRng};
Expand Down
2 changes: 0 additions & 2 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(feature = "tokio")]

use crate::{
error::{Error, Result},
protocol::{Address, AddressType, AuthMethod, Command, Reply, StreamOperation, UserKey, Version},
Expand Down
2 changes: 0 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(feature = "tokio")]

use std::{
net::SocketAddr,
task::{Context, Poll},
Expand Down

0 comments on commit e835a1c

Please sign in to comment.