Skip to content

Commit

Permalink
Remove unnecessary dep
Browse files Browse the repository at this point in the history
Signed-off-by: yuguorui <[email protected]>
  • Loading branch information
yuguorui committed Dec 30, 2024
1 parent b3f200d commit 0e9e2e1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 80 deletions.
67 changes: 0 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ipnet = "2.3.1"
url = "2.2.2"
itertools = "0.10.3"
fast-socks5 = { git = "https://github.com/yuguorui/fast-socks5.git", rev = "9b5480f6" }
boomphf = "0.5.9"
maxminddb = "0.17"
lazy_static = "1.4.0"
tuple = "0.5.1"
Expand Down
12 changes: 0 additions & 12 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![allow(dead_code)]

use boomphf::Mphf;
use ipnet::{IpNet, Ipv6Net, PrefixLenError};
use std::fmt::Debug;
use std::hash::Hash;
use std::net::{IpAddr, SocketAddr};
use tokio::net::TcpStream;
use tokio::{
Expand Down Expand Up @@ -79,15 +76,6 @@ pub fn to_io_err(sock_err: fast_socks5::SocksError) -> std::io::Error {
};
}

/// A HashSet data structure where the mapping between keys is encoded in a Mphf. This lets us store the keys in dense
/// arrays, with ~3 bits/item overhead in the Mphf.
#[derive(Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct BoomHashSet<K: Hash> {
mphf: Mphf<K>,
keys: Vec<K>,
}

pub async fn transfer_tcp(in_sock: &mut TcpStream, rt_context: RouteContext) -> Result<()> {
let mut out_sock = match SETTINGS
.read()
Expand Down

0 comments on commit 0e9e2e1

Please sign in to comment.