Reexport tokio

This commit is contained in:
Frank Denis 2021-02-15 23:46:24 +01:00
parent b4d4eaae50
commit 39124df9fc
4 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "doh-proxy"
version = "0.3.7"
version = "0.3.8"
authors = ["Frank Denis <github@pureftpd.org>"]
description = "A DNS-over-HTTPS (DoH) proxy"
keywords = ["dns","https","doh","proxy"]
@ -16,10 +16,9 @@ default = ["tls"]
tls = ["libdoh/tls"]
[dependencies]
libdoh = { path = "src/libdoh", version = "0.3.7", default-features = false }
libdoh = { path = "src/libdoh", version = "0.3.8", default-features = false }
clap = "2.33.3"
jemallocator = "0.3.2"
tokio = { version = "1.2.0", features = ["net", "rt-multi-thread", "parking_lot", "time", "sync"] }
[package.metadata.deb]
extended-description = """\

View file

@ -1,6 +1,6 @@
[package]
name = "libdoh"
version = "0.3.7"
version = "0.3.8"
authors = ["Frank Denis <github@pureftpd.org>"]
description = "DoH library for the rust-doh app"
keywords = ["dns","https","doh","proxy"]

View file

@ -26,6 +26,10 @@ use tokio::net::{TcpListener, UdpSocket};
use tokio::runtime;
use tokio::sync::mpsc;
pub mod reexports {
pub use tokio;
}
#[derive(Clone, Debug)]
pub struct DoH {
pub globals: Arc<Globals>,

View file

@ -13,6 +13,7 @@ use libdoh::*;
use crate::config::*;
use crate::constants::*;
use libdoh::reexports::tokio;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::Arc;
use std::time::Duration;