├── .gitignore ├── rustfmt.toml ├── README.md ├── Cargo.toml ├── src ├── pty.rs ├── bin │ └── whisper.rs ├── ffi.rs ├── util.rs └── lib.rs ├── LICENSE └── Cargo.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | imports_granularity = "Crate" 2 | hard_tabs = true 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Whisper 2 | 3 | [Wisp protocol](https://github.com/MercuryWorkshop/wisp-protocol) client that exposes the Wisp connection over a TUN device. 4 | 5 | ## License 6 | 7 | Whisper is licensed under the [GNU GPL-3.0-or-later license](https://www.gnu.org/licenses/gpl-3.0.html). 8 | 9 | ## Contributing 10 | 11 | Contributions are welcome! Please write tests and make sure they pass before submitting a pull request. 12 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "whisper" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | [lib] 7 | crate-type = ["staticlib", "lib"] 8 | 9 | [dependencies] 10 | async-trait = "0.1.80" 11 | bytes = "1.5.0" 12 | cfg-if = "1.0.0" 13 | clap = { version = "4.5.3", features = ["cargo", "derive"] } 14 | dashmap = "5.5.3" 15 | fastwebsockets = { version = "0.8.0", features = ["unstable-split", "upgrade", "simdutf8"] } 16 | futures-util = { version = "0.3.30", features = ["sink"] } 17 | http-body-util = "0.1.1" 18 | hyper = { version = "1.2.0", features = ["client", "http1"] } 19 | hyper-util = { version = "0.1.3", features = ["tokio"] } 20 | log = "0.4.21" 21 | lwip = "0.3.15" 22 | nix = { version = "0.28.0", features = ["term"] } 23 | rustls-pki-types = { version = "1.4.0", optional = true } 24 | simplelog = "0.12.2" 25 | tokio = { version = "1.36.0", features = ["full"] } 26 | tokio-native-tls = { version = "0.3.1", optional = true } 27 | tokio-rustls = { version = "0.26.0", optional = true } 28 | tokio-util = { version = "0.7.11", features = ["compat"] } 29 | tun2 = { version = "1.2.3", features = ["async"] } 30 | webpki-roots = { version = "0.26.1", optional = true } 31 | wisp-mux = { version = "5.0.0", features = ["fastwebsockets"] } 32 | 33 | [target.'cfg(target_os = "ios")'.dependencies] 34 | oslog = "0.2.0" 35 | 36 | [features] 37 | default = ["native-tls"] 38 | rustls = ["dep:tokio-rustls", "dep:webpki-roots", "dep:rustls-pki-types"] 39 | native-tls = ["dep:tokio-native-tls"] 40 | -------------------------------------------------------------------------------- /src/pty.rs: -------------------------------------------------------------------------------- 1 | use std::{io, os::fd::AsFd, path::PathBuf}; 2 | 3 | use async_trait::async_trait; 4 | use bytes::Bytes; 5 | use futures_util::{SinkExt, StreamExt}; 6 | use tokio::fs::File; 7 | use tokio_util::codec::{Framed, LengthDelimitedCodec}; 8 | use wisp_mux::{ 9 | ws::{Frame, LockedWebSocketWrite, Payload, WebSocketRead, WebSocketWrite}, 10 | WispError, 11 | }; 12 | 13 | pub async fn open_pty(file: &PathBuf) -> Result<(PtyRead, PtyWrite), io::Error> { 14 | let rx = File::options().read(true).write(true).open(file).await?; 15 | let mut termios = nix::sys::termios::tcgetattr(rx.as_fd())?.clone(); 16 | nix::sys::termios::cfmakeraw(&mut termios); 17 | nix::sys::termios::tcsetattr(rx.as_fd(), nix::sys::termios::SetArg::TCSANOW, &termios)?; 18 | let rx = LengthDelimitedCodec::builder() 19 | .little_endian() 20 | .max_frame_length(usize::MAX) 21 | .new_framed(rx); 22 | 23 | let tx = File::options().read(true).write(true).open(file).await?; 24 | let mut termios = nix::sys::termios::tcgetattr(tx.as_fd())?.clone(); 25 | nix::sys::termios::cfmakeraw(&mut termios); 26 | nix::sys::termios::tcsetattr(tx.as_fd(), nix::sys::termios::SetArg::TCSANOW, &termios)?; 27 | let tx = LengthDelimitedCodec::builder() 28 | .little_endian() 29 | .max_frame_length(usize::MAX) 30 | .new_framed(tx); 31 | Ok((PtyRead(rx), PtyWrite(tx))) 32 | } 33 | 34 | pub struct PtyRead(Framed); 35 | 36 | #[async_trait] 37 | impl WebSocketRead for PtyRead { 38 | async fn wisp_read_frame( 39 | &mut self, 40 | _: &LockedWebSocketWrite, 41 | ) -> Result, WispError> { 42 | Ok(Frame::binary(Payload::Bytes( 43 | self.0 44 | .next() 45 | .await 46 | .ok_or(WispError::WsImplSocketClosed)? 47 | .map_err(|x| WispError::WsImplError(Box::new(x)))?, 48 | ))) 49 | } 50 | } 51 | 52 | pub struct PtyWrite(Framed); 53 | 54 | #[async_trait] 55 | impl WebSocketWrite for PtyWrite { 56 | async fn wisp_write_frame(&mut self, frame: Frame<'_>) -> Result<(), WispError> { 57 | use wisp_mux::ws::OpCode as O; 58 | match frame.opcode { 59 | O::Text | O::Binary => self 60 | .0 61 | .send(Bytes::copy_from_slice(frame.payload.as_ref())) 62 | .await 63 | .map_err(|x| WispError::WsImplError(Box::new(x))), 64 | O::Close => self 65 | .0 66 | .close() 67 | .await 68 | .map_err(|x| WispError::WsImplError(Box::new(x))), 69 | _ => Err(WispError::WsImplNotSupported), 70 | } 71 | } 72 | 73 | async fn wisp_close(&mut self) -> Result<(), WispError> { 74 | self.0 75 | .get_mut() 76 | .sync_all() 77 | .await 78 | .map_err(|x| WispError::WsImplError(Box::new(x)))?; 79 | self.0 80 | .close() 81 | .await 82 | .map_err(|x| WispError::WsImplError(Box::new(x)))?; 83 | Ok(()) 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/bin/whisper.rs: -------------------------------------------------------------------------------- 1 | #![feature(let_chains)] 2 | use std::{error::Error, net::TcpListener, process::abort}; 3 | 4 | use clap::Parser; 5 | use hyper::Uri; 6 | use log::{error, info, LevelFilter}; 7 | use simplelog::{Config, SimpleLogger}; 8 | use tokio::{net::lookup_host, process::Command, sync::mpsc::unbounded_channel}; 9 | use tun2::{create_as_async, Configuration}; 10 | use whisper::{ 11 | start_whisper, 12 | util::{connect_to_wisp, WhisperError}, 13 | Cli, WispServer, 14 | }; 15 | 16 | #[tokio::main(flavor = "multi_thread")] 17 | async fn main() -> Result<(), Box> { 18 | SimpleLogger::init(LevelFilter::Info, Config::default())?; 19 | let opts = Cli::parse(); 20 | 21 | let (mux, socketaddr) = if let Some(ref url) = opts.wisp.url 22 | && opts.cf 23 | { 24 | let free_port = TcpListener::bind("127.0.0.1:0")?.local_addr()?; 25 | // this can fail but ehhh 26 | let mut cloudflared_command = Command::new("cloudflared") 27 | .arg("access") 28 | .arg("tcp") 29 | .arg("--hostname") 30 | .arg(url.to_string()) 31 | .arg("--listener") 32 | .arg(&free_port.to_string()) 33 | .kill_on_drop(true) 34 | .spawn()?; 35 | tokio::spawn(async move { 36 | if let Err(err) = cloudflared_command.wait().await { 37 | error!("error in cloudflared command: {:?}", err); 38 | } 39 | abort(); 40 | }); 41 | 42 | let tls = match url.scheme_str().ok_or(WhisperError::UriHasNoScheme)? { 43 | "https" => Ok(true), 44 | "http" => Ok(false), 45 | _ => Err(Box::new(WhisperError::UriHasInvalidScheme)), 46 | }?; 47 | let host = url.host().ok_or(WhisperError::UriHasNoHost)?; 48 | let port = url.port_u16().unwrap_or(if tls { 443 } else { 80 }); 49 | 50 | let socketaddr = lookup_host(format!("{}:{}", host, port)).await?; 51 | info!( 52 | "IP addresses of Wisp server (whitelist these): {:?}", 53 | socketaddr.collect::>() 54 | ); 55 | let mut local_url = Uri::builder().scheme("ws").authority(free_port.to_string()); 56 | if let Some(path_and_query) = url.path_and_query() { 57 | local_url = local_url.path_and_query(path_and_query.clone()); 58 | } 59 | ( 60 | connect_to_wisp( 61 | &WispServer { 62 | pty: None, 63 | url: Some(local_url.build()?), 64 | }, 65 | opts.wisp_v2, 66 | ) 67 | .await? 68 | .0, 69 | None, 70 | ) 71 | } else { 72 | connect_to_wisp(&opts.wisp, opts.wisp_v2).await? 73 | }; 74 | 75 | info!("Creating TUN device with name: {:?}", opts.tun); 76 | let mut cfg = Configuration::default(); 77 | cfg.address(opts.ip) 78 | .netmask(opts.mask) 79 | .destination(opts.dest) 80 | .mtu(opts.mtu) 81 | .tun_name(opts.tun) 82 | .up(); 83 | #[cfg(any(target_os = "linux", windows))] 84 | cfg.platform_config(|c| { 85 | #[cfg(target_os = "linux")] 86 | c.ensure_root_privileges(true); 87 | #[cfg(windows)] 88 | c.device_guid(Some(12324323423423434234_u128)); 89 | }); 90 | let tun = create_as_async(&cfg)?; 91 | 92 | if let Some(socketaddr) = socketaddr { 93 | info!("IP address of Wisp server (whitelist this): {}", socketaddr); 94 | } 95 | 96 | let (_tx, rx) = unbounded_channel(); 97 | start_whisper(mux, tun, opts.mtu, rx).await 98 | } 99 | -------------------------------------------------------------------------------- /src/ffi.rs: -------------------------------------------------------------------------------- 1 | use std::{ 2 | ffi::{c_char, c_int, c_ushort, CStr, CString}, 3 | net::SocketAddr, 4 | ptr, 5 | sync::OnceLock, 6 | }; 7 | 8 | use cfg_if::cfg_if; 9 | use hyper::Uri; 10 | use log::{info, LevelFilter}; 11 | use tokio::{ 12 | runtime::{Builder, Runtime}, 13 | sync::{ 14 | mpsc::{unbounded_channel, UnboundedSender}, 15 | Mutex, 16 | }, 17 | }; 18 | use tun2::{create_as_async, AsyncDevice, Configuration}; 19 | use wisp_mux::ClientMux; 20 | 21 | use crate::{ 22 | start_whisper, 23 | util::{connect_to_wisp, WhisperError}, 24 | WhisperEvent, WispServer, 25 | }; 26 | 27 | struct WhisperInitState { 28 | mux: ClientMux, 29 | tun: AsyncDevice, 30 | mtu: u16, 31 | socketaddr: SocketAddr, 32 | } 33 | 34 | struct WhisperRunningState { 35 | socketaddr: SocketAddr, 36 | channel: UnboundedSender, 37 | } 38 | 39 | static WHISPER: Mutex<(Option, Option)> = 40 | Mutex::const_new((None, None)); 41 | 42 | static RUNTIME: OnceLock = OnceLock::new(); 43 | 44 | macro_rules! build_runtime { 45 | () => { 46 | RUNTIME.get_or_try_init(|| Builder::new_current_thread().enable_all().build()) 47 | }; 48 | } 49 | 50 | #[no_mangle] 51 | pub extern "C" fn whisper_init_logging(app_name: *const c_char) -> bool { 52 | #[allow(unused_variables)] 53 | let app_name = unsafe { 54 | if app_name.is_null() { 55 | return false; 56 | } 57 | CStr::from_ptr(app_name).to_string_lossy().to_string() 58 | }; 59 | cfg_if! { 60 | if #[cfg(target_os = "ios")] { 61 | oslog::OsLogger::new(&app_name) 62 | .level_filter(LevelFilter::Info) 63 | .init().is_ok() 64 | } else if #[cfg(target_os = "android")] { 65 | android_log::init(app_name).is_ok() 66 | } else { 67 | simplelog::SimpleLogger::init(LevelFilter::Info, simplelog::Config::default()).is_ok() 68 | } 69 | } 70 | } 71 | 72 | #[no_mangle] 73 | pub extern "C" fn whisper_init(fd: c_int, ws: *const c_char, mtu: c_ushort) -> bool { 74 | let ws = unsafe { 75 | if ws.is_null() { 76 | return false; 77 | } 78 | CStr::from_ptr(ws).to_string_lossy().to_string() 79 | }; 80 | if let Ok(rt) = build_runtime!() { 81 | rt.block_on(async { 82 | let mut whisper = WHISPER.lock().await; 83 | 84 | if whisper.0.is_some() || whisper.1.is_some() { 85 | return Err(WhisperError::AlreadyInitialized); 86 | } 87 | 88 | let (mux, socketaddr) = connect_to_wisp( 89 | &WispServer { 90 | pty: None, 91 | url: Some(Uri::try_from(ws).map_err(WhisperError::other)?), 92 | }, 93 | false, 94 | ) 95 | .await 96 | .map_err(WhisperError::Other)?; 97 | 98 | let mut cfg = Configuration::default(); 99 | cfg.raw_fd(fd); 100 | let tun = create_as_async(&cfg).map_err(WhisperError::other)?; 101 | 102 | whisper.0.replace(WhisperInitState { 103 | mux, 104 | tun, 105 | mtu, 106 | socketaddr: socketaddr.ok_or(WhisperError::NoSocketAddr)?, 107 | }); 108 | info!("Initialized Whisper."); 109 | Ok(()) 110 | }) 111 | .is_ok() 112 | } else { 113 | false 114 | } 115 | } 116 | 117 | #[no_mangle] 118 | pub extern "C" fn whisper_get_ws_ip() -> *mut c_char { 119 | if let Ok(rt) = build_runtime!() { 120 | let ip = rt.block_on(async { 121 | let whisper = WHISPER.lock().await; 122 | if let Some(init) = &whisper.0 { 123 | CString::new(init.socketaddr.ip().to_string()).map_err(WhisperError::other) 124 | } else if let Some(running) = &whisper.1 { 125 | CString::new(running.socketaddr.ip().to_string()).map_err(WhisperError::other) 126 | } else { 127 | Err(WhisperError::NotInitialized) 128 | } 129 | }); 130 | match ip { 131 | Ok(ptr) => ptr.into_raw(), 132 | Err(_) => ptr::null_mut(), 133 | } 134 | } else { 135 | ptr::null_mut() 136 | } 137 | } 138 | 139 | #[no_mangle] 140 | pub extern "C" fn whisper_free(s: *mut c_char) { 141 | unsafe { 142 | if s.is_null() { 143 | return; 144 | } 145 | let _ = CString::from_raw(s); 146 | }; 147 | } 148 | 149 | #[no_mangle] 150 | pub extern "C" fn whisper_start() -> bool { 151 | if let Ok(rt) = build_runtime!() { 152 | rt.block_on(async { 153 | let mut whisper = WHISPER.lock().await; 154 | if whisper.1.is_some() { 155 | return Err(WhisperError::AlreadyStarted); 156 | } 157 | let WhisperInitState { 158 | mux, 159 | tun, 160 | mtu, 161 | socketaddr, 162 | } = whisper.0.take().ok_or(WhisperError::NotInitialized)?; 163 | let (channel, rx) = unbounded_channel(); 164 | whisper.1.replace(WhisperRunningState { 165 | channel, 166 | socketaddr, 167 | }); 168 | // unlock so other stuff can be called 169 | drop(whisper); 170 | info!("Starting Whisper..."); 171 | let ret = start_whisper(mux, tun, mtu, rx) 172 | .await 173 | .map_err(WhisperError::Other); 174 | info!("Whisper finished with ret: {:?}", ret); 175 | ret 176 | }) 177 | .is_ok() 178 | } else { 179 | false 180 | } 181 | } 182 | 183 | #[no_mangle] 184 | pub extern "C" fn whisper_stop() -> bool { 185 | if let Ok(rt) = build_runtime!() { 186 | rt.block_on(async { 187 | let mut whisper = WHISPER.lock().await; 188 | if whisper.1.is_none() { 189 | return Err(WhisperError::NotStarted); 190 | } 191 | let WhisperRunningState { channel, .. } = 192 | whisper.1.take().ok_or(WhisperError::NotInitialized)?; 193 | channel 194 | .send(WhisperEvent::EndFut) 195 | .map_err(WhisperError::other)?; 196 | info!("Told Whisper to stop."); 197 | Ok(()) 198 | }) 199 | .is_ok() 200 | } else { 201 | false 202 | } 203 | } 204 | -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- 1 | use std::{error::Error, fmt::Display, net::SocketAddr, process::abort}; 2 | 3 | use async_trait::async_trait; 4 | use bytes::Bytes; 5 | use fastwebsockets::{handshake, FragmentCollectorRead}; 6 | use futures_util::Future; 7 | use http_body_util::Empty; 8 | use hyper::{ 9 | header::{CONNECTION, UPGRADE}, 10 | rt::Executor, 11 | Request, 12 | }; 13 | use log::info; 14 | use tokio::net::TcpStream; 15 | #[cfg(feature = "native-tls")] 16 | use tokio_native_tls::{native_tls, TlsConnector}; 17 | #[cfg(feature = "rustls")] 18 | use tokio_rustls::{ 19 | rustls::{ClientConfig, RootCertStore}, 20 | TlsConnector, 21 | }; 22 | use tokio_util::either::Either; 23 | use wisp_mux::{ 24 | extensions::{udp::UdpProtocolExtensionBuilder, ProtocolExtensionBuilder}, 25 | ws::{Frame, LockedWebSocketWrite, WebSocketRead, WebSocketWrite}, 26 | ClientMux, WispError, 27 | }; 28 | 29 | use crate::{pty::open_pty, WispServer}; 30 | 31 | pub struct SpawnExecutor; 32 | 33 | impl Executor for SpawnExecutor 34 | where 35 | Fut: Future + Send + 'static, 36 | Fut::Output: Send + 'static, 37 | { 38 | fn execute(&self, fut: Fut) { 39 | tokio::spawn(fut); 40 | } 41 | } 42 | 43 | #[derive(Debug)] 44 | pub enum WhisperError { 45 | UriHasNoScheme, 46 | UriHasInvalidScheme, 47 | UriHasNoHost, 48 | NoSocketAddr, 49 | NotInitialized, 50 | AlreadyInitialized, 51 | NotStarted, 52 | AlreadyStarted, 53 | ChannelExited, 54 | Other(Box), 55 | } 56 | 57 | impl Display for WhisperError { 58 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 59 | match self { 60 | Self::UriHasNoScheme => write!(f, "URI has no scheme"), 61 | Self::UriHasInvalidScheme => write!(f, "URI has invalid scheme"), 62 | Self::UriHasNoHost => write!(f, "URI has no host"), 63 | Self::NoSocketAddr => write!(f, "No socket addr"), 64 | Self::NotInitialized => write!(f, "Whisper not initialized"), 65 | Self::AlreadyInitialized => write!(f, "Whisper already initialized"), 66 | Self::NotStarted => write!(f, "Whisper not started"), 67 | Self::AlreadyStarted => write!(f, "Whisper already started"), 68 | Self::ChannelExited => write!(f, "Channel exited"), 69 | Self::Other(err) => err.fmt(f), 70 | } 71 | } 72 | } 73 | 74 | impl Error for WhisperError {} 75 | 76 | impl WhisperError { 77 | pub fn other(err: impl Error + 'static) -> Self { 78 | Self::Other(Box::new(err)) 79 | } 80 | } 81 | 82 | pub enum EitherWebSocketRead { 83 | Left(L), 84 | Right(R), 85 | } 86 | 87 | #[async_trait] 88 | impl WebSocketRead for EitherWebSocketRead { 89 | async fn wisp_read_frame( 90 | &mut self, 91 | tx: &LockedWebSocketWrite, 92 | ) -> Result, WispError> { 93 | match self { 94 | Self::Left(read) => read.wisp_read_frame(tx).await, 95 | Self::Right(read) => read.wisp_read_frame(tx).await, 96 | } 97 | } 98 | } 99 | 100 | pub enum EitherWebSocketWrite { 101 | Left(L), 102 | Right(R), 103 | } 104 | 105 | #[async_trait] 106 | impl WebSocketWrite 107 | for EitherWebSocketWrite 108 | { 109 | async fn wisp_write_frame(&mut self, frame: Frame<'_>) -> Result<(), WispError> { 110 | match self { 111 | Self::Left(write) => write.wisp_write_frame(frame).await, 112 | Self::Right(write) => write.wisp_write_frame(frame).await, 113 | } 114 | } 115 | 116 | async fn wisp_close(&mut self) -> Result<(), WispError> { 117 | match self { 118 | Self::Left(write) => write.wisp_close().await, 119 | Self::Right(write) => write.wisp_close().await, 120 | } 121 | } 122 | } 123 | 124 | pub async fn connect_to_wisp( 125 | opts: &WispServer, 126 | v2: bool, 127 | ) -> Result<(ClientMux, Option), Box> { 128 | let (rx, tx, socketaddr) = if let Some(pty) = &opts.pty { 129 | info!("Connecting to PTY: {:?}", pty); 130 | let (rx, tx) = open_pty(pty).await?; 131 | ( 132 | EitherWebSocketRead::Right(rx), 133 | EitherWebSocketWrite::Right(tx), 134 | None, 135 | ) 136 | } else if let Some(url) = &opts.url { 137 | info!("Connecting to WebSocket: {:?}", url); 138 | 139 | let tls = match url.scheme_str().ok_or(WhisperError::UriHasNoScheme)? { 140 | "wss" => Ok(true), 141 | "ws" => Ok(false), 142 | _ => Err(Box::new(WhisperError::UriHasInvalidScheme)), 143 | }?; 144 | let host = url.host().ok_or(WhisperError::UriHasNoHost)?; 145 | let port = url.port_u16().unwrap_or(if tls { 443 } else { 80 }); 146 | 147 | let socket = TcpStream::connect(format!("{}:{}", host, port)).await?; 148 | let peer_addr = socket.peer_addr()?; 149 | let socket = if tls { 150 | #[cfg(feature = "native-tls")] 151 | let cx = TlsConnector::from(native_tls::TlsConnector::builder().build()?); 152 | #[cfg(feature = "rustls")] 153 | let cx = { 154 | let mut root_cert_store = RootCertStore::empty(); 155 | root_cert_store.extend(webpki_roots::TLS_SERVER_ROOTS.iter().cloned()); 156 | let config = ClientConfig::builder() 157 | .with_root_certificates(root_cert_store) 158 | .with_no_client_auth(); 159 | TlsConnector::from(std::sync::Arc::new(config)) 160 | }; 161 | #[cfg(feature = "rustls")] 162 | let host = rustls_pki_types::ServerName::try_from(host.to_string())?; 163 | Either::Left(cx.connect(host, socket).await?) 164 | } else { 165 | Either::Right(socket) 166 | }; 167 | 168 | let req = Request::builder() 169 | .method("GET") 170 | .uri(url.path()) 171 | .header("Host", host) 172 | .header(UPGRADE, "websocket") 173 | .header(CONNECTION, "upgrade") 174 | .header( 175 | "Sec-WebSocket-Key", 176 | fastwebsockets::handshake::generate_key(), 177 | ) 178 | .header("Sec-WebSocket-Version", "13") 179 | .body(Empty::::new())?; 180 | 181 | let (ws, _) = handshake::client(&SpawnExecutor, req, socket).await?; 182 | 183 | let (rx, tx) = ws.split(tokio::io::split); 184 | let rx = FragmentCollectorRead::new(rx); 185 | ( 186 | EitherWebSocketRead::Left(rx), 187 | EitherWebSocketWrite::Left(tx), 188 | Some(peer_addr), 189 | ) 190 | } else { 191 | unreachable!("neither pty nor url specified"); 192 | }; 193 | 194 | let ext: &[Box] = 195 | &[Box::new(UdpProtocolExtensionBuilder)]; 196 | 197 | let muxresp = ClientMux::create(rx, tx, if v2 { Some(ext) } else { None }).await?; 198 | 199 | let (mux, fut) = if v2 { 200 | muxresp.with_udp_extension_required().await? 201 | } else { 202 | muxresp.with_no_required_extensions() 203 | }; 204 | 205 | tokio::spawn(async move { 206 | if let Err(err) = fut.await { 207 | eprintln!("Error in Wisp multiplexor future: {:?}", err); 208 | abort(); 209 | } 210 | }); 211 | 212 | info!("Connected."); 213 | Ok((mux, socketaddr)) 214 | } 215 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | #![feature(once_cell_try, let_chains)] 2 | mod ffi; 3 | mod pty; 4 | pub mod util; 5 | 6 | #[cfg(all(feature = "native-tls", feature = "rustls"))] 7 | compile_error!("native-tls and rustls conflict. enable only one."); 8 | 9 | use dashmap::DashMap; 10 | use futures_util::{ 11 | future::select_all, stream::SplitSink, Future, Sink, SinkExt, Stream, StreamExt, 12 | }; 13 | use log::{error, info}; 14 | use lwip::NetStack; 15 | use tokio_util::compat::FuturesAsyncReadCompatExt; 16 | 17 | use std::{ 18 | error::Error, 19 | net::{Ipv4Addr, SocketAddr}, 20 | path::PathBuf, 21 | pin::Pin, 22 | sync::Arc, 23 | task::Poll, 24 | time::Duration, 25 | }; 26 | 27 | use clap::{Args, Parser}; 28 | use hyper::Uri; 29 | use tokio::{ 30 | io::copy_bidirectional, 31 | sync::mpsc::UnboundedReceiver, 32 | task::JoinError, 33 | time::{Instant, Sleep}, 34 | }; 35 | use tun2::AsyncDevice; 36 | use wisp_mux::{ClientMux, MuxStreamIo, StreamType}; 37 | 38 | /// Wisp client that exposes the Wisp connection over a TUN device. 39 | #[derive(Debug, Parser)] 40 | #[command(version = clap::crate_version!())] 41 | pub struct Cli { 42 | #[clap(flatten)] 43 | pub wisp: WispServer, 44 | /// Name of created TUN device 45 | #[arg(short, long)] 46 | pub tun: String, 47 | /// MTU of created TUN device 48 | #[arg(short, long, default_value_t = u16::MAX)] 49 | pub mtu: u16, 50 | /// IP address of created TUN device 51 | #[arg(short, long, default_value = "10.0.10.2")] 52 | pub ip: Ipv4Addr, 53 | // Mask of created TUN device (defaults to /0) 54 | #[arg(short = 'M', long, default_value = "0.0.0.0")] 55 | pub mask: Ipv4Addr, 56 | // Destination of created TUN device (defaults to 0.0.0.0) 57 | #[arg(short, long, default_value = "0.0.0.0")] 58 | pub dest: Ipv4Addr, 59 | // Use cloudflared access. URL must be specified. You must be logged into cloudflared. 60 | #[arg(short, long)] 61 | pub cf: bool, 62 | // Use wisp v2. 63 | #[arg(long)] 64 | pub wisp_v2: bool, 65 | } 66 | 67 | #[derive(Debug, Args)] 68 | #[group(required = true, multiple = false)] 69 | pub struct WispServer { 70 | /// Path to PTY device 71 | #[arg(short, long)] 72 | pub pty: Option, 73 | /// Wisp server URL 74 | #[arg(short, long)] 75 | pub url: Option, 76 | } 77 | 78 | #[derive(Debug, Clone, Copy)] 79 | pub enum WhisperEvent { 80 | EndFut, 81 | } 82 | 83 | struct TimeoutStreamSink(Pin>, Duration, Pin>); 84 | 85 | impl TimeoutStreamSink { 86 | pub fn new(stream: S) -> Self { 87 | let duration = Duration::from_secs(30); 88 | Self( 89 | Box::pin(stream), 90 | duration, 91 | Box::pin(tokio::time::sleep(duration)), 92 | ) 93 | } 94 | } 95 | 96 | impl Stream for TimeoutStreamSink { 97 | type Item = S::Item; 98 | 99 | fn poll_next( 100 | mut self: Pin<&mut Self>, 101 | cx: &mut std::task::Context<'_>, 102 | ) -> Poll> { 103 | if matches!(self.2.as_mut().poll(cx), Poll::Ready(_)) { 104 | return Poll::Ready(None); 105 | } 106 | 107 | let duration = self.1; 108 | self.2.as_mut().reset(Instant::now() + duration); 109 | 110 | self.0.as_mut().poll_next(cx) 111 | } 112 | } 113 | 114 | impl Sink<&'a [u8], Error = std::io::Error>> Sink> for TimeoutStreamSink { 115 | type Error = std::io::Error; 116 | 117 | fn poll_ready( 118 | mut self: Pin<&mut Self>, 119 | cx: &mut std::task::Context<'_>, 120 | ) -> Poll> { 121 | if matches!(self.2.as_mut().poll(cx), Poll::Ready(_)) { 122 | return Poll::Ready(Err(std::io::ErrorKind::TimedOut.into())); 123 | } 124 | self.0.as_mut().poll_ready(cx) 125 | } 126 | 127 | fn start_send(mut self: Pin<&mut Self>, item: Vec) -> Result<(), Self::Error> { 128 | let duration = self.1; 129 | self.2.as_mut().reset(Instant::now() + duration); 130 | self.0.as_mut().start_send(&item) 131 | } 132 | 133 | fn poll_flush( 134 | mut self: Pin<&mut Self>, 135 | cx: &mut std::task::Context<'_>, 136 | ) -> Poll> { 137 | self.0.as_mut().poll_flush(cx) 138 | } 139 | 140 | fn poll_close( 141 | mut self: Pin<&mut Self>, 142 | cx: &mut std::task::Context<'_>, 143 | ) -> Poll> { 144 | self.0.as_mut().poll_close(cx) 145 | } 146 | } 147 | 148 | type TimeoutMuxStreamSink = SplitSink, Vec>; 149 | 150 | pub async fn start_whisper( 151 | mux: ClientMux, 152 | tun: AsyncDevice, 153 | mtu: u16, 154 | mut channel: UnboundedReceiver, 155 | ) -> Result<(), Box> { 156 | let (stack, mut tcp_listener, udp_socket) = NetStack::with_buffer_size(mtu.into(), 64)?; 157 | let (mut tun_tx, mut tun_rx) = tun.into_framed().split(); 158 | let (mut stack_tx, mut stack_rx) = stack.split(); 159 | let (udp_write, mut udp_read) = udp_socket.split(); 160 | let udp_write = Arc::new(udp_write); 161 | 162 | let mux = Arc::new(mux); 163 | 164 | let read_handle: Pin>>> = 165 | Box::pin(tokio::spawn(async move { 166 | while let Some(pkt) = stack_rx.next().await { 167 | if let Ok(pkt) = pkt { 168 | tun_tx.send(pkt).await.unwrap(); 169 | } 170 | } 171 | })); 172 | 173 | let write_handle: Pin>>> = 174 | Box::pin(tokio::spawn(async move { 175 | while let Some(pkt) = tun_rx.next().await { 176 | if let Ok(pkt) = pkt { 177 | stack_tx.send(pkt).await.unwrap(); 178 | } 179 | } 180 | })); 181 | 182 | let tcp_mux = mux.clone(); 183 | let tcp_handle: Pin>>> = 184 | Box::pin(tokio::spawn(async move { 185 | while let Some((mut stream, _src, dest)) = tcp_listener.next().await { 186 | let stream_mux = tcp_mux.clone(); 187 | tokio::spawn(async move { 188 | let mut wisp_stream = stream_mux 189 | .client_new_stream(StreamType::Tcp, dest.ip().to_string(), dest.port()) 190 | .await 191 | .unwrap() 192 | .into_io() 193 | .into_asyncrw() 194 | .compat(); 195 | drop(stream_mux); 196 | info!("connected tcp: {:?}", dest); 197 | if let Err(err) = copy_bidirectional(&mut stream, &mut wisp_stream).await { 198 | error!("error while forwarding tcp to {:?}: {:?}", dest, err); 199 | } 200 | info!("disconnected tcp: {:?}", dest); 201 | }); 202 | } 203 | })); 204 | 205 | let udp_mux = mux.clone(); 206 | let udp_handle: Pin>>> = 207 | Box::pin(tokio::spawn(async move { 208 | let udp_map: Arc> = 209 | Arc::new(DashMap::new()); 210 | 211 | while let Some((pkt, src, dest)) = udp_read.next().await { 212 | if let Some(mut stream) = udp_map.get_mut(&(src, dest)) { 213 | if let Err(err) = stream.send(pkt).await { 214 | error!("error while sending udp packet to {}: {:?}", dest, err); 215 | drop(stream); 216 | udp_map.remove(&(src, dest)); 217 | } 218 | } else if let Ok(wisp_stream) = udp_mux 219 | .client_new_stream(StreamType::Udp, dest.ip().to_string(), dest.port()) 220 | .await 221 | { 222 | info!("connected udp: {:?}", dest); 223 | 224 | let udp_channel = udp_write.clone(); 225 | 226 | let (wisp_w, mut wisp_r) = 227 | TimeoutStreamSink::new(wisp_stream.into_io()).split(); 228 | udp_map.insert((src, dest), wisp_w); 229 | 230 | let stream_map = udp_map.clone(); 231 | tokio::spawn(async move { 232 | while let Some(Ok(pkt)) = wisp_r.next().await { 233 | udp_channel.send_to(&pkt, &dest, &src).unwrap(); 234 | } 235 | info!("disconnected udp: {:?}", dest); 236 | stream_map.remove(&(src, dest)); 237 | }); 238 | } 239 | } 240 | })); 241 | 242 | let channel_handle: Pin>>> = 243 | Box::pin(tokio::spawn(async move { 244 | channel.recv().await; 245 | })); 246 | 247 | info!("Whisper ready!"); 248 | 249 | select_all(&mut [ 250 | read_handle, 251 | write_handle, 252 | tcp_handle, 253 | udp_handle, 254 | channel_handle, 255 | ]) 256 | .await 257 | .0?; 258 | 259 | info!("Broke from whisper loop."); 260 | Ok(()) 261 | } 262 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.22.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler" 16 | version = "1.0.2" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 | 20 | [[package]] 21 | name = "aho-corasick" 22 | version = "1.1.3" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 25 | dependencies = [ 26 | "memchr", 27 | ] 28 | 29 | [[package]] 30 | name = "anstream" 31 | version = "0.6.14" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" 34 | dependencies = [ 35 | "anstyle", 36 | "anstyle-parse", 37 | "anstyle-query", 38 | "anstyle-wincon", 39 | "colorchoice", 40 | "is_terminal_polyfill", 41 | "utf8parse", 42 | ] 43 | 44 | [[package]] 45 | name = "anstyle" 46 | version = "1.0.7" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" 49 | 50 | [[package]] 51 | name = "anstyle-parse" 52 | version = "0.2.4" 53 | source = "registry+https://github.com/rust-lang/crates.io-index" 54 | checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" 55 | dependencies = [ 56 | "utf8parse", 57 | ] 58 | 59 | [[package]] 60 | name = "anstyle-query" 61 | version = "1.1.0" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" 64 | dependencies = [ 65 | "windows-sys", 66 | ] 67 | 68 | [[package]] 69 | name = "anstyle-wincon" 70 | version = "3.0.3" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" 73 | dependencies = [ 74 | "anstyle", 75 | "windows-sys", 76 | ] 77 | 78 | [[package]] 79 | name = "async-trait" 80 | version = "0.1.81" 81 | source = "registry+https://github.com/rust-lang/crates.io-index" 82 | checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" 83 | dependencies = [ 84 | "proc-macro2", 85 | "quote", 86 | "syn 2.0.72", 87 | ] 88 | 89 | [[package]] 90 | name = "autocfg" 91 | version = "1.3.0" 92 | source = "registry+https://github.com/rust-lang/crates.io-index" 93 | checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" 94 | 95 | [[package]] 96 | name = "aws-lc-rs" 97 | version = "1.8.1" 98 | source = "registry+https://github.com/rust-lang/crates.io-index" 99 | checksum = "4ae74d9bd0a7530e8afd1770739ad34b36838829d6ad61818f9230f683f5ad77" 100 | dependencies = [ 101 | "aws-lc-sys", 102 | "mirai-annotations", 103 | "paste", 104 | "zeroize", 105 | ] 106 | 107 | [[package]] 108 | name = "aws-lc-sys" 109 | version = "0.20.0" 110 | source = "registry+https://github.com/rust-lang/crates.io-index" 111 | checksum = "2e89b6941c2d1a7045538884d6e760ccfffdf8e1ffc2613d8efa74305e1f3752" 112 | dependencies = [ 113 | "bindgen", 114 | "cc", 115 | "cmake", 116 | "dunce", 117 | "fs_extra", 118 | "libc", 119 | "paste", 120 | ] 121 | 122 | [[package]] 123 | name = "backtrace" 124 | version = "0.3.73" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" 127 | dependencies = [ 128 | "addr2line", 129 | "cc", 130 | "cfg-if", 131 | "libc", 132 | "miniz_oxide", 133 | "object", 134 | "rustc-demangle", 135 | ] 136 | 137 | [[package]] 138 | name = "base64" 139 | version = "0.21.7" 140 | source = "registry+https://github.com/rust-lang/crates.io-index" 141 | checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" 142 | 143 | [[package]] 144 | name = "bindgen" 145 | version = "0.69.4" 146 | source = "registry+https://github.com/rust-lang/crates.io-index" 147 | checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" 148 | dependencies = [ 149 | "bitflags", 150 | "cexpr", 151 | "clang-sys", 152 | "itertools", 153 | "lazy_static", 154 | "lazycell", 155 | "log", 156 | "prettyplease", 157 | "proc-macro2", 158 | "quote", 159 | "regex", 160 | "rustc-hash", 161 | "shlex", 162 | "syn 2.0.72", 163 | "which", 164 | ] 165 | 166 | [[package]] 167 | name = "bitflags" 168 | version = "2.6.0" 169 | source = "registry+https://github.com/rust-lang/crates.io-index" 170 | checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 171 | 172 | [[package]] 173 | name = "block-buffer" 174 | version = "0.10.4" 175 | source = "registry+https://github.com/rust-lang/crates.io-index" 176 | checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" 177 | dependencies = [ 178 | "generic-array", 179 | ] 180 | 181 | [[package]] 182 | name = "bumpalo" 183 | version = "3.16.0" 184 | source = "registry+https://github.com/rust-lang/crates.io-index" 185 | checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" 186 | 187 | [[package]] 188 | name = "bytes" 189 | version = "1.6.1" 190 | source = "registry+https://github.com/rust-lang/crates.io-index" 191 | checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" 192 | 193 | [[package]] 194 | name = "c2rust-bitfields" 195 | version = "0.18.0" 196 | source = "registry+https://github.com/rust-lang/crates.io-index" 197 | checksum = "b43c3f07ab0ef604fa6f595aa46ec2f8a22172c975e186f6f5bf9829a3b72c41" 198 | dependencies = [ 199 | "c2rust-bitfields-derive", 200 | ] 201 | 202 | [[package]] 203 | name = "c2rust-bitfields-derive" 204 | version = "0.18.0" 205 | source = "registry+https://github.com/rust-lang/crates.io-index" 206 | checksum = "d3cbc102e2597c9744c8bd8c15915d554300601c91a079430d309816b0912545" 207 | dependencies = [ 208 | "proc-macro2", 209 | "quote", 210 | "syn 1.0.109", 211 | ] 212 | 213 | [[package]] 214 | name = "cc" 215 | version = "1.1.6" 216 | source = "registry+https://github.com/rust-lang/crates.io-index" 217 | checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" 218 | dependencies = [ 219 | "jobserver", 220 | "libc", 221 | ] 222 | 223 | [[package]] 224 | name = "cexpr" 225 | version = "0.6.0" 226 | source = "registry+https://github.com/rust-lang/crates.io-index" 227 | checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" 228 | dependencies = [ 229 | "nom", 230 | ] 231 | 232 | [[package]] 233 | name = "cfg-if" 234 | version = "1.0.0" 235 | source = "registry+https://github.com/rust-lang/crates.io-index" 236 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 237 | 238 | [[package]] 239 | name = "cfg_aliases" 240 | version = "0.1.1" 241 | source = "registry+https://github.com/rust-lang/crates.io-index" 242 | checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" 243 | 244 | [[package]] 245 | name = "cfg_aliases" 246 | version = "0.2.1" 247 | source = "registry+https://github.com/rust-lang/crates.io-index" 248 | checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" 249 | 250 | [[package]] 251 | name = "clang-sys" 252 | version = "1.8.1" 253 | source = "registry+https://github.com/rust-lang/crates.io-index" 254 | checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" 255 | dependencies = [ 256 | "glob", 257 | "libc", 258 | "libloading", 259 | ] 260 | 261 | [[package]] 262 | name = "clap" 263 | version = "4.5.10" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "8f6b81fb3c84f5563d509c59b5a48d935f689e993afa90fe39047f05adef9142" 266 | dependencies = [ 267 | "clap_builder", 268 | "clap_derive", 269 | ] 270 | 271 | [[package]] 272 | name = "clap_builder" 273 | version = "4.5.10" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "5ca6706fd5224857d9ac5eb9355f6683563cc0541c7cd9d014043b57cbec78ac" 276 | dependencies = [ 277 | "anstream", 278 | "anstyle", 279 | "clap_lex", 280 | "strsim", 281 | ] 282 | 283 | [[package]] 284 | name = "clap_derive" 285 | version = "4.5.8" 286 | source = "registry+https://github.com/rust-lang/crates.io-index" 287 | checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" 288 | dependencies = [ 289 | "heck", 290 | "proc-macro2", 291 | "quote", 292 | "syn 2.0.72", 293 | ] 294 | 295 | [[package]] 296 | name = "clap_lex" 297 | version = "0.7.1" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" 300 | 301 | [[package]] 302 | name = "cmake" 303 | version = "0.1.50" 304 | source = "registry+https://github.com/rust-lang/crates.io-index" 305 | checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" 306 | dependencies = [ 307 | "cc", 308 | ] 309 | 310 | [[package]] 311 | name = "colorchoice" 312 | version = "1.0.1" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" 315 | 316 | [[package]] 317 | name = "concurrent-queue" 318 | version = "2.5.0" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" 321 | dependencies = [ 322 | "crossbeam-utils", 323 | ] 324 | 325 | [[package]] 326 | name = "core-foundation" 327 | version = "0.9.4" 328 | source = "registry+https://github.com/rust-lang/crates.io-index" 329 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 330 | dependencies = [ 331 | "core-foundation-sys", 332 | "libc", 333 | ] 334 | 335 | [[package]] 336 | name = "core-foundation-sys" 337 | version = "0.8.6" 338 | source = "registry+https://github.com/rust-lang/crates.io-index" 339 | checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" 340 | 341 | [[package]] 342 | name = "cpufeatures" 343 | version = "0.2.12" 344 | source = "registry+https://github.com/rust-lang/crates.io-index" 345 | checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" 346 | dependencies = [ 347 | "libc", 348 | ] 349 | 350 | [[package]] 351 | name = "crossbeam-utils" 352 | version = "0.8.20" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" 355 | 356 | [[package]] 357 | name = "crypto-common" 358 | version = "0.1.6" 359 | source = "registry+https://github.com/rust-lang/crates.io-index" 360 | checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" 361 | dependencies = [ 362 | "generic-array", 363 | "typenum", 364 | ] 365 | 366 | [[package]] 367 | name = "dashmap" 368 | version = "5.5.3" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" 371 | dependencies = [ 372 | "cfg-if", 373 | "hashbrown", 374 | "lock_api", 375 | "once_cell", 376 | "parking_lot_core", 377 | ] 378 | 379 | [[package]] 380 | name = "deranged" 381 | version = "0.3.11" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" 384 | dependencies = [ 385 | "powerfmt", 386 | ] 387 | 388 | [[package]] 389 | name = "digest" 390 | version = "0.10.7" 391 | source = "registry+https://github.com/rust-lang/crates.io-index" 392 | checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" 393 | dependencies = [ 394 | "block-buffer", 395 | "crypto-common", 396 | ] 397 | 398 | [[package]] 399 | name = "dunce" 400 | version = "1.0.4" 401 | source = "registry+https://github.com/rust-lang/crates.io-index" 402 | checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" 403 | 404 | [[package]] 405 | name = "either" 406 | version = "1.13.0" 407 | source = "registry+https://github.com/rust-lang/crates.io-index" 408 | checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" 409 | 410 | [[package]] 411 | name = "errno" 412 | version = "0.3.9" 413 | source = "registry+https://github.com/rust-lang/crates.io-index" 414 | checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" 415 | dependencies = [ 416 | "libc", 417 | "windows-sys", 418 | ] 419 | 420 | [[package]] 421 | name = "event-listener" 422 | version = "5.3.1" 423 | source = "registry+https://github.com/rust-lang/crates.io-index" 424 | checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" 425 | dependencies = [ 426 | "concurrent-queue", 427 | "parking", 428 | "pin-project-lite", 429 | ] 430 | 431 | [[package]] 432 | name = "fastrand" 433 | version = "2.1.0" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" 436 | 437 | [[package]] 438 | name = "fastwebsockets" 439 | version = "0.8.0" 440 | source = "registry+https://github.com/rust-lang/crates.io-index" 441 | checksum = "26da0c7b5cef45c521a6f9cdfffdfeb6c9f5804fbac332deb5ae254634c7a6be" 442 | dependencies = [ 443 | "base64", 444 | "bytes", 445 | "http-body-util", 446 | "hyper", 447 | "hyper-util", 448 | "pin-project", 449 | "rand", 450 | "sha1", 451 | "simdutf8", 452 | "thiserror", 453 | "tokio", 454 | "utf-8", 455 | ] 456 | 457 | [[package]] 458 | name = "flume" 459 | version = "0.11.0" 460 | source = "registry+https://github.com/rust-lang/crates.io-index" 461 | checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" 462 | dependencies = [ 463 | "futures-core", 464 | "futures-sink", 465 | "nanorand", 466 | "spin", 467 | ] 468 | 469 | [[package]] 470 | name = "fnv" 471 | version = "1.0.7" 472 | source = "registry+https://github.com/rust-lang/crates.io-index" 473 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 474 | 475 | [[package]] 476 | name = "foreign-types" 477 | version = "0.3.2" 478 | source = "registry+https://github.com/rust-lang/crates.io-index" 479 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 480 | dependencies = [ 481 | "foreign-types-shared", 482 | ] 483 | 484 | [[package]] 485 | name = "foreign-types-shared" 486 | version = "0.1.1" 487 | source = "registry+https://github.com/rust-lang/crates.io-index" 488 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 489 | 490 | [[package]] 491 | name = "fs_extra" 492 | version = "1.3.0" 493 | source = "registry+https://github.com/rust-lang/crates.io-index" 494 | checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" 495 | 496 | [[package]] 497 | name = "futures" 498 | version = "0.3.30" 499 | source = "registry+https://github.com/rust-lang/crates.io-index" 500 | checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" 501 | dependencies = [ 502 | "futures-channel", 503 | "futures-core", 504 | "futures-executor", 505 | "futures-io", 506 | "futures-sink", 507 | "futures-task", 508 | "futures-util", 509 | ] 510 | 511 | [[package]] 512 | name = "futures-channel" 513 | version = "0.3.30" 514 | source = "registry+https://github.com/rust-lang/crates.io-index" 515 | checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" 516 | dependencies = [ 517 | "futures-core", 518 | "futures-sink", 519 | ] 520 | 521 | [[package]] 522 | name = "futures-core" 523 | version = "0.3.30" 524 | source = "registry+https://github.com/rust-lang/crates.io-index" 525 | checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" 526 | 527 | [[package]] 528 | name = "futures-executor" 529 | version = "0.3.30" 530 | source = "registry+https://github.com/rust-lang/crates.io-index" 531 | checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" 532 | dependencies = [ 533 | "futures-core", 534 | "futures-task", 535 | "futures-util", 536 | ] 537 | 538 | [[package]] 539 | name = "futures-io" 540 | version = "0.3.30" 541 | source = "registry+https://github.com/rust-lang/crates.io-index" 542 | checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" 543 | 544 | [[package]] 545 | name = "futures-macro" 546 | version = "0.3.30" 547 | source = "registry+https://github.com/rust-lang/crates.io-index" 548 | checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" 549 | dependencies = [ 550 | "proc-macro2", 551 | "quote", 552 | "syn 2.0.72", 553 | ] 554 | 555 | [[package]] 556 | name = "futures-sink" 557 | version = "0.3.30" 558 | source = "registry+https://github.com/rust-lang/crates.io-index" 559 | checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" 560 | 561 | [[package]] 562 | name = "futures-task" 563 | version = "0.3.30" 564 | source = "registry+https://github.com/rust-lang/crates.io-index" 565 | checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" 566 | 567 | [[package]] 568 | name = "futures-timer" 569 | version = "3.0.3" 570 | source = "registry+https://github.com/rust-lang/crates.io-index" 571 | checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" 572 | 573 | [[package]] 574 | name = "futures-util" 575 | version = "0.3.30" 576 | source = "registry+https://github.com/rust-lang/crates.io-index" 577 | checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" 578 | dependencies = [ 579 | "futures-channel", 580 | "futures-core", 581 | "futures-io", 582 | "futures-macro", 583 | "futures-sink", 584 | "futures-task", 585 | "memchr", 586 | "pin-project-lite", 587 | "pin-utils", 588 | "slab", 589 | ] 590 | 591 | [[package]] 592 | name = "generic-array" 593 | version = "0.14.7" 594 | source = "registry+https://github.com/rust-lang/crates.io-index" 595 | checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" 596 | dependencies = [ 597 | "typenum", 598 | "version_check", 599 | ] 600 | 601 | [[package]] 602 | name = "getrandom" 603 | version = "0.2.15" 604 | source = "registry+https://github.com/rust-lang/crates.io-index" 605 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 606 | dependencies = [ 607 | "cfg-if", 608 | "js-sys", 609 | "libc", 610 | "wasi", 611 | "wasm-bindgen", 612 | ] 613 | 614 | [[package]] 615 | name = "gimli" 616 | version = "0.29.0" 617 | source = "registry+https://github.com/rust-lang/crates.io-index" 618 | checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" 619 | 620 | [[package]] 621 | name = "glob" 622 | version = "0.3.1" 623 | source = "registry+https://github.com/rust-lang/crates.io-index" 624 | checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" 625 | 626 | [[package]] 627 | name = "hashbrown" 628 | version = "0.14.5" 629 | source = "registry+https://github.com/rust-lang/crates.io-index" 630 | checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" 631 | 632 | [[package]] 633 | name = "heck" 634 | version = "0.5.0" 635 | source = "registry+https://github.com/rust-lang/crates.io-index" 636 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 637 | 638 | [[package]] 639 | name = "hermit-abi" 640 | version = "0.3.9" 641 | source = "registry+https://github.com/rust-lang/crates.io-index" 642 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 643 | 644 | [[package]] 645 | name = "home" 646 | version = "0.5.9" 647 | source = "registry+https://github.com/rust-lang/crates.io-index" 648 | checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" 649 | dependencies = [ 650 | "windows-sys", 651 | ] 652 | 653 | [[package]] 654 | name = "http" 655 | version = "1.1.0" 656 | source = "registry+https://github.com/rust-lang/crates.io-index" 657 | checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" 658 | dependencies = [ 659 | "bytes", 660 | "fnv", 661 | "itoa", 662 | ] 663 | 664 | [[package]] 665 | name = "http-body" 666 | version = "1.0.1" 667 | source = "registry+https://github.com/rust-lang/crates.io-index" 668 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 669 | dependencies = [ 670 | "bytes", 671 | "http", 672 | ] 673 | 674 | [[package]] 675 | name = "http-body-util" 676 | version = "0.1.2" 677 | source = "registry+https://github.com/rust-lang/crates.io-index" 678 | checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" 679 | dependencies = [ 680 | "bytes", 681 | "futures-util", 682 | "http", 683 | "http-body", 684 | "pin-project-lite", 685 | ] 686 | 687 | [[package]] 688 | name = "httparse" 689 | version = "1.9.4" 690 | source = "registry+https://github.com/rust-lang/crates.io-index" 691 | checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" 692 | 693 | [[package]] 694 | name = "httpdate" 695 | version = "1.0.3" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 698 | 699 | [[package]] 700 | name = "hyper" 701 | version = "1.4.1" 702 | source = "registry+https://github.com/rust-lang/crates.io-index" 703 | checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" 704 | dependencies = [ 705 | "bytes", 706 | "futures-channel", 707 | "futures-util", 708 | "http", 709 | "http-body", 710 | "httparse", 711 | "httpdate", 712 | "itoa", 713 | "pin-project-lite", 714 | "smallvec", 715 | "tokio", 716 | "want", 717 | ] 718 | 719 | [[package]] 720 | name = "hyper-util" 721 | version = "0.1.6" 722 | source = "registry+https://github.com/rust-lang/crates.io-index" 723 | checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" 724 | dependencies = [ 725 | "bytes", 726 | "futures-util", 727 | "http", 728 | "http-body", 729 | "hyper", 730 | "pin-project-lite", 731 | "tokio", 732 | ] 733 | 734 | [[package]] 735 | name = "ipnet" 736 | version = "2.9.0" 737 | source = "registry+https://github.com/rust-lang/crates.io-index" 738 | checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" 739 | 740 | [[package]] 741 | name = "is_terminal_polyfill" 742 | version = "1.70.0" 743 | source = "registry+https://github.com/rust-lang/crates.io-index" 744 | checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" 745 | 746 | [[package]] 747 | name = "itertools" 748 | version = "0.12.1" 749 | source = "registry+https://github.com/rust-lang/crates.io-index" 750 | checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" 751 | dependencies = [ 752 | "either", 753 | ] 754 | 755 | [[package]] 756 | name = "itoa" 757 | version = "1.0.11" 758 | source = "registry+https://github.com/rust-lang/crates.io-index" 759 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" 760 | 761 | [[package]] 762 | name = "jobserver" 763 | version = "0.1.32" 764 | source = "registry+https://github.com/rust-lang/crates.io-index" 765 | checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" 766 | dependencies = [ 767 | "libc", 768 | ] 769 | 770 | [[package]] 771 | name = "js-sys" 772 | version = "0.3.69" 773 | source = "registry+https://github.com/rust-lang/crates.io-index" 774 | checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" 775 | dependencies = [ 776 | "wasm-bindgen", 777 | ] 778 | 779 | [[package]] 780 | name = "lazy_static" 781 | version = "1.5.0" 782 | source = "registry+https://github.com/rust-lang/crates.io-index" 783 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 784 | 785 | [[package]] 786 | name = "lazycell" 787 | version = "1.3.0" 788 | source = "registry+https://github.com/rust-lang/crates.io-index" 789 | checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" 790 | 791 | [[package]] 792 | name = "libc" 793 | version = "0.2.155" 794 | source = "registry+https://github.com/rust-lang/crates.io-index" 795 | checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" 796 | 797 | [[package]] 798 | name = "libloading" 799 | version = "0.8.5" 800 | source = "registry+https://github.com/rust-lang/crates.io-index" 801 | checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" 802 | dependencies = [ 803 | "cfg-if", 804 | "windows-targets", 805 | ] 806 | 807 | [[package]] 808 | name = "linux-raw-sys" 809 | version = "0.4.14" 810 | source = "registry+https://github.com/rust-lang/crates.io-index" 811 | checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" 812 | 813 | [[package]] 814 | name = "lock_api" 815 | version = "0.4.12" 816 | source = "registry+https://github.com/rust-lang/crates.io-index" 817 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 818 | dependencies = [ 819 | "autocfg", 820 | "scopeguard", 821 | ] 822 | 823 | [[package]] 824 | name = "log" 825 | version = "0.4.22" 826 | source = "registry+https://github.com/rust-lang/crates.io-index" 827 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 828 | 829 | [[package]] 830 | name = "lwip" 831 | version = "0.3.15" 832 | source = "registry+https://github.com/rust-lang/crates.io-index" 833 | checksum = "fb7051f756d2ad2ee15f003ce2178646908a9d50bc966bd37dcd1eea8ce2bb13" 834 | dependencies = [ 835 | "bindgen", 836 | "bytes", 837 | "cc", 838 | "futures", 839 | "log", 840 | "thiserror", 841 | "tokio", 842 | ] 843 | 844 | [[package]] 845 | name = "memchr" 846 | version = "2.7.4" 847 | source = "registry+https://github.com/rust-lang/crates.io-index" 848 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 849 | 850 | [[package]] 851 | name = "minimal-lexical" 852 | version = "0.2.1" 853 | source = "registry+https://github.com/rust-lang/crates.io-index" 854 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 855 | 856 | [[package]] 857 | name = "miniz_oxide" 858 | version = "0.7.4" 859 | source = "registry+https://github.com/rust-lang/crates.io-index" 860 | checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" 861 | dependencies = [ 862 | "adler", 863 | ] 864 | 865 | [[package]] 866 | name = "mio" 867 | version = "1.0.1" 868 | source = "registry+https://github.com/rust-lang/crates.io-index" 869 | checksum = "4569e456d394deccd22ce1c1913e6ea0e54519f577285001215d33557431afe4" 870 | dependencies = [ 871 | "hermit-abi", 872 | "libc", 873 | "wasi", 874 | "windows-sys", 875 | ] 876 | 877 | [[package]] 878 | name = "mirai-annotations" 879 | version = "1.12.0" 880 | source = "registry+https://github.com/rust-lang/crates.io-index" 881 | checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" 882 | 883 | [[package]] 884 | name = "nanorand" 885 | version = "0.7.0" 886 | source = "registry+https://github.com/rust-lang/crates.io-index" 887 | checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" 888 | dependencies = [ 889 | "getrandom", 890 | ] 891 | 892 | [[package]] 893 | name = "native-tls" 894 | version = "0.2.12" 895 | source = "registry+https://github.com/rust-lang/crates.io-index" 896 | checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466" 897 | dependencies = [ 898 | "libc", 899 | "log", 900 | "openssl", 901 | "openssl-probe", 902 | "openssl-sys", 903 | "schannel", 904 | "security-framework", 905 | "security-framework-sys", 906 | "tempfile", 907 | ] 908 | 909 | [[package]] 910 | name = "nix" 911 | version = "0.28.0" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" 914 | dependencies = [ 915 | "bitflags", 916 | "cfg-if", 917 | "cfg_aliases 0.1.1", 918 | "libc", 919 | ] 920 | 921 | [[package]] 922 | name = "nix" 923 | version = "0.29.0" 924 | source = "registry+https://github.com/rust-lang/crates.io-index" 925 | checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" 926 | dependencies = [ 927 | "bitflags", 928 | "cfg-if", 929 | "cfg_aliases 0.2.1", 930 | "libc", 931 | ] 932 | 933 | [[package]] 934 | name = "nom" 935 | version = "7.1.3" 936 | source = "registry+https://github.com/rust-lang/crates.io-index" 937 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 938 | dependencies = [ 939 | "memchr", 940 | "minimal-lexical", 941 | ] 942 | 943 | [[package]] 944 | name = "num-conv" 945 | version = "0.1.0" 946 | source = "registry+https://github.com/rust-lang/crates.io-index" 947 | checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 948 | 949 | [[package]] 950 | name = "num_threads" 951 | version = "0.1.7" 952 | source = "registry+https://github.com/rust-lang/crates.io-index" 953 | checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" 954 | dependencies = [ 955 | "libc", 956 | ] 957 | 958 | [[package]] 959 | name = "object" 960 | version = "0.36.2" 961 | source = "registry+https://github.com/rust-lang/crates.io-index" 962 | checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e" 963 | dependencies = [ 964 | "memchr", 965 | ] 966 | 967 | [[package]] 968 | name = "once_cell" 969 | version = "1.19.0" 970 | source = "registry+https://github.com/rust-lang/crates.io-index" 971 | checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 972 | 973 | [[package]] 974 | name = "openssl" 975 | version = "0.10.66" 976 | source = "registry+https://github.com/rust-lang/crates.io-index" 977 | checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" 978 | dependencies = [ 979 | "bitflags", 980 | "cfg-if", 981 | "foreign-types", 982 | "libc", 983 | "once_cell", 984 | "openssl-macros", 985 | "openssl-sys", 986 | ] 987 | 988 | [[package]] 989 | name = "openssl-macros" 990 | version = "0.1.1" 991 | source = "registry+https://github.com/rust-lang/crates.io-index" 992 | checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" 993 | dependencies = [ 994 | "proc-macro2", 995 | "quote", 996 | "syn 2.0.72", 997 | ] 998 | 999 | [[package]] 1000 | name = "openssl-probe" 1001 | version = "0.1.5" 1002 | source = "registry+https://github.com/rust-lang/crates.io-index" 1003 | checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" 1004 | 1005 | [[package]] 1006 | name = "openssl-sys" 1007 | version = "0.9.103" 1008 | source = "registry+https://github.com/rust-lang/crates.io-index" 1009 | checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" 1010 | dependencies = [ 1011 | "cc", 1012 | "libc", 1013 | "pkg-config", 1014 | "vcpkg", 1015 | ] 1016 | 1017 | [[package]] 1018 | name = "oslog" 1019 | version = "0.2.0" 1020 | source = "registry+https://github.com/rust-lang/crates.io-index" 1021 | checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" 1022 | dependencies = [ 1023 | "cc", 1024 | "dashmap", 1025 | "log", 1026 | ] 1027 | 1028 | [[package]] 1029 | name = "parking" 1030 | version = "2.2.0" 1031 | source = "registry+https://github.com/rust-lang/crates.io-index" 1032 | checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" 1033 | 1034 | [[package]] 1035 | name = "parking_lot" 1036 | version = "0.12.3" 1037 | source = "registry+https://github.com/rust-lang/crates.io-index" 1038 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 1039 | dependencies = [ 1040 | "lock_api", 1041 | "parking_lot_core", 1042 | ] 1043 | 1044 | [[package]] 1045 | name = "parking_lot_core" 1046 | version = "0.9.10" 1047 | source = "registry+https://github.com/rust-lang/crates.io-index" 1048 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 1049 | dependencies = [ 1050 | "cfg-if", 1051 | "libc", 1052 | "redox_syscall", 1053 | "smallvec", 1054 | "windows-targets", 1055 | ] 1056 | 1057 | [[package]] 1058 | name = "paste" 1059 | version = "1.0.15" 1060 | source = "registry+https://github.com/rust-lang/crates.io-index" 1061 | checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" 1062 | 1063 | [[package]] 1064 | name = "pin-project" 1065 | version = "1.1.5" 1066 | source = "registry+https://github.com/rust-lang/crates.io-index" 1067 | checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" 1068 | dependencies = [ 1069 | "pin-project-internal", 1070 | ] 1071 | 1072 | [[package]] 1073 | name = "pin-project-internal" 1074 | version = "1.1.5" 1075 | source = "registry+https://github.com/rust-lang/crates.io-index" 1076 | checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" 1077 | dependencies = [ 1078 | "proc-macro2", 1079 | "quote", 1080 | "syn 2.0.72", 1081 | ] 1082 | 1083 | [[package]] 1084 | name = "pin-project-lite" 1085 | version = "0.2.14" 1086 | source = "registry+https://github.com/rust-lang/crates.io-index" 1087 | checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" 1088 | 1089 | [[package]] 1090 | name = "pin-utils" 1091 | version = "0.1.0" 1092 | source = "registry+https://github.com/rust-lang/crates.io-index" 1093 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1094 | 1095 | [[package]] 1096 | name = "pkg-config" 1097 | version = "0.3.30" 1098 | source = "registry+https://github.com/rust-lang/crates.io-index" 1099 | checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" 1100 | 1101 | [[package]] 1102 | name = "powerfmt" 1103 | version = "0.2.0" 1104 | source = "registry+https://github.com/rust-lang/crates.io-index" 1105 | checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" 1106 | 1107 | [[package]] 1108 | name = "ppv-lite86" 1109 | version = "0.2.17" 1110 | source = "registry+https://github.com/rust-lang/crates.io-index" 1111 | checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" 1112 | 1113 | [[package]] 1114 | name = "prettyplease" 1115 | version = "0.2.20" 1116 | source = "registry+https://github.com/rust-lang/crates.io-index" 1117 | checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" 1118 | dependencies = [ 1119 | "proc-macro2", 1120 | "syn 2.0.72", 1121 | ] 1122 | 1123 | [[package]] 1124 | name = "proc-macro2" 1125 | version = "1.0.86" 1126 | source = "registry+https://github.com/rust-lang/crates.io-index" 1127 | checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" 1128 | dependencies = [ 1129 | "unicode-ident", 1130 | ] 1131 | 1132 | [[package]] 1133 | name = "quote" 1134 | version = "1.0.36" 1135 | source = "registry+https://github.com/rust-lang/crates.io-index" 1136 | checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" 1137 | dependencies = [ 1138 | "proc-macro2", 1139 | ] 1140 | 1141 | [[package]] 1142 | name = "rand" 1143 | version = "0.8.5" 1144 | source = "registry+https://github.com/rust-lang/crates.io-index" 1145 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1146 | dependencies = [ 1147 | "libc", 1148 | "rand_chacha", 1149 | "rand_core", 1150 | ] 1151 | 1152 | [[package]] 1153 | name = "rand_chacha" 1154 | version = "0.3.1" 1155 | source = "registry+https://github.com/rust-lang/crates.io-index" 1156 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1157 | dependencies = [ 1158 | "ppv-lite86", 1159 | "rand_core", 1160 | ] 1161 | 1162 | [[package]] 1163 | name = "rand_core" 1164 | version = "0.6.4" 1165 | source = "registry+https://github.com/rust-lang/crates.io-index" 1166 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1167 | dependencies = [ 1168 | "getrandom", 1169 | ] 1170 | 1171 | [[package]] 1172 | name = "redox_syscall" 1173 | version = "0.5.3" 1174 | source = "registry+https://github.com/rust-lang/crates.io-index" 1175 | checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" 1176 | dependencies = [ 1177 | "bitflags", 1178 | ] 1179 | 1180 | [[package]] 1181 | name = "regex" 1182 | version = "1.10.5" 1183 | source = "registry+https://github.com/rust-lang/crates.io-index" 1184 | checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" 1185 | dependencies = [ 1186 | "aho-corasick", 1187 | "memchr", 1188 | "regex-automata", 1189 | "regex-syntax", 1190 | ] 1191 | 1192 | [[package]] 1193 | name = "regex-automata" 1194 | version = "0.4.7" 1195 | source = "registry+https://github.com/rust-lang/crates.io-index" 1196 | checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" 1197 | dependencies = [ 1198 | "aho-corasick", 1199 | "memchr", 1200 | "regex-syntax", 1201 | ] 1202 | 1203 | [[package]] 1204 | name = "regex-syntax" 1205 | version = "0.8.4" 1206 | source = "registry+https://github.com/rust-lang/crates.io-index" 1207 | checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" 1208 | 1209 | [[package]] 1210 | name = "ring" 1211 | version = "0.17.8" 1212 | source = "registry+https://github.com/rust-lang/crates.io-index" 1213 | checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1214 | dependencies = [ 1215 | "cc", 1216 | "cfg-if", 1217 | "getrandom", 1218 | "libc", 1219 | "spin", 1220 | "untrusted", 1221 | "windows-sys", 1222 | ] 1223 | 1224 | [[package]] 1225 | name = "rustc-demangle" 1226 | version = "0.1.24" 1227 | source = "registry+https://github.com/rust-lang/crates.io-index" 1228 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1229 | 1230 | [[package]] 1231 | name = "rustc-hash" 1232 | version = "1.1.0" 1233 | source = "registry+https://github.com/rust-lang/crates.io-index" 1234 | checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 1235 | 1236 | [[package]] 1237 | name = "rustix" 1238 | version = "0.38.34" 1239 | source = "registry+https://github.com/rust-lang/crates.io-index" 1240 | checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" 1241 | dependencies = [ 1242 | "bitflags", 1243 | "errno", 1244 | "libc", 1245 | "linux-raw-sys", 1246 | "windows-sys", 1247 | ] 1248 | 1249 | [[package]] 1250 | name = "rustls" 1251 | version = "0.23.12" 1252 | source = "registry+https://github.com/rust-lang/crates.io-index" 1253 | checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" 1254 | dependencies = [ 1255 | "aws-lc-rs", 1256 | "log", 1257 | "once_cell", 1258 | "rustls-pki-types", 1259 | "rustls-webpki", 1260 | "subtle", 1261 | "zeroize", 1262 | ] 1263 | 1264 | [[package]] 1265 | name = "rustls-pki-types" 1266 | version = "1.7.0" 1267 | source = "registry+https://github.com/rust-lang/crates.io-index" 1268 | checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" 1269 | 1270 | [[package]] 1271 | name = "rustls-webpki" 1272 | version = "0.102.6" 1273 | source = "registry+https://github.com/rust-lang/crates.io-index" 1274 | checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e" 1275 | dependencies = [ 1276 | "aws-lc-rs", 1277 | "ring", 1278 | "rustls-pki-types", 1279 | "untrusted", 1280 | ] 1281 | 1282 | [[package]] 1283 | name = "schannel" 1284 | version = "0.1.23" 1285 | source = "registry+https://github.com/rust-lang/crates.io-index" 1286 | checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" 1287 | dependencies = [ 1288 | "windows-sys", 1289 | ] 1290 | 1291 | [[package]] 1292 | name = "scopeguard" 1293 | version = "1.2.0" 1294 | source = "registry+https://github.com/rust-lang/crates.io-index" 1295 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1296 | 1297 | [[package]] 1298 | name = "security-framework" 1299 | version = "2.11.1" 1300 | source = "registry+https://github.com/rust-lang/crates.io-index" 1301 | checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" 1302 | dependencies = [ 1303 | "bitflags", 1304 | "core-foundation", 1305 | "core-foundation-sys", 1306 | "libc", 1307 | "security-framework-sys", 1308 | ] 1309 | 1310 | [[package]] 1311 | name = "security-framework-sys" 1312 | version = "2.11.1" 1313 | source = "registry+https://github.com/rust-lang/crates.io-index" 1314 | checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf" 1315 | dependencies = [ 1316 | "core-foundation-sys", 1317 | "libc", 1318 | ] 1319 | 1320 | [[package]] 1321 | name = "serde" 1322 | version = "1.0.204" 1323 | source = "registry+https://github.com/rust-lang/crates.io-index" 1324 | checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" 1325 | dependencies = [ 1326 | "serde_derive", 1327 | ] 1328 | 1329 | [[package]] 1330 | name = "serde_derive" 1331 | version = "1.0.204" 1332 | source = "registry+https://github.com/rust-lang/crates.io-index" 1333 | checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" 1334 | dependencies = [ 1335 | "proc-macro2", 1336 | "quote", 1337 | "syn 2.0.72", 1338 | ] 1339 | 1340 | [[package]] 1341 | name = "sha1" 1342 | version = "0.10.6" 1343 | source = "registry+https://github.com/rust-lang/crates.io-index" 1344 | checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" 1345 | dependencies = [ 1346 | "cfg-if", 1347 | "cpufeatures", 1348 | "digest", 1349 | ] 1350 | 1351 | [[package]] 1352 | name = "shlex" 1353 | version = "1.3.0" 1354 | source = "registry+https://github.com/rust-lang/crates.io-index" 1355 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1356 | 1357 | [[package]] 1358 | name = "signal-hook-registry" 1359 | version = "1.4.2" 1360 | source = "registry+https://github.com/rust-lang/crates.io-index" 1361 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1362 | dependencies = [ 1363 | "libc", 1364 | ] 1365 | 1366 | [[package]] 1367 | name = "simdutf8" 1368 | version = "0.1.4" 1369 | source = "registry+https://github.com/rust-lang/crates.io-index" 1370 | checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" 1371 | 1372 | [[package]] 1373 | name = "simplelog" 1374 | version = "0.12.2" 1375 | source = "registry+https://github.com/rust-lang/crates.io-index" 1376 | checksum = "16257adbfaef1ee58b1363bdc0664c9b8e1e30aed86049635fb5f147d065a9c0" 1377 | dependencies = [ 1378 | "log", 1379 | "termcolor", 1380 | "time", 1381 | ] 1382 | 1383 | [[package]] 1384 | name = "slab" 1385 | version = "0.4.9" 1386 | source = "registry+https://github.com/rust-lang/crates.io-index" 1387 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1388 | dependencies = [ 1389 | "autocfg", 1390 | ] 1391 | 1392 | [[package]] 1393 | name = "smallvec" 1394 | version = "1.13.2" 1395 | source = "registry+https://github.com/rust-lang/crates.io-index" 1396 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 1397 | 1398 | [[package]] 1399 | name = "socket2" 1400 | version = "0.5.7" 1401 | source = "registry+https://github.com/rust-lang/crates.io-index" 1402 | checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" 1403 | dependencies = [ 1404 | "libc", 1405 | "windows-sys", 1406 | ] 1407 | 1408 | [[package]] 1409 | name = "spin" 1410 | version = "0.9.8" 1411 | source = "registry+https://github.com/rust-lang/crates.io-index" 1412 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1413 | dependencies = [ 1414 | "lock_api", 1415 | ] 1416 | 1417 | [[package]] 1418 | name = "strsim" 1419 | version = "0.11.1" 1420 | source = "registry+https://github.com/rust-lang/crates.io-index" 1421 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1422 | 1423 | [[package]] 1424 | name = "subtle" 1425 | version = "2.6.1" 1426 | source = "registry+https://github.com/rust-lang/crates.io-index" 1427 | checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" 1428 | 1429 | [[package]] 1430 | name = "syn" 1431 | version = "1.0.109" 1432 | source = "registry+https://github.com/rust-lang/crates.io-index" 1433 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 1434 | dependencies = [ 1435 | "proc-macro2", 1436 | "quote", 1437 | "unicode-ident", 1438 | ] 1439 | 1440 | [[package]] 1441 | name = "syn" 1442 | version = "2.0.72" 1443 | source = "registry+https://github.com/rust-lang/crates.io-index" 1444 | checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" 1445 | dependencies = [ 1446 | "proc-macro2", 1447 | "quote", 1448 | "unicode-ident", 1449 | ] 1450 | 1451 | [[package]] 1452 | name = "tempfile" 1453 | version = "3.10.1" 1454 | source = "registry+https://github.com/rust-lang/crates.io-index" 1455 | checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" 1456 | dependencies = [ 1457 | "cfg-if", 1458 | "fastrand", 1459 | "rustix", 1460 | "windows-sys", 1461 | ] 1462 | 1463 | [[package]] 1464 | name = "termcolor" 1465 | version = "1.4.1" 1466 | source = "registry+https://github.com/rust-lang/crates.io-index" 1467 | checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" 1468 | dependencies = [ 1469 | "winapi-util", 1470 | ] 1471 | 1472 | [[package]] 1473 | name = "thiserror" 1474 | version = "1.0.63" 1475 | source = "registry+https://github.com/rust-lang/crates.io-index" 1476 | checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" 1477 | dependencies = [ 1478 | "thiserror-impl", 1479 | ] 1480 | 1481 | [[package]] 1482 | name = "thiserror-impl" 1483 | version = "1.0.63" 1484 | source = "registry+https://github.com/rust-lang/crates.io-index" 1485 | checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" 1486 | dependencies = [ 1487 | "proc-macro2", 1488 | "quote", 1489 | "syn 2.0.72", 1490 | ] 1491 | 1492 | [[package]] 1493 | name = "time" 1494 | version = "0.3.36" 1495 | source = "registry+https://github.com/rust-lang/crates.io-index" 1496 | checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" 1497 | dependencies = [ 1498 | "deranged", 1499 | "itoa", 1500 | "libc", 1501 | "num-conv", 1502 | "num_threads", 1503 | "powerfmt", 1504 | "serde", 1505 | "time-core", 1506 | "time-macros", 1507 | ] 1508 | 1509 | [[package]] 1510 | name = "time-core" 1511 | version = "0.1.2" 1512 | source = "registry+https://github.com/rust-lang/crates.io-index" 1513 | checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" 1514 | 1515 | [[package]] 1516 | name = "time-macros" 1517 | version = "0.2.18" 1518 | source = "registry+https://github.com/rust-lang/crates.io-index" 1519 | checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" 1520 | dependencies = [ 1521 | "num-conv", 1522 | "time-core", 1523 | ] 1524 | 1525 | [[package]] 1526 | name = "tokio" 1527 | version = "1.39.1" 1528 | source = "registry+https://github.com/rust-lang/crates.io-index" 1529 | checksum = "d040ac2b29ab03b09d4129c2f5bbd012a3ac2f79d38ff506a4bf8dd34b0eac8a" 1530 | dependencies = [ 1531 | "backtrace", 1532 | "bytes", 1533 | "libc", 1534 | "mio", 1535 | "parking_lot", 1536 | "pin-project-lite", 1537 | "signal-hook-registry", 1538 | "socket2", 1539 | "tokio-macros", 1540 | "windows-sys", 1541 | ] 1542 | 1543 | [[package]] 1544 | name = "tokio-macros" 1545 | version = "2.4.0" 1546 | source = "registry+https://github.com/rust-lang/crates.io-index" 1547 | checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" 1548 | dependencies = [ 1549 | "proc-macro2", 1550 | "quote", 1551 | "syn 2.0.72", 1552 | ] 1553 | 1554 | [[package]] 1555 | name = "tokio-native-tls" 1556 | version = "0.3.1" 1557 | source = "registry+https://github.com/rust-lang/crates.io-index" 1558 | checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" 1559 | dependencies = [ 1560 | "native-tls", 1561 | "tokio", 1562 | ] 1563 | 1564 | [[package]] 1565 | name = "tokio-rustls" 1566 | version = "0.26.0" 1567 | source = "registry+https://github.com/rust-lang/crates.io-index" 1568 | checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" 1569 | dependencies = [ 1570 | "rustls", 1571 | "rustls-pki-types", 1572 | "tokio", 1573 | ] 1574 | 1575 | [[package]] 1576 | name = "tokio-util" 1577 | version = "0.7.11" 1578 | source = "registry+https://github.com/rust-lang/crates.io-index" 1579 | checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" 1580 | dependencies = [ 1581 | "bytes", 1582 | "futures-core", 1583 | "futures-io", 1584 | "futures-sink", 1585 | "pin-project-lite", 1586 | "tokio", 1587 | ] 1588 | 1589 | [[package]] 1590 | name = "try-lock" 1591 | version = "0.2.5" 1592 | source = "registry+https://github.com/rust-lang/crates.io-index" 1593 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1594 | 1595 | [[package]] 1596 | name = "tun2" 1597 | version = "1.3.1" 1598 | source = "registry+https://github.com/rust-lang/crates.io-index" 1599 | checksum = "5af6b725dd317dd689d1e37f559e70cfbe6e87effdaf5f62c80d919bfc9eda95" 1600 | dependencies = [ 1601 | "bytes", 1602 | "cfg-if", 1603 | "futures-core", 1604 | "ipnet", 1605 | "libc", 1606 | "log", 1607 | "nix 0.29.0", 1608 | "thiserror", 1609 | "tokio", 1610 | "tokio-util", 1611 | "wintun", 1612 | ] 1613 | 1614 | [[package]] 1615 | name = "typenum" 1616 | version = "1.17.0" 1617 | source = "registry+https://github.com/rust-lang/crates.io-index" 1618 | checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" 1619 | 1620 | [[package]] 1621 | name = "unicode-ident" 1622 | version = "1.0.12" 1623 | source = "registry+https://github.com/rust-lang/crates.io-index" 1624 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 1625 | 1626 | [[package]] 1627 | name = "untrusted" 1628 | version = "0.9.0" 1629 | source = "registry+https://github.com/rust-lang/crates.io-index" 1630 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1631 | 1632 | [[package]] 1633 | name = "utf-8" 1634 | version = "0.7.6" 1635 | source = "registry+https://github.com/rust-lang/crates.io-index" 1636 | checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" 1637 | 1638 | [[package]] 1639 | name = "utf8parse" 1640 | version = "0.2.2" 1641 | source = "registry+https://github.com/rust-lang/crates.io-index" 1642 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 1643 | 1644 | [[package]] 1645 | name = "vcpkg" 1646 | version = "0.2.15" 1647 | source = "registry+https://github.com/rust-lang/crates.io-index" 1648 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 1649 | 1650 | [[package]] 1651 | name = "version_check" 1652 | version = "0.9.4" 1653 | source = "registry+https://github.com/rust-lang/crates.io-index" 1654 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 1655 | 1656 | [[package]] 1657 | name = "want" 1658 | version = "0.3.1" 1659 | source = "registry+https://github.com/rust-lang/crates.io-index" 1660 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1661 | dependencies = [ 1662 | "try-lock", 1663 | ] 1664 | 1665 | [[package]] 1666 | name = "wasi" 1667 | version = "0.11.0+wasi-snapshot-preview1" 1668 | source = "registry+https://github.com/rust-lang/crates.io-index" 1669 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1670 | 1671 | [[package]] 1672 | name = "wasm-bindgen" 1673 | version = "0.2.92" 1674 | source = "registry+https://github.com/rust-lang/crates.io-index" 1675 | checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" 1676 | dependencies = [ 1677 | "cfg-if", 1678 | "wasm-bindgen-macro", 1679 | ] 1680 | 1681 | [[package]] 1682 | name = "wasm-bindgen-backend" 1683 | version = "0.2.92" 1684 | source = "registry+https://github.com/rust-lang/crates.io-index" 1685 | checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" 1686 | dependencies = [ 1687 | "bumpalo", 1688 | "log", 1689 | "once_cell", 1690 | "proc-macro2", 1691 | "quote", 1692 | "syn 2.0.72", 1693 | "wasm-bindgen-shared", 1694 | ] 1695 | 1696 | [[package]] 1697 | name = "wasm-bindgen-macro" 1698 | version = "0.2.92" 1699 | source = "registry+https://github.com/rust-lang/crates.io-index" 1700 | checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" 1701 | dependencies = [ 1702 | "quote", 1703 | "wasm-bindgen-macro-support", 1704 | ] 1705 | 1706 | [[package]] 1707 | name = "wasm-bindgen-macro-support" 1708 | version = "0.2.92" 1709 | source = "registry+https://github.com/rust-lang/crates.io-index" 1710 | checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" 1711 | dependencies = [ 1712 | "proc-macro2", 1713 | "quote", 1714 | "syn 2.0.72", 1715 | "wasm-bindgen-backend", 1716 | "wasm-bindgen-shared", 1717 | ] 1718 | 1719 | [[package]] 1720 | name = "wasm-bindgen-shared" 1721 | version = "0.2.92" 1722 | source = "registry+https://github.com/rust-lang/crates.io-index" 1723 | checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" 1724 | 1725 | [[package]] 1726 | name = "webpki-roots" 1727 | version = "0.26.3" 1728 | source = "registry+https://github.com/rust-lang/crates.io-index" 1729 | checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd" 1730 | dependencies = [ 1731 | "rustls-pki-types", 1732 | ] 1733 | 1734 | [[package]] 1735 | name = "which" 1736 | version = "4.4.2" 1737 | source = "registry+https://github.com/rust-lang/crates.io-index" 1738 | checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" 1739 | dependencies = [ 1740 | "either", 1741 | "home", 1742 | "once_cell", 1743 | "rustix", 1744 | ] 1745 | 1746 | [[package]] 1747 | name = "whisper" 1748 | version = "0.1.0" 1749 | dependencies = [ 1750 | "async-trait", 1751 | "bytes", 1752 | "cfg-if", 1753 | "clap", 1754 | "dashmap", 1755 | "fastwebsockets", 1756 | "futures-util", 1757 | "http-body-util", 1758 | "hyper", 1759 | "hyper-util", 1760 | "log", 1761 | "lwip", 1762 | "nix 0.28.0", 1763 | "oslog", 1764 | "rustls-pki-types", 1765 | "simplelog", 1766 | "tokio", 1767 | "tokio-native-tls", 1768 | "tokio-rustls", 1769 | "tokio-util", 1770 | "tun2", 1771 | "webpki-roots", 1772 | "wisp-mux", 1773 | ] 1774 | 1775 | [[package]] 1776 | name = "winapi-util" 1777 | version = "0.1.8" 1778 | source = "registry+https://github.com/rust-lang/crates.io-index" 1779 | checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" 1780 | dependencies = [ 1781 | "windows-sys", 1782 | ] 1783 | 1784 | [[package]] 1785 | name = "windows" 1786 | version = "0.52.0" 1787 | source = "registry+https://github.com/rust-lang/crates.io-index" 1788 | checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" 1789 | dependencies = [ 1790 | "windows-core", 1791 | "windows-targets", 1792 | ] 1793 | 1794 | [[package]] 1795 | name = "windows-core" 1796 | version = "0.52.0" 1797 | source = "registry+https://github.com/rust-lang/crates.io-index" 1798 | checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" 1799 | dependencies = [ 1800 | "windows-targets", 1801 | ] 1802 | 1803 | [[package]] 1804 | name = "windows-sys" 1805 | version = "0.52.0" 1806 | source = "registry+https://github.com/rust-lang/crates.io-index" 1807 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 1808 | dependencies = [ 1809 | "windows-targets", 1810 | ] 1811 | 1812 | [[package]] 1813 | name = "windows-targets" 1814 | version = "0.52.6" 1815 | source = "registry+https://github.com/rust-lang/crates.io-index" 1816 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 1817 | dependencies = [ 1818 | "windows_aarch64_gnullvm", 1819 | "windows_aarch64_msvc", 1820 | "windows_i686_gnu", 1821 | "windows_i686_gnullvm", 1822 | "windows_i686_msvc", 1823 | "windows_x86_64_gnu", 1824 | "windows_x86_64_gnullvm", 1825 | "windows_x86_64_msvc", 1826 | ] 1827 | 1828 | [[package]] 1829 | name = "windows_aarch64_gnullvm" 1830 | version = "0.52.6" 1831 | source = "registry+https://github.com/rust-lang/crates.io-index" 1832 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 1833 | 1834 | [[package]] 1835 | name = "windows_aarch64_msvc" 1836 | version = "0.52.6" 1837 | source = "registry+https://github.com/rust-lang/crates.io-index" 1838 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 1839 | 1840 | [[package]] 1841 | name = "windows_i686_gnu" 1842 | version = "0.52.6" 1843 | source = "registry+https://github.com/rust-lang/crates.io-index" 1844 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 1845 | 1846 | [[package]] 1847 | name = "windows_i686_gnullvm" 1848 | version = "0.52.6" 1849 | source = "registry+https://github.com/rust-lang/crates.io-index" 1850 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 1851 | 1852 | [[package]] 1853 | name = "windows_i686_msvc" 1854 | version = "0.52.6" 1855 | source = "registry+https://github.com/rust-lang/crates.io-index" 1856 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 1857 | 1858 | [[package]] 1859 | name = "windows_x86_64_gnu" 1860 | version = "0.52.6" 1861 | source = "registry+https://github.com/rust-lang/crates.io-index" 1862 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 1863 | 1864 | [[package]] 1865 | name = "windows_x86_64_gnullvm" 1866 | version = "0.52.6" 1867 | source = "registry+https://github.com/rust-lang/crates.io-index" 1868 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 1869 | 1870 | [[package]] 1871 | name = "windows_x86_64_msvc" 1872 | version = "0.52.6" 1873 | source = "registry+https://github.com/rust-lang/crates.io-index" 1874 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 1875 | 1876 | [[package]] 1877 | name = "wintun" 1878 | version = "0.4.0" 1879 | source = "registry+https://github.com/rust-lang/crates.io-index" 1880 | checksum = "1b3c8c8876c686f8a2d6376999ac1c9a24c74d2968551c9394f7e89127783685" 1881 | dependencies = [ 1882 | "c2rust-bitfields", 1883 | "libloading", 1884 | "log", 1885 | "thiserror", 1886 | "windows", 1887 | ] 1888 | 1889 | [[package]] 1890 | name = "wisp-mux" 1891 | version = "5.0.1" 1892 | source = "registry+https://github.com/rust-lang/crates.io-index" 1893 | checksum = "33bb6ee12e85ac356ea1dba3b92ba32a330175019c318dbf5fae955998cbeb4b" 1894 | dependencies = [ 1895 | "async-trait", 1896 | "bytes", 1897 | "dashmap", 1898 | "event-listener", 1899 | "fastwebsockets", 1900 | "flume", 1901 | "futures", 1902 | "futures-timer", 1903 | "pin-project-lite", 1904 | "tokio", 1905 | ] 1906 | 1907 | [[package]] 1908 | name = "zeroize" 1909 | version = "1.8.1" 1910 | source = "registry+https://github.com/rust-lang/crates.io-index" 1911 | checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" 1912 | dependencies = [ 1913 | "zeroize_derive", 1914 | ] 1915 | 1916 | [[package]] 1917 | name = "zeroize_derive" 1918 | version = "1.4.2" 1919 | source = "registry+https://github.com/rust-lang/crates.io-index" 1920 | checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" 1921 | dependencies = [ 1922 | "proc-macro2", 1923 | "quote", 1924 | "syn 2.0.72", 1925 | ] 1926 | --------------------------------------------------------------------------------