├── .cargo └── config.toml ├── tls-hostname.patch ├── .github └── assets │ └── demo.mp4 ├── .gitignore ├── crates └── localsend-core │ ├── src │ ├── lib.rs │ ├── utils.rs │ ├── protos.rs │ ├── device_scanner.rs │ └── server.rs │ └── Cargo.toml ├── sni.md ├── README.md ├── Cargo.toml ├── src └── main.rs ├── LICENSE └── Cargo.lock /.cargo/config.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | rustflags = ["--cfg", "tokio_unstable"] 3 | -------------------------------------------------------------------------------- /tls-hostname.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notjedi/localsend-rs/HEAD/tls-hostname.patch -------------------------------------------------------------------------------- /.github/assets/demo.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/notjedi/localsend-rs/HEAD/.github/assets/demo.mp4 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | 5 | # These are backup files generated by rustfmt 6 | **/*.rs.bk 7 | 8 | # Added by cargo 9 | 10 | /target 11 | 12 | crates/axum-server 13 | crates/rustls 14 | crates/tokio-rustls 15 | 16 | test_files 17 | -------------------------------------------------------------------------------- /crates/localsend-core/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod device_scanner; 2 | pub mod protos; 3 | pub mod server; 4 | mod utils; 5 | 6 | pub use device_scanner::*; 7 | pub use protos::*; 8 | pub use server::*; 9 | 10 | const BUFFER_SIZE: u16 = 2048; 11 | 12 | pub const NUM_REPEAT: u8 = 2; 13 | 14 | const DEVICE_MODEL: &str = "linux"; 15 | const DEVICE_TYPE: &str = "desktop"; 16 | -------------------------------------------------------------------------------- /sni.md: -------------------------------------------------------------------------------- 1 | ## References 2 | 3 | 1. https://github.com/dart-lang/sdk/issues/49183 4 | 2. https://github.com/rustls/rustls/blob/main/rustls/src/msgs/handshake.rs#L231 5 | 3. https://github.com/seanmonstar/reqwest/issues/1328 6 | 4. https://github.com/rustls/rustls/issues/1127 7 | 5. https://github.com/rustls/rustls/issues/203 8 | 6. https://www.cloudflare.com/learning/ssl/what-is-sni 9 | 7. https://stackoverflow.com/questions/70690418/illegal-sni-hostname-received 10 | 8. https://stackoverflow.com/questions/36716487/how-to-assgin-sni-when-use-ip-in-url 11 | 9. https://stackoverflow.com/questions/64277835/how-to-change-host-http-header-to-break-through-sni 12 | 10. https://stackoverflow.com/questions/38693798/chrome-show-http-hostname-and-tls-sni-hostname-mismatch 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # localsend-rs 2 | 3 | a cli for localsend 4 | 5 |
6 | 7 |
8 | 9 | the current idea for sending files is to make the server an Arc type in the bin 10 | and spawn 2 tokio tasks - one to listen for messages from client and call 11 | corresponding methods to send files and another one to do what we do now which 12 | is to recv files. 13 | 14 | a small todo: `use mem::take` when ever possible, to avoid clones. 15 | 16 | ## Roadmap 17 | 18 | - [x] receive files 19 | - [ ] send files 20 | - [ ] handle connection reset errors and cancel requests when sending and receiving files 21 | - [ ] progress for sending files 22 | - [x] pass config from bin to lib 23 | - [ ] config file for device name, default port, etc 24 | - [ ] Support protocol `v2` 25 | - [ ] fix `Illegal SNI hostname received` from dart side 26 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "localsend" 3 | version = "0.1.0" 4 | authors = ["Krithic Kumar krithickumarub@protonmail.com"] 5 | edition = "2021" 6 | license = "GPL-3.0" 7 | readme = "README.md" 8 | keywords = ["filesharing"] 9 | categories = ["command-line-utilities"] 10 | description = "a CLI for localsend" 11 | repository = "https://github.com/notjedi/localsend-rs" 12 | 13 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 14 | 15 | [dependencies] 16 | tracing = "0.1" 17 | tracing-log = "0.2" 18 | console-subscriber = "0.2" 19 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } 20 | tokio = { version = "1.27", features = ["rt-multi-thread", "signal"] } 21 | 22 | console = "0.15" 23 | indicatif = "0.17" 24 | dialoguer = "0.11" 25 | 26 | localsend-core = { path = "crates/localsend-core", package = "localsend-core" } 27 | 28 | [workspace] 29 | members = ["crates/localsend-core", "crates/axum-server", "crates/rustls"] 30 | 31 | [profile.release] 32 | strip = "symbols" 33 | -------------------------------------------------------------------------------- /crates/localsend-core/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "localsend-core" 3 | version = "0.1.0" 4 | edition = "2021" 5 | authors = ["Krithic Kumar krithickumarub@protonmail.com"] 6 | license = "GPL-3.0" 7 | keywords = ["filesharing"] 8 | description = "Library implementing the localsend protocol" 9 | repository = "https://github.com/notjedi/localsend-rs" 10 | 11 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 12 | 13 | [dependencies] 14 | rcgen = "0.11" 15 | tracing = "0.1" 16 | network-interface = "1.0" 17 | uuid = { version = "1.3", features = ["v4"] } 18 | 19 | serde = { version = "1.0", features = ["derive"] } 20 | serde_json = "1.0" 21 | 22 | tokio = { version = "1.27", features = ["rt-multi-thread"] } 23 | tokio-util = { version = "0.7", features = ["io"] } 24 | futures = "0.3" 25 | 26 | axum-macros = "0.3" 27 | axum = { version = "0.6", features = ["query"] } 28 | axum-server = { path = "../axum-server", package = "axum-server", features = [ 29 | "tls-rustls", 30 | ] } 31 | # axum-server = { version = "0.4", features = ["tls-rustls"] } 32 | -------------------------------------------------------------------------------- /crates/localsend-core/src/utils.rs: -------------------------------------------------------------------------------- 1 | use std::net::IpAddr; 2 | 3 | use network_interface::{NetworkInterface, NetworkInterfaceConfig}; 4 | use rcgen::{Certificate, CertificateParams, DnType, DnValue}; 5 | 6 | pub(crate) fn get_device_ip_addr() -> Option { 7 | for network_interface in NetworkInterface::show().unwrap_or(vec![]).iter() { 8 | match network_interface.addr.first() { 9 | Some(addr) => { 10 | if addr.ip().is_loopback() { 11 | continue; 12 | } else { 13 | return Some(addr.ip()); 14 | } 15 | } 16 | None => continue, 17 | }; 18 | } 19 | None 20 | } 21 | 22 | pub fn generate_tls_cert() -> Certificate { 23 | let mut params: CertificateParams = Default::default(); 24 | params.distinguished_name.push( 25 | DnType::CommonName, 26 | DnValue::PrintableString("Localsend client".to_string()), 27 | ); 28 | params 29 | .distinguished_name 30 | .push(DnType::OrganizationName, "".to_string()); 31 | params 32 | .distinguished_name 33 | .push(DnType::OrganizationalUnitName, "".to_string()); 34 | params 35 | .distinguished_name 36 | .push(DnType::LocalityName, "".to_string()); 37 | params 38 | .distinguished_name 39 | .push(DnType::StateOrProvinceName, "".to_string()); 40 | params 41 | .distinguished_name 42 | .push(DnType::CountryName, "".to_string()); 43 | Certificate::from_params(params).unwrap() 44 | } 45 | -------------------------------------------------------------------------------- /crates/localsend-core/src/protos.rs: -------------------------------------------------------------------------------- 1 | use std::{collections::HashMap, sync::Arc, time::Instant}; 2 | 3 | use serde::{Deserialize, Serialize}; 4 | use tokio::sync::{ 5 | mpsc::{UnboundedReceiver, UnboundedSender}, 6 | Mutex, 7 | }; 8 | 9 | pub type ReceiveState = Arc>; 10 | pub type Sender = UnboundedSender; 11 | pub type Receiver = UnboundedReceiver; 12 | 13 | #[derive(Clone, Debug, Serialize, Deserialize)] 14 | #[serde(rename_all = "lowercase")] 15 | pub enum FileType { 16 | Image, 17 | Video, 18 | Pdf, 19 | Text, 20 | Other, 21 | } 22 | 23 | #[derive(Clone, PartialEq, Debug)] 24 | pub enum ReceiveStatus { 25 | // TODO: add status for cancelled 26 | Waiting, // waiting for sender to send the files 27 | Receiving, // in an ongoing session, receiving files 28 | Finished, // all files received (end of session) 29 | FinishedWithErrors, // finished but some files could not be received (end of session) 30 | } 31 | 32 | #[derive(Clone, Debug)] 33 | pub enum ClientMessage { 34 | Allow(Vec), 35 | Decline, 36 | } 37 | 38 | #[derive(Clone, Debug)] 39 | pub enum ServerMessage { 40 | SendRequest(SendRequest), 41 | SendFileRequest((String, usize)), 42 | CancelSession, 43 | } 44 | 45 | #[derive(Clone, Debug, Serialize, Deserialize)] 46 | #[serde(rename_all = "camelCase")] 47 | pub struct DeviceInfo { 48 | pub alias: String, 49 | pub device_type: String, 50 | pub device_model: Option, 51 | #[serde(skip)] 52 | pub ip: String, 53 | #[serde(skip)] 54 | pub port: u16, 55 | } 56 | 57 | impl PartialEq for DeviceInfo { 58 | fn eq(&self, other: &Self) -> bool { 59 | self.ip == other.ip 60 | } 61 | } 62 | 63 | impl Default for DeviceInfo { 64 | fn default() -> Self { 65 | Self { 66 | alias: "".into(), 67 | device_type: "".into(), 68 | device_model: None, 69 | ip: "".into(), 70 | port: 0, 71 | } 72 | } 73 | } 74 | 75 | // TODO: change all String to &str type 76 | #[derive(Clone, Debug, Serialize, Deserialize)] 77 | pub struct DeviceResponse { 78 | #[serde(flatten)] 79 | pub device_info: DeviceInfo, 80 | pub announcement: bool, 81 | pub fingerprint: String, 82 | } 83 | 84 | impl From for DeviceResponse { 85 | fn from(device: DeviceInfo) -> Self { 86 | Self { 87 | device_info: device, 88 | fingerprint: "".into(), 89 | announcement: false, 90 | } 91 | } 92 | } 93 | 94 | impl PartialEq for DeviceResponse { 95 | // https://www.reddit.com/r/rust/comments/t8d6wb/comment/hznabrt 96 | fn eq(&self, other: &Self) -> bool { 97 | self.fingerprint == other.fingerprint 98 | } 99 | } 100 | 101 | #[derive(Clone, Debug, Serialize, Deserialize)] 102 | #[serde(rename_all = "camelCase")] 103 | pub struct FileInfo { 104 | pub id: String, 105 | pub size: usize, // bytes 106 | pub file_name: String, 107 | pub file_type: FileType, 108 | // pub token: String, // TODO: use this to verify while receiving the file 109 | // preview_data: type? // nullable 110 | } 111 | 112 | #[derive(Clone, Debug, Serialize, Deserialize)] 113 | pub struct SendRequest { 114 | #[serde(rename = "info")] 115 | pub device_info: DeviceInfo, 116 | pub files: HashMap, 117 | } 118 | 119 | #[derive(Debug, Serialize, Deserialize)] 120 | #[serde(rename_all = "camelCase")] 121 | pub struct SendInfo { 122 | pub file_id: String, 123 | pub token: String, 124 | } 125 | 126 | #[derive(Clone)] 127 | pub struct ReceiveSession { 128 | pub sender: DeviceInfo, 129 | pub files: HashMap, 130 | pub file_status: HashMap, 131 | pub destination_directory: String, 132 | pub start_time: Instant, 133 | pub status: ReceiveStatus, 134 | } 135 | 136 | impl ReceiveSession { 137 | pub fn new(sender: DeviceInfo, destination_directory: String) -> Self { 138 | Self { 139 | sender, 140 | destination_directory, 141 | files: HashMap::new(), 142 | file_status: HashMap::new(), 143 | start_time: Instant::now(), 144 | status: ReceiveStatus::Waiting, 145 | } 146 | } 147 | } 148 | 149 | pub struct AppState { 150 | pub(crate) server_tx: Sender, 151 | pub(crate) client_rx: Receiver, 152 | pub(crate) receive_session: Option, 153 | } 154 | -------------------------------------------------------------------------------- /crates/localsend-core/src/device_scanner.rs: -------------------------------------------------------------------------------- 1 | use std::{ 2 | net::{IpAddr, Ipv4Addr}, 3 | sync::Arc, 4 | time::Duration, 5 | }; 6 | 7 | use tokio::net::UdpSocket; 8 | use tracing::debug; 9 | use uuid::Uuid; 10 | 11 | use crate::{ 12 | protos::{DeviceInfo, DeviceResponse}, 13 | utils::get_device_ip_addr, 14 | NUM_REPEAT, 15 | }; 16 | use crate::{BUFFER_SIZE, DEVICE_MODEL, DEVICE_TYPE}; 17 | 18 | pub struct DeviceScanner { 19 | pub socket: Arc, 20 | this_device: DeviceResponse, 21 | devices: Vec, 22 | interface_addr: Ipv4Addr, 23 | multicast_addr: Ipv4Addr, 24 | multicast_port: u16, 25 | } 26 | 27 | impl DeviceScanner { 28 | // TODO(notjedi): is it a good idea for a new func o be async 29 | pub async fn new( 30 | device_alias: String, 31 | interface_addr: Ipv4Addr, 32 | multicast_addr: Ipv4Addr, 33 | multicast_port: u16, 34 | ) -> Self { 35 | let socket = Arc::new( 36 | UdpSocket::bind((interface_addr, multicast_port)) 37 | .await 38 | .expect("couldn't bind to address"), 39 | ); 40 | let fingerprint = Uuid::new_v4(); 41 | let ip_addr = get_device_ip_addr().unwrap_or(IpAddr::V4([0, 0, 0, 0].into())); 42 | 43 | let device_info = DeviceInfo { 44 | alias: device_alias, 45 | device_type: DEVICE_TYPE.to_string(), 46 | device_model: Some(DEVICE_MODEL.to_string()), 47 | ip: ip_addr.to_string(), 48 | port: multicast_port, 49 | }; 50 | let this_device = DeviceResponse { 51 | device_info, 52 | announcement: true, 53 | fingerprint: fingerprint.to_string(), 54 | }; 55 | 56 | Self { 57 | socket, 58 | this_device, 59 | devices: vec![], 60 | interface_addr, 61 | multicast_addr, 62 | multicast_port, 63 | } 64 | } 65 | 66 | pub async fn announce( 67 | send_socket: &Arc, 68 | announcement_msg: &str, 69 | addr: (Ipv4Addr, u16), 70 | ) { 71 | // TODO(notjedi): any other way to not accept addr as argument 72 | send_socket 73 | .send_to(announcement_msg.as_bytes(), addr) 74 | .await 75 | .unwrap(); 76 | } 77 | 78 | pub async fn announce_repeat( 79 | send_socket: Arc, 80 | announcement_msg: String, 81 | addr: (Ipv4Addr, u16), 82 | ) { 83 | // TODO(notjedi): any other way to not accept addr as argument 84 | loop { 85 | for _ in 0..NUM_REPEAT { 86 | Self::announce(&send_socket, announcement_msg.as_str(), addr).await; 87 | } 88 | tokio::time::sleep(Duration::from_secs(5)).await; 89 | } 90 | } 91 | 92 | pub async fn listen_and_announce_multicast(&mut self) { 93 | // https://gist.github.com/pusateri/df98511b88e9000f388d344a1f3db9e7 94 | self.socket 95 | .join_multicast_v4(self.multicast_addr, self.interface_addr) 96 | .expect("failed to join multicast"); 97 | 98 | self.this_device.announcement = true; 99 | let send_socket = self.socket.clone(); 100 | let announce_msg = serde_json::to_string(&self.this_device).unwrap(); 101 | tokio::spawn(Self::announce_repeat( 102 | send_socket, 103 | announce_msg, 104 | (self.multicast_addr, self.multicast_port), 105 | )); 106 | 107 | self.this_device.announcement = false; 108 | let reply_announce_msg = serde_json::to_string(&self.this_device).unwrap(); 109 | 110 | let mut buf = [0u8; BUFFER_SIZE as usize]; 111 | loop { 112 | if let Ok((amt, src)) = self.socket.recv_from(&mut buf).await { 113 | let mut device_response: DeviceResponse = 114 | serde_json::from_slice(&buf[..amt]).unwrap(); 115 | ( 116 | device_response.device_info.ip, 117 | device_response.device_info.port, 118 | ) = (src.ip().to_string(), src.port()); 119 | 120 | if device_response == self.this_device { 121 | continue; 122 | } 123 | 124 | if device_response.announcement { 125 | Self::announce( 126 | &self.socket, 127 | reply_announce_msg.as_str(), 128 | (self.multicast_addr, self.multicast_port), 129 | ) 130 | .await; 131 | } 132 | 133 | if !self.devices.contains(&device_response.device_info) { 134 | self.devices.push(device_response.device_info); 135 | debug!("{:#?}", &self.devices); 136 | debug!("{:#?}", &self.devices.len()); 137 | } 138 | } 139 | } 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use std::{collections::HashMap, fmt::Write, io, net::Ipv4Addr, time::Duration}; 2 | 3 | use console::style; 4 | use dialoguer::{theme::ColorfulTheme, MultiSelect}; 5 | use indicatif::{MultiProgress, ProgressBar, ProgressState, ProgressStyle}; 6 | use tokio::{runtime, sync::mpsc}; 7 | use tracing::{debug, info}; 8 | use tracing_subscriber::{filter::EnvFilter, FmtSubscriber}; 9 | 10 | use localsend_core::{ClientMessage, DeviceScanner, FileInfo, Server, ServerMessage}; 11 | 12 | const ALIAS: &str = "rustsend"; 13 | const INTERFACE_ADDR: Ipv4Addr = Ipv4Addr::new(0, 0, 0, 0); 14 | const MULTICAST_ADDR: Ipv4Addr = Ipv4Addr::new(224, 0, 0, 167); 15 | const MULTICAST_PORT: u16 = 53317; 16 | 17 | struct State { 18 | multi_progress: MultiProgress, 19 | files: HashMap, 20 | progress_map: HashMap, 21 | } 22 | 23 | fn main() { 24 | console_subscriber::init(); 25 | // init_tracing_logger(); 26 | // TODO: should i use new_current_thread or new_multi_thread? 27 | let runtime = runtime::Builder::new_current_thread() 28 | .enable_all() 29 | .build() 30 | .unwrap(); 31 | 32 | let _ = runtime.block_on(async_main()); 33 | // https://stackoverflow.com/questions/73528236/how-to-terminate-a-blocking-tokio-task 34 | // start_device_scanner blocks exit, so set timeout or use async_std crate (adds to the binary size and compile time) 35 | runtime.shutdown_timeout(Duration::from_millis(1)); 36 | } 37 | 38 | async fn handle_server_msgs( 39 | mut server_rx: localsend_core::protos::Receiver, 40 | client_tx: localsend_core::protos::Sender, 41 | ) { 42 | // TODO: set this back to None when we are done with a session 43 | let mut client_state: Option = None; 44 | 45 | while let Some(server_message) = server_rx.recv().await { 46 | debug!("{:?}", &server_message); 47 | match server_message { 48 | ServerMessage::SendRequest(send_request) => { 49 | println!( 50 | "{} wants to send you the following files:\n", 51 | style(send_request.device_info.alias).bold().magenta() 52 | ); 53 | 54 | let selections = MultiSelect::with_theme(&ColorfulTheme::default()) 55 | .with_prompt("Select the files you want to receive") 56 | .items( 57 | &send_request 58 | .files 59 | .values() 60 | .map(|file_info| file_info.file_name.as_str()) 61 | .collect::>(), 62 | ) 63 | .defaults(vec![true; send_request.files.len()].as_slice()) 64 | .interact() 65 | .unwrap(); 66 | 67 | if selections.is_empty() { 68 | let _ = client_tx.send(ClientMessage::Decline); 69 | } else { 70 | let file_ids = send_request 71 | .files 72 | .keys() 73 | .map(|file_id| file_id.as_str()) 74 | .collect::>(); 75 | 76 | let selected_file_ids = selections 77 | .into_iter() 78 | .map(|idx| String::from(file_ids[idx])) 79 | .collect::>(); 80 | let _ = client_tx.send(ClientMessage::Allow(selected_file_ids)); 81 | 82 | let multi_progress = MultiProgress::new(); 83 | let progress_map = send_request 84 | .files 85 | .clone() 86 | .into_iter() 87 | .map(|(file_id, file_info)| { 88 | // TODO(notjedi): change length ot size of file 89 | let pb = 90 | multi_progress.add(ProgressBar::new(file_info.size as u64)); 91 | 92 | pb.set_style(ProgressStyle::with_template("{spinner:.green} [{msg}] [{wide_bar:.cyan/blue}] {bytes}/{total_bytes} ({eta})") 93 | .unwrap() 94 | .with_key("eta", |state: &ProgressState, w: &mut dyn Write| write!(w, "{:.1}s", state.eta().as_secs_f64()).unwrap()) 95 | .progress_chars("#>-")); 96 | 97 | pb.set_message(file_info.file_name); 98 | (file_id, pb) 99 | }) 100 | .collect::>(); 101 | 102 | client_state = Some(State { 103 | files: send_request.files, 104 | multi_progress, 105 | progress_map, 106 | }); 107 | } 108 | } 109 | ServerMessage::SendFileRequest((file_id, size)) => match client_state.as_ref() { 110 | Some(state) => { 111 | state.progress_map[&file_id].inc(size as u64); 112 | if state.progress_map[&file_id].position() 113 | == (state.files[&file_id].size as u64) 114 | { 115 | state.progress_map[&file_id].finish_and_clear(); 116 | state 117 | .multi_progress 118 | .println(format!("Received {}", state.files[&file_id].file_name)) 119 | .unwrap(); 120 | } 121 | } 122 | None => { 123 | info!("client_state is None. this shouldn't be happening as this block is unreachable.") 124 | } 125 | }, 126 | ServerMessage::CancelSession => match client_state.as_ref() { 127 | // TODO(notjedi): handle cancel request when in send request phase 128 | Some(state) => { 129 | for (file_id, pb) in &state.progress_map { 130 | if !pb.is_finished() { 131 | pb.finish_and_clear(); 132 | state 133 | .multi_progress 134 | .println(format!( 135 | "{} finished with error", 136 | state.files[file_id.as_str()].file_name 137 | )) 138 | .unwrap(); 139 | } 140 | } 141 | client_state = None; 142 | } 143 | None => { 144 | info!("client_state is None. this shouldn't be happening as this block is unreachable.") 145 | } 146 | }, 147 | } 148 | } 149 | } 150 | 151 | async fn start_device_scanner() { 152 | let mut device_scanner = DeviceScanner::new( 153 | ALIAS.to_string(), 154 | INTERFACE_ADDR, 155 | MULTICAST_ADDR, 156 | MULTICAST_PORT, 157 | ) 158 | .await; 159 | device_scanner.listen_and_announce_multicast().await; 160 | } 161 | 162 | async fn async_main() -> Result<(), io::Error> { 163 | // spawn task to listen and announce multicast messages 164 | tokio::spawn(start_device_scanner()); 165 | 166 | let (server_tx, server_rx) = mpsc::unbounded_channel(); 167 | let (client_tx, client_rx) = mpsc::unbounded_channel(); 168 | 169 | tokio::spawn(handle_server_msgs(server_rx, client_tx)); 170 | 171 | let server = Server::new(INTERFACE_ADDR, MULTICAST_PORT); 172 | server.start_server(server_tx, client_rx).await; 173 | Ok(()) 174 | } 175 | 176 | fn init_tracing_logger() { 177 | let mut subscriber_builder = FmtSubscriber::builder() 178 | .with_env_filter( 179 | EnvFilter::builder() 180 | .with_default_directive(tracing_subscriber::filter::LevelFilter::INFO.into()) 181 | .from_env_lossy(), 182 | ) 183 | .without_time(); 184 | 185 | if cfg!(debug_assertions) { 186 | subscriber_builder = subscriber_builder.with_line_number(true); 187 | } 188 | let subscriber = subscriber_builder.finish(); 189 | tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed"); 190 | 191 | // forward log's from the log crate to tracing 192 | #[cfg(debug_assertions)] 193 | { 194 | use tracing_log::LogTracer; 195 | LogTracer::builder() 196 | .with_max_level(tracing_log::log::LevelFilter::Off) 197 | .init() 198 | .unwrap(); 199 | } 200 | } 201 | -------------------------------------------------------------------------------- /crates/localsend-core/src/server.rs: -------------------------------------------------------------------------------- 1 | use std::{ 2 | collections::HashMap, 3 | io, 4 | net::{Ipv4Addr, SocketAddr}, 5 | path::{Path, PathBuf}, 6 | sync::Arc, 7 | }; 8 | 9 | use axum::{ 10 | body::Bytes, 11 | extract::{BodyStream, Query, State}, 12 | http::StatusCode, 13 | routing::post, 14 | BoxError, Json, Router, 15 | }; 16 | use axum_server::tls_rustls::RustlsConfig; 17 | use futures::{Stream, TryStreamExt}; 18 | use tokio::{ 19 | fs::File, 20 | io::{AsyncReadExt, AsyncWriteExt, BufWriter}, 21 | sync::Mutex, 22 | }; 23 | use tokio_util::io::StreamReader; 24 | use tracing::{info, trace}; 25 | use uuid::Uuid; 26 | 27 | use crate::{ 28 | utils, AppState, ClientMessage, ReceiveSession, ReceiveState, ReceiveStatus, Receiver, 29 | SendInfo, SendRequest, Sender, ServerMessage, 30 | }; 31 | 32 | pub struct Server { 33 | certificate: rcgen::Certificate, 34 | interface_addr: Ipv4Addr, 35 | multicast_port: u16, 36 | } 37 | 38 | impl Server { 39 | pub fn new(interface_addr: Ipv4Addr, multicast_port: u16) -> Self { 40 | Self { 41 | certificate: utils::generate_tls_cert(), 42 | interface_addr, 43 | multicast_port, 44 | } 45 | } 46 | 47 | pub async fn start_server( 48 | &self, 49 | server_tx: Sender, 50 | client_rx: Receiver, 51 | ) { 52 | let cert_pem = self.certificate.serialize_pem().unwrap(); 53 | let private_key_pem = self.certificate.serialize_private_key_pem(); 54 | let config = RustlsConfig::from_pem(cert_pem.into_bytes(), private_key_pem.into_bytes()) 55 | .await 56 | .unwrap(); 57 | 58 | let app_state = Arc::new(Mutex::new(AppState { 59 | server_tx, 60 | client_rx, 61 | receive_session: None, 62 | })); 63 | 64 | let app = Router::new() 65 | .route( 66 | "/api/localsend/v1/send-request", 67 | post(Self::handle_send_request), 68 | ) 69 | .route( 70 | "/api/localsend/v1/send", 71 | post(Self::handle_send_file_request), 72 | ) 73 | .route( 74 | "/api/localsend/v1/cancel", 75 | post(Self::handle_cancel_request), 76 | ) 77 | .with_state(app_state); 78 | 79 | let addr = SocketAddr::from((self.interface_addr, self.multicast_port)); 80 | info!("listening on {}", addr); 81 | axum_server::bind_rustls(addr, config) 82 | .serve(app.into_make_service()) 83 | .await 84 | .unwrap(); 85 | } 86 | 87 | async fn handle_cancel_request( 88 | State(session_state): State, 89 | ) -> Result<(), (StatusCode, String)> { 90 | let mut session = session_state.lock().await; 91 | if session.receive_session.is_none() { 92 | // reject incoming request if another session is ongoing 93 | return Err(( 94 | StatusCode::BAD_REQUEST, 95 | "Cannot cancel a non existant session".into(), 96 | )); 97 | } 98 | 99 | // TODO(notjedi): check if cancel request is valid by comparing the ip address 100 | // TODO(notjedi): set session_state.receive_session to None 101 | // TODO(notjedi): clear buffer of sender_tx 102 | let _ = session.server_tx.send(ServerMessage::CancelSession); 103 | 104 | session.receive_session = None; 105 | Ok(()) 106 | } 107 | 108 | async fn handle_send_request( 109 | State(session_state): State, 110 | Json(send_request): Json, 111 | ) -> Result>, (StatusCode, String)> { 112 | trace!("got request {:#?}", send_request); 113 | 114 | let mut session = session_state.lock().await; 115 | if session.receive_session.is_some() { 116 | // reject incoming request if another session is ongoing 117 | return Err((StatusCode::CONFLICT, "Blocked by another sesssion".into())); 118 | } 119 | 120 | let _ = session 121 | .server_tx 122 | .send(ServerMessage::SendRequest(send_request.clone())); 123 | let response = session.client_rx.recv().await; 124 | 125 | match response { 126 | Some(ClientMessage::Decline) | None => { 127 | Err((StatusCode::FORBIDDEN, "User declined the request".into())) 128 | } 129 | Some(ClientMessage::Allow(file_ids)) => { 130 | // TODO: create destination_directory if it doesn't exist 131 | let state = session.receive_session.insert(ReceiveSession::new( 132 | send_request.device_info, 133 | "./test_files/".into(), 134 | )); 135 | 136 | // TODO(notjedi): yo, why so many clones? 137 | let mut wanted_files: HashMap = HashMap::new(); 138 | file_ids.into_iter().for_each(|file_id| { 139 | let token = Uuid::new_v4(); 140 | wanted_files.insert(file_id.clone(), token.to_string()); 141 | state 142 | .files 143 | .insert(file_id.clone(), send_request.files[&file_id].clone()); 144 | state.file_status.insert(file_id, ReceiveStatus::Waiting); 145 | }); 146 | trace!("{:#?}", &wanted_files); 147 | trace!("{:#?}, ", &state.files); 148 | 149 | Ok(Json(wanted_files)) 150 | } 151 | } 152 | } 153 | 154 | async fn handle_send_file_request( 155 | State(session_state): State, 156 | params: Query, 157 | file_stream: BodyStream, 158 | ) -> Result<(), (StatusCode, String)> { 159 | // NOTE: i shouldn't be locking session_state for the whole function but since we are only 160 | // receiving files one by one, it should be fine. Shouldn't be locking for the whole 161 | // function if we are going to receive multiple files at the same time. 162 | 163 | let (file_id, path, sender) = { 164 | let mut session = session_state.lock().await; 165 | if session.receive_session.is_none() { 166 | return Err(( 167 | StatusCode::INTERNAL_SERVER_ERROR, 168 | "Call to /send without requesting a send".into(), 169 | )); 170 | } 171 | 172 | let _ = session 173 | .server_tx 174 | .send(ServerMessage::SendFileRequest((params.file_id.clone(), 0))); 175 | 176 | if !session 177 | .receive_session 178 | .as_ref() 179 | .unwrap() 180 | .files 181 | .contains_key(¶ms.file_id) 182 | { 183 | return Err(( 184 | StatusCode::INTERNAL_SERVER_ERROR, 185 | format!("Call to /send with unknown file id {}", params.file_id), 186 | )); 187 | } 188 | 189 | let receive_session = session.receive_session.as_mut().unwrap(); 190 | receive_session.status = ReceiveStatus::Receiving; 191 | 192 | let file_id = params.file_id.clone(); 193 | let path = Path::new(&receive_session.destination_directory) 194 | .join(&receive_session.files[¶ms.file_id].file_name); 195 | (file_id, path, session.server_tx.clone()) 196 | }; 197 | 198 | let result = stream_to_file(path, file_stream, file_id.clone(), sender).await; 199 | 200 | let mut session = session_state.lock().await; 201 | if session.receive_session.is_none() { 202 | // TODO(notjedi): should i return Ok(()) here? 203 | return Err(( 204 | StatusCode::INTERNAL_SERVER_ERROR, 205 | "Session might have been cancelled while receiving file".into(), 206 | )); 207 | } 208 | let receive_session = session.receive_session.as_mut().unwrap(); 209 | 210 | receive_session 211 | .file_status 212 | .entry(file_id) 213 | .and_modify(|file_status| { 214 | *file_status = if result.is_ok() { 215 | ReceiveStatus::Finished 216 | } else { 217 | ReceiveStatus::FinishedWithErrors 218 | } 219 | }); 220 | 221 | let all_finished = receive_session.files.iter().all(|(file_status_id, _)| { 222 | receive_session.file_status[file_status_id] == ReceiveStatus::Finished 223 | || receive_session.file_status[file_status_id] == ReceiveStatus::FinishedWithErrors 224 | }); 225 | // TODO(notjedi): do i need to loop over everything and set the status? 226 | if all_finished { 227 | // TODO: add support for FinishedWithErrors and send message to bin crate before 228 | // setting receive_session to None 229 | receive_session.status = ReceiveStatus::Finished; 230 | session.receive_session = None; 231 | } 232 | Ok(()) 233 | } 234 | } 235 | 236 | // taken and modified from: https://github.com/tokio-rs/axum/blob/main/examples/stream-to-file/src/main.rs 237 | async fn stream_to_file( 238 | path: PathBuf, 239 | stream: S, 240 | file_id: String, 241 | sender: Sender, 242 | ) -> std::io::Result<()> 243 | where 244 | S: Stream>, 245 | E: Into, // BoxError is just - Box 246 | { 247 | let body_with_io_error = stream.map_err(|err| io::Error::new(io::ErrorKind::Other, err)); 248 | let body_reader = StreamReader::new(body_with_io_error); 249 | futures::pin_mut!(body_reader); 250 | 251 | let file = File::create(path).await?; 252 | let mut file_buf = BufWriter::with_capacity(16384, file); 253 | 254 | // read 1024 * 16 bytes on each read call 255 | // can i directly write to the file buffer? rn we are copying data to a buf and writing that to the file 256 | let mut buf = [0u8; 16384]; 257 | loop { 258 | match body_reader.read(&mut buf[..]).await { 259 | Ok(0) => { 260 | break; 261 | } 262 | Ok(len) => { 263 | // TODO: assert len(read) == len(written) 264 | // TODO: don't unwrap 265 | // TODO: no clones 266 | let _ = file_buf.write(&buf[0..len]).await.unwrap(); 267 | let _ = sender.send(ServerMessage::SendFileRequest((file_id.clone(), len))); 268 | } 269 | Err(_) => { 270 | return Err(std::io::Error::new( 271 | std::io::ErrorKind::UnexpectedEof, 272 | "Failed to read from stream", 273 | )); 274 | } 275 | } 276 | } 277 | Ok(()) 278 | } 279 | -------------------------------------------------------------------------------- /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.21.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" 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.2" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" 25 | dependencies = [ 26 | "memchr", 27 | ] 28 | 29 | [[package]] 30 | name = "anyhow" 31 | version = "1.0.80" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" 34 | 35 | [[package]] 36 | name = "arc-swap" 37 | version = "1.7.0" 38 | source = "registry+https://github.com/rust-lang/crates.io-index" 39 | checksum = "7b3d0060af21e8d11a926981cc00c6c1541aa91dd64b9f881985c3da1094425f" 40 | 41 | [[package]] 42 | name = "async-stream" 43 | version = "0.3.5" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" 46 | dependencies = [ 47 | "async-stream-impl", 48 | "futures-core", 49 | "pin-project-lite", 50 | ] 51 | 52 | [[package]] 53 | name = "async-stream-impl" 54 | version = "0.3.5" 55 | source = "registry+https://github.com/rust-lang/crates.io-index" 56 | checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" 57 | dependencies = [ 58 | "proc-macro2", 59 | "quote", 60 | "syn", 61 | ] 62 | 63 | [[package]] 64 | name = "async-trait" 65 | version = "0.1.77" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" 68 | dependencies = [ 69 | "proc-macro2", 70 | "quote", 71 | "syn", 72 | ] 73 | 74 | [[package]] 75 | name = "atty" 76 | version = "0.2.14" 77 | source = "registry+https://github.com/rust-lang/crates.io-index" 78 | checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 79 | dependencies = [ 80 | "hermit-abi 0.1.19", 81 | "libc", 82 | "winapi", 83 | ] 84 | 85 | [[package]] 86 | name = "autocfg" 87 | version = "1.1.0" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 90 | 91 | [[package]] 92 | name = "axum" 93 | version = "0.6.20" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" 96 | dependencies = [ 97 | "async-trait", 98 | "axum-core", 99 | "bitflags 1.3.2", 100 | "bytes", 101 | "futures-util", 102 | "http", 103 | "http-body", 104 | "hyper", 105 | "itoa", 106 | "matchit", 107 | "memchr", 108 | "mime", 109 | "percent-encoding", 110 | "pin-project-lite", 111 | "rustversion", 112 | "serde", 113 | "serde_json", 114 | "serde_path_to_error", 115 | "serde_urlencoded", 116 | "sync_wrapper", 117 | "tokio", 118 | "tower", 119 | "tower-layer", 120 | "tower-service", 121 | ] 122 | 123 | [[package]] 124 | name = "axum-core" 125 | version = "0.3.4" 126 | source = "registry+https://github.com/rust-lang/crates.io-index" 127 | checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c" 128 | dependencies = [ 129 | "async-trait", 130 | "bytes", 131 | "futures-util", 132 | "http", 133 | "http-body", 134 | "mime", 135 | "rustversion", 136 | "tower-layer", 137 | "tower-service", 138 | ] 139 | 140 | [[package]] 141 | name = "axum-macros" 142 | version = "0.3.8" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | checksum = "cdca6a10ecad987bda04e95606ef85a5417dcaac1a78455242d72e031e2b6b62" 145 | dependencies = [ 146 | "heck", 147 | "proc-macro2", 148 | "quote", 149 | "syn", 150 | ] 151 | 152 | [[package]] 153 | name = "axum-server" 154 | version = "0.4.6" 155 | dependencies = [ 156 | "arc-swap", 157 | "axum", 158 | "bytes", 159 | "futures-util", 160 | "http", 161 | "http-body", 162 | "hyper", 163 | "pin-project-lite", 164 | "rustls", 165 | "rustls-pemfile", 166 | "tokio", 167 | "tokio-rustls", 168 | "tower", 169 | "tower-http", 170 | "tower-service", 171 | ] 172 | 173 | [[package]] 174 | name = "backtrace" 175 | version = "0.3.69" 176 | source = "registry+https://github.com/rust-lang/crates.io-index" 177 | checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" 178 | dependencies = [ 179 | "addr2line", 180 | "cc", 181 | "cfg-if", 182 | "libc", 183 | "miniz_oxide", 184 | "object", 185 | "rustc-demangle", 186 | ] 187 | 188 | [[package]] 189 | name = "base64" 190 | version = "0.13.1" 191 | source = "registry+https://github.com/rust-lang/crates.io-index" 192 | checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" 193 | 194 | [[package]] 195 | name = "base64" 196 | version = "0.21.7" 197 | source = "registry+https://github.com/rust-lang/crates.io-index" 198 | checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" 199 | 200 | [[package]] 201 | name = "bitflags" 202 | version = "1.3.2" 203 | source = "registry+https://github.com/rust-lang/crates.io-index" 204 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 205 | 206 | [[package]] 207 | name = "bitflags" 208 | version = "2.4.2" 209 | source = "registry+https://github.com/rust-lang/crates.io-index" 210 | checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" 211 | 212 | [[package]] 213 | name = "bumpalo" 214 | version = "3.15.3" 215 | source = "registry+https://github.com/rust-lang/crates.io-index" 216 | checksum = "8ea184aa71bb362a1157c896979544cc23974e08fd265f29ea96b59f0b4a555b" 217 | 218 | [[package]] 219 | name = "byteorder" 220 | version = "1.5.0" 221 | source = "registry+https://github.com/rust-lang/crates.io-index" 222 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 223 | 224 | [[package]] 225 | name = "bytes" 226 | version = "1.5.0" 227 | source = "registry+https://github.com/rust-lang/crates.io-index" 228 | checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" 229 | 230 | [[package]] 231 | name = "cast" 232 | version = "0.3.0" 233 | source = "registry+https://github.com/rust-lang/crates.io-index" 234 | checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" 235 | 236 | [[package]] 237 | name = "cc" 238 | version = "1.0.89" 239 | source = "registry+https://github.com/rust-lang/crates.io-index" 240 | checksum = "a0ba8f7aaa012f30d5b2861462f6708eccd49c3c39863fe083a308035f63d723" 241 | 242 | [[package]] 243 | name = "cfg-if" 244 | version = "1.0.0" 245 | source = "registry+https://github.com/rust-lang/crates.io-index" 246 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 247 | 248 | [[package]] 249 | name = "clap" 250 | version = "2.34.0" 251 | source = "registry+https://github.com/rust-lang/crates.io-index" 252 | checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" 253 | dependencies = [ 254 | "bitflags 1.3.2", 255 | "textwrap", 256 | "unicode-width", 257 | ] 258 | 259 | [[package]] 260 | name = "console" 261 | version = "0.15.8" 262 | source = "registry+https://github.com/rust-lang/crates.io-index" 263 | checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" 264 | dependencies = [ 265 | "encode_unicode", 266 | "lazy_static", 267 | "libc", 268 | "unicode-width", 269 | "windows-sys 0.52.0", 270 | ] 271 | 272 | [[package]] 273 | name = "console-api" 274 | version = "0.6.0" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | checksum = "fd326812b3fd01da5bb1af7d340d0d555fd3d4b641e7f1dfcf5962a902952787" 277 | dependencies = [ 278 | "futures-core", 279 | "prost", 280 | "prost-types", 281 | "tonic", 282 | "tracing-core", 283 | ] 284 | 285 | [[package]] 286 | name = "console-subscriber" 287 | version = "0.2.0" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | checksum = "7481d4c57092cd1c19dd541b92bdce883de840df30aa5d03fd48a3935c01842e" 290 | dependencies = [ 291 | "console-api", 292 | "crossbeam-channel", 293 | "crossbeam-utils", 294 | "futures-task", 295 | "hdrhistogram", 296 | "humantime", 297 | "prost-types", 298 | "serde", 299 | "serde_json", 300 | "thread_local", 301 | "tokio", 302 | "tokio-stream", 303 | "tonic", 304 | "tracing", 305 | "tracing-core", 306 | "tracing-subscriber", 307 | ] 308 | 309 | [[package]] 310 | name = "crc32fast" 311 | version = "1.4.0" 312 | source = "registry+https://github.com/rust-lang/crates.io-index" 313 | checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" 314 | dependencies = [ 315 | "cfg-if", 316 | ] 317 | 318 | [[package]] 319 | name = "criterion" 320 | version = "0.3.6" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | checksum = "b01d6de93b2b6c65e17c634a26653a29d107b3c98c607c765bf38d041531cd8f" 323 | dependencies = [ 324 | "atty", 325 | "cast", 326 | "clap", 327 | "criterion-plot", 328 | "csv", 329 | "itertools 0.10.5", 330 | "lazy_static", 331 | "num-traits", 332 | "oorandom", 333 | "plotters", 334 | "rayon", 335 | "regex", 336 | "serde", 337 | "serde_cbor", 338 | "serde_derive", 339 | "serde_json", 340 | "tinytemplate", 341 | "walkdir", 342 | ] 343 | 344 | [[package]] 345 | name = "criterion-plot" 346 | version = "0.4.5" 347 | source = "registry+https://github.com/rust-lang/crates.io-index" 348 | checksum = "2673cc8207403546f45f5fd319a974b1e6983ad1a3ee7e6041650013be041876" 349 | dependencies = [ 350 | "cast", 351 | "itertools 0.10.5", 352 | ] 353 | 354 | [[package]] 355 | name = "crossbeam-channel" 356 | version = "0.5.12" 357 | source = "registry+https://github.com/rust-lang/crates.io-index" 358 | checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" 359 | dependencies = [ 360 | "crossbeam-utils", 361 | ] 362 | 363 | [[package]] 364 | name = "crossbeam-deque" 365 | version = "0.8.5" 366 | source = "registry+https://github.com/rust-lang/crates.io-index" 367 | checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" 368 | dependencies = [ 369 | "crossbeam-epoch", 370 | "crossbeam-utils", 371 | ] 372 | 373 | [[package]] 374 | name = "crossbeam-epoch" 375 | version = "0.9.18" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 378 | dependencies = [ 379 | "crossbeam-utils", 380 | ] 381 | 382 | [[package]] 383 | name = "crossbeam-utils" 384 | version = "0.8.19" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" 387 | 388 | [[package]] 389 | name = "csv" 390 | version = "1.3.0" 391 | source = "registry+https://github.com/rust-lang/crates.io-index" 392 | checksum = "ac574ff4d437a7b5ad237ef331c17ccca63c46479e5b5453eb8e10bb99a759fe" 393 | dependencies = [ 394 | "csv-core", 395 | "itoa", 396 | "ryu", 397 | "serde", 398 | ] 399 | 400 | [[package]] 401 | name = "csv-core" 402 | version = "0.1.11" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70" 405 | dependencies = [ 406 | "memchr", 407 | ] 408 | 409 | [[package]] 410 | name = "deranged" 411 | version = "0.3.11" 412 | source = "registry+https://github.com/rust-lang/crates.io-index" 413 | checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" 414 | dependencies = [ 415 | "powerfmt", 416 | ] 417 | 418 | [[package]] 419 | name = "dialoguer" 420 | version = "0.11.0" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | checksum = "658bce805d770f407bc62102fca7c2c64ceef2fbcb2b8bd19d2765ce093980de" 423 | dependencies = [ 424 | "console", 425 | "shell-words", 426 | "tempfile", 427 | "thiserror", 428 | "zeroize", 429 | ] 430 | 431 | [[package]] 432 | name = "either" 433 | version = "1.10.0" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" 436 | 437 | [[package]] 438 | name = "encode_unicode" 439 | version = "0.3.6" 440 | source = "registry+https://github.com/rust-lang/crates.io-index" 441 | checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" 442 | 443 | [[package]] 444 | name = "env_logger" 445 | version = "0.9.3" 446 | source = "registry+https://github.com/rust-lang/crates.io-index" 447 | checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" 448 | dependencies = [ 449 | "atty", 450 | "humantime", 451 | "log", 452 | "regex", 453 | "termcolor", 454 | ] 455 | 456 | [[package]] 457 | name = "equivalent" 458 | version = "1.0.1" 459 | source = "registry+https://github.com/rust-lang/crates.io-index" 460 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 461 | 462 | [[package]] 463 | name = "errno" 464 | version = "0.3.8" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" 467 | dependencies = [ 468 | "libc", 469 | "windows-sys 0.52.0", 470 | ] 471 | 472 | [[package]] 473 | name = "fastrand" 474 | version = "2.0.1" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" 477 | 478 | [[package]] 479 | name = "flate2" 480 | version = "1.0.28" 481 | source = "registry+https://github.com/rust-lang/crates.io-index" 482 | checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" 483 | dependencies = [ 484 | "crc32fast", 485 | "miniz_oxide", 486 | ] 487 | 488 | [[package]] 489 | name = "fnv" 490 | version = "1.0.7" 491 | source = "registry+https://github.com/rust-lang/crates.io-index" 492 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 493 | 494 | [[package]] 495 | name = "form_urlencoded" 496 | version = "1.2.1" 497 | source = "registry+https://github.com/rust-lang/crates.io-index" 498 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 499 | dependencies = [ 500 | "percent-encoding", 501 | ] 502 | 503 | [[package]] 504 | name = "futures" 505 | version = "0.3.30" 506 | source = "registry+https://github.com/rust-lang/crates.io-index" 507 | checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" 508 | dependencies = [ 509 | "futures-channel", 510 | "futures-core", 511 | "futures-executor", 512 | "futures-io", 513 | "futures-sink", 514 | "futures-task", 515 | "futures-util", 516 | ] 517 | 518 | [[package]] 519 | name = "futures-channel" 520 | version = "0.3.30" 521 | source = "registry+https://github.com/rust-lang/crates.io-index" 522 | checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" 523 | dependencies = [ 524 | "futures-core", 525 | "futures-sink", 526 | ] 527 | 528 | [[package]] 529 | name = "futures-core" 530 | version = "0.3.30" 531 | source = "registry+https://github.com/rust-lang/crates.io-index" 532 | checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" 533 | 534 | [[package]] 535 | name = "futures-executor" 536 | version = "0.3.30" 537 | source = "registry+https://github.com/rust-lang/crates.io-index" 538 | checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" 539 | dependencies = [ 540 | "futures-core", 541 | "futures-task", 542 | "futures-util", 543 | ] 544 | 545 | [[package]] 546 | name = "futures-io" 547 | version = "0.3.30" 548 | source = "registry+https://github.com/rust-lang/crates.io-index" 549 | checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" 550 | 551 | [[package]] 552 | name = "futures-macro" 553 | version = "0.3.30" 554 | source = "registry+https://github.com/rust-lang/crates.io-index" 555 | checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" 556 | dependencies = [ 557 | "proc-macro2", 558 | "quote", 559 | "syn", 560 | ] 561 | 562 | [[package]] 563 | name = "futures-sink" 564 | version = "0.3.30" 565 | source = "registry+https://github.com/rust-lang/crates.io-index" 566 | checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" 567 | 568 | [[package]] 569 | name = "futures-task" 570 | version = "0.3.30" 571 | source = "registry+https://github.com/rust-lang/crates.io-index" 572 | checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" 573 | 574 | [[package]] 575 | name = "futures-util" 576 | version = "0.3.30" 577 | source = "registry+https://github.com/rust-lang/crates.io-index" 578 | checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" 579 | dependencies = [ 580 | "futures-channel", 581 | "futures-core", 582 | "futures-io", 583 | "futures-macro", 584 | "futures-sink", 585 | "futures-task", 586 | "memchr", 587 | "pin-project-lite", 588 | "pin-utils", 589 | "slab", 590 | ] 591 | 592 | [[package]] 593 | name = "getrandom" 594 | version = "0.2.12" 595 | source = "registry+https://github.com/rust-lang/crates.io-index" 596 | checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" 597 | dependencies = [ 598 | "cfg-if", 599 | "libc", 600 | "wasi", 601 | ] 602 | 603 | [[package]] 604 | name = "gimli" 605 | version = "0.28.1" 606 | source = "registry+https://github.com/rust-lang/crates.io-index" 607 | checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" 608 | 609 | [[package]] 610 | name = "h2" 611 | version = "0.3.24" 612 | source = "registry+https://github.com/rust-lang/crates.io-index" 613 | checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" 614 | dependencies = [ 615 | "bytes", 616 | "fnv", 617 | "futures-core", 618 | "futures-sink", 619 | "futures-util", 620 | "http", 621 | "indexmap 2.2.5", 622 | "slab", 623 | "tokio", 624 | "tokio-util", 625 | "tracing", 626 | ] 627 | 628 | [[package]] 629 | name = "half" 630 | version = "1.8.3" 631 | source = "registry+https://github.com/rust-lang/crates.io-index" 632 | checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" 633 | 634 | [[package]] 635 | name = "hashbrown" 636 | version = "0.12.3" 637 | source = "registry+https://github.com/rust-lang/crates.io-index" 638 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 639 | 640 | [[package]] 641 | name = "hashbrown" 642 | version = "0.14.3" 643 | source = "registry+https://github.com/rust-lang/crates.io-index" 644 | checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" 645 | 646 | [[package]] 647 | name = "hdrhistogram" 648 | version = "7.5.4" 649 | source = "registry+https://github.com/rust-lang/crates.io-index" 650 | checksum = "765c9198f173dd59ce26ff9f95ef0aafd0a0fe01fb9d72841bc5066a4c06511d" 651 | dependencies = [ 652 | "base64 0.21.7", 653 | "byteorder", 654 | "flate2", 655 | "nom", 656 | "num-traits", 657 | ] 658 | 659 | [[package]] 660 | name = "heck" 661 | version = "0.4.1" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" 664 | 665 | [[package]] 666 | name = "hermit-abi" 667 | version = "0.1.19" 668 | source = "registry+https://github.com/rust-lang/crates.io-index" 669 | checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 670 | dependencies = [ 671 | "libc", 672 | ] 673 | 674 | [[package]] 675 | name = "hermit-abi" 676 | version = "0.3.9" 677 | source = "registry+https://github.com/rust-lang/crates.io-index" 678 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 679 | 680 | [[package]] 681 | name = "http" 682 | version = "0.2.12" 683 | source = "registry+https://github.com/rust-lang/crates.io-index" 684 | checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" 685 | dependencies = [ 686 | "bytes", 687 | "fnv", 688 | "itoa", 689 | ] 690 | 691 | [[package]] 692 | name = "http-body" 693 | version = "0.4.6" 694 | source = "registry+https://github.com/rust-lang/crates.io-index" 695 | checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" 696 | dependencies = [ 697 | "bytes", 698 | "http", 699 | "pin-project-lite", 700 | ] 701 | 702 | [[package]] 703 | name = "http-range-header" 704 | version = "0.3.1" 705 | source = "registry+https://github.com/rust-lang/crates.io-index" 706 | checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" 707 | 708 | [[package]] 709 | name = "httparse" 710 | version = "1.8.0" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" 713 | 714 | [[package]] 715 | name = "httpdate" 716 | version = "1.0.3" 717 | source = "registry+https://github.com/rust-lang/crates.io-index" 718 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 719 | 720 | [[package]] 721 | name = "humantime" 722 | version = "2.1.0" 723 | source = "registry+https://github.com/rust-lang/crates.io-index" 724 | checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" 725 | 726 | [[package]] 727 | name = "hyper" 728 | version = "0.14.28" 729 | source = "registry+https://github.com/rust-lang/crates.io-index" 730 | checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" 731 | dependencies = [ 732 | "bytes", 733 | "futures-channel", 734 | "futures-core", 735 | "futures-util", 736 | "h2", 737 | "http", 738 | "http-body", 739 | "httparse", 740 | "httpdate", 741 | "itoa", 742 | "pin-project-lite", 743 | "socket2", 744 | "tokio", 745 | "tower-service", 746 | "tracing", 747 | "want", 748 | ] 749 | 750 | [[package]] 751 | name = "hyper-timeout" 752 | version = "0.4.1" 753 | source = "registry+https://github.com/rust-lang/crates.io-index" 754 | checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" 755 | dependencies = [ 756 | "hyper", 757 | "pin-project-lite", 758 | "tokio", 759 | "tokio-io-timeout", 760 | ] 761 | 762 | [[package]] 763 | name = "indexmap" 764 | version = "1.9.3" 765 | source = "registry+https://github.com/rust-lang/crates.io-index" 766 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" 767 | dependencies = [ 768 | "autocfg", 769 | "hashbrown 0.12.3", 770 | ] 771 | 772 | [[package]] 773 | name = "indexmap" 774 | version = "2.2.5" 775 | source = "registry+https://github.com/rust-lang/crates.io-index" 776 | checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4" 777 | dependencies = [ 778 | "equivalent", 779 | "hashbrown 0.14.3", 780 | ] 781 | 782 | [[package]] 783 | name = "indicatif" 784 | version = "0.17.8" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" 787 | dependencies = [ 788 | "console", 789 | "instant", 790 | "number_prefix", 791 | "portable-atomic", 792 | "unicode-width", 793 | ] 794 | 795 | [[package]] 796 | name = "instant" 797 | version = "0.1.12" 798 | source = "registry+https://github.com/rust-lang/crates.io-index" 799 | checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" 800 | dependencies = [ 801 | "cfg-if", 802 | ] 803 | 804 | [[package]] 805 | name = "itertools" 806 | version = "0.10.5" 807 | source = "registry+https://github.com/rust-lang/crates.io-index" 808 | checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" 809 | dependencies = [ 810 | "either", 811 | ] 812 | 813 | [[package]] 814 | name = "itertools" 815 | version = "0.11.0" 816 | source = "registry+https://github.com/rust-lang/crates.io-index" 817 | checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" 818 | dependencies = [ 819 | "either", 820 | ] 821 | 822 | [[package]] 823 | name = "itoa" 824 | version = "1.0.10" 825 | source = "registry+https://github.com/rust-lang/crates.io-index" 826 | checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" 827 | 828 | [[package]] 829 | name = "js-sys" 830 | version = "0.3.69" 831 | source = "registry+https://github.com/rust-lang/crates.io-index" 832 | checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" 833 | dependencies = [ 834 | "wasm-bindgen", 835 | ] 836 | 837 | [[package]] 838 | name = "lazy_static" 839 | version = "1.4.0" 840 | source = "registry+https://github.com/rust-lang/crates.io-index" 841 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 842 | 843 | [[package]] 844 | name = "libc" 845 | version = "0.2.153" 846 | source = "registry+https://github.com/rust-lang/crates.io-index" 847 | checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" 848 | 849 | [[package]] 850 | name = "linux-raw-sys" 851 | version = "0.4.13" 852 | source = "registry+https://github.com/rust-lang/crates.io-index" 853 | checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" 854 | 855 | [[package]] 856 | name = "localsend" 857 | version = "0.1.0" 858 | dependencies = [ 859 | "console", 860 | "console-subscriber", 861 | "dialoguer", 862 | "indicatif", 863 | "localsend-core", 864 | "tokio", 865 | "tracing", 866 | "tracing-log", 867 | "tracing-subscriber", 868 | ] 869 | 870 | [[package]] 871 | name = "localsend-core" 872 | version = "0.1.0" 873 | dependencies = [ 874 | "axum", 875 | "axum-macros", 876 | "axum-server", 877 | "futures", 878 | "network-interface", 879 | "rcgen", 880 | "serde", 881 | "serde_json", 882 | "tokio", 883 | "tokio-util", 884 | "tracing", 885 | "uuid", 886 | ] 887 | 888 | [[package]] 889 | name = "lock_api" 890 | version = "0.4.11" 891 | source = "registry+https://github.com/rust-lang/crates.io-index" 892 | checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" 893 | dependencies = [ 894 | "autocfg", 895 | "scopeguard", 896 | ] 897 | 898 | [[package]] 899 | name = "log" 900 | version = "0.4.21" 901 | source = "registry+https://github.com/rust-lang/crates.io-index" 902 | checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" 903 | 904 | [[package]] 905 | name = "matchers" 906 | version = "0.1.0" 907 | source = "registry+https://github.com/rust-lang/crates.io-index" 908 | checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" 909 | dependencies = [ 910 | "regex-automata 0.1.10", 911 | ] 912 | 913 | [[package]] 914 | name = "matchit" 915 | version = "0.7.3" 916 | source = "registry+https://github.com/rust-lang/crates.io-index" 917 | checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" 918 | 919 | [[package]] 920 | name = "memchr" 921 | version = "2.7.1" 922 | source = "registry+https://github.com/rust-lang/crates.io-index" 923 | checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" 924 | 925 | [[package]] 926 | name = "mime" 927 | version = "0.3.17" 928 | source = "registry+https://github.com/rust-lang/crates.io-index" 929 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 930 | 931 | [[package]] 932 | name = "minimal-lexical" 933 | version = "0.2.1" 934 | source = "registry+https://github.com/rust-lang/crates.io-index" 935 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 936 | 937 | [[package]] 938 | name = "miniz_oxide" 939 | version = "0.7.2" 940 | source = "registry+https://github.com/rust-lang/crates.io-index" 941 | checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" 942 | dependencies = [ 943 | "adler", 944 | ] 945 | 946 | [[package]] 947 | name = "mio" 948 | version = "0.8.11" 949 | source = "registry+https://github.com/rust-lang/crates.io-index" 950 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 951 | dependencies = [ 952 | "libc", 953 | "wasi", 954 | "windows-sys 0.48.0", 955 | ] 956 | 957 | [[package]] 958 | name = "network-interface" 959 | version = "1.1.1" 960 | source = "registry+https://github.com/rust-lang/crates.io-index" 961 | checksum = "0d68759ef97fe9c9e46f79ea8736c19f1d28992e24c8dc8ce86752918bfeaae7" 962 | dependencies = [ 963 | "cc", 964 | "libc", 965 | "thiserror", 966 | "winapi", 967 | ] 968 | 969 | [[package]] 970 | name = "nom" 971 | version = "7.1.3" 972 | source = "registry+https://github.com/rust-lang/crates.io-index" 973 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 974 | dependencies = [ 975 | "memchr", 976 | "minimal-lexical", 977 | ] 978 | 979 | [[package]] 980 | name = "nu-ansi-term" 981 | version = "0.46.0" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" 984 | dependencies = [ 985 | "overload", 986 | "winapi", 987 | ] 988 | 989 | [[package]] 990 | name = "num-conv" 991 | version = "0.1.0" 992 | source = "registry+https://github.com/rust-lang/crates.io-index" 993 | checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" 994 | 995 | [[package]] 996 | name = "num-traits" 997 | version = "0.2.18" 998 | source = "registry+https://github.com/rust-lang/crates.io-index" 999 | checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" 1000 | dependencies = [ 1001 | "autocfg", 1002 | ] 1003 | 1004 | [[package]] 1005 | name = "num_cpus" 1006 | version = "1.16.0" 1007 | source = "registry+https://github.com/rust-lang/crates.io-index" 1008 | checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" 1009 | dependencies = [ 1010 | "hermit-abi 0.3.9", 1011 | "libc", 1012 | ] 1013 | 1014 | [[package]] 1015 | name = "number_prefix" 1016 | version = "0.4.0" 1017 | source = "registry+https://github.com/rust-lang/crates.io-index" 1018 | checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" 1019 | 1020 | [[package]] 1021 | name = "object" 1022 | version = "0.32.2" 1023 | source = "registry+https://github.com/rust-lang/crates.io-index" 1024 | checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" 1025 | dependencies = [ 1026 | "memchr", 1027 | ] 1028 | 1029 | [[package]] 1030 | name = "once_cell" 1031 | version = "1.19.0" 1032 | source = "registry+https://github.com/rust-lang/crates.io-index" 1033 | checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 1034 | 1035 | [[package]] 1036 | name = "oorandom" 1037 | version = "11.1.3" 1038 | source = "registry+https://github.com/rust-lang/crates.io-index" 1039 | checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" 1040 | 1041 | [[package]] 1042 | name = "overload" 1043 | version = "0.1.1" 1044 | source = "registry+https://github.com/rust-lang/crates.io-index" 1045 | checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" 1046 | 1047 | [[package]] 1048 | name = "parking_lot" 1049 | version = "0.12.1" 1050 | source = "registry+https://github.com/rust-lang/crates.io-index" 1051 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 1052 | dependencies = [ 1053 | "lock_api", 1054 | "parking_lot_core", 1055 | ] 1056 | 1057 | [[package]] 1058 | name = "parking_lot_core" 1059 | version = "0.9.9" 1060 | source = "registry+https://github.com/rust-lang/crates.io-index" 1061 | checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" 1062 | dependencies = [ 1063 | "cfg-if", 1064 | "libc", 1065 | "redox_syscall", 1066 | "smallvec", 1067 | "windows-targets 0.48.5", 1068 | ] 1069 | 1070 | [[package]] 1071 | name = "pem" 1072 | version = "3.0.3" 1073 | source = "registry+https://github.com/rust-lang/crates.io-index" 1074 | checksum = "1b8fcc794035347fb64beda2d3b462595dd2753e3f268d89c5aae77e8cf2c310" 1075 | dependencies = [ 1076 | "base64 0.21.7", 1077 | "serde", 1078 | ] 1079 | 1080 | [[package]] 1081 | name = "percent-encoding" 1082 | version = "2.3.1" 1083 | source = "registry+https://github.com/rust-lang/crates.io-index" 1084 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 1085 | 1086 | [[package]] 1087 | name = "pin-project" 1088 | version = "1.1.5" 1089 | source = "registry+https://github.com/rust-lang/crates.io-index" 1090 | checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" 1091 | dependencies = [ 1092 | "pin-project-internal", 1093 | ] 1094 | 1095 | [[package]] 1096 | name = "pin-project-internal" 1097 | version = "1.1.5" 1098 | source = "registry+https://github.com/rust-lang/crates.io-index" 1099 | checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" 1100 | dependencies = [ 1101 | "proc-macro2", 1102 | "quote", 1103 | "syn", 1104 | ] 1105 | 1106 | [[package]] 1107 | name = "pin-project-lite" 1108 | version = "0.2.13" 1109 | source = "registry+https://github.com/rust-lang/crates.io-index" 1110 | checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" 1111 | 1112 | [[package]] 1113 | name = "pin-utils" 1114 | version = "0.1.0" 1115 | source = "registry+https://github.com/rust-lang/crates.io-index" 1116 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1117 | 1118 | [[package]] 1119 | name = "plotters" 1120 | version = "0.3.5" 1121 | source = "registry+https://github.com/rust-lang/crates.io-index" 1122 | checksum = "d2c224ba00d7cadd4d5c660deaf2098e5e80e07846537c51f9cfa4be50c1fd45" 1123 | dependencies = [ 1124 | "num-traits", 1125 | "plotters-backend", 1126 | "plotters-svg", 1127 | "wasm-bindgen", 1128 | "web-sys", 1129 | ] 1130 | 1131 | [[package]] 1132 | name = "plotters-backend" 1133 | version = "0.3.5" 1134 | source = "registry+https://github.com/rust-lang/crates.io-index" 1135 | checksum = "9e76628b4d3a7581389a35d5b6e2139607ad7c75b17aed325f210aa91f4a9609" 1136 | 1137 | [[package]] 1138 | name = "plotters-svg" 1139 | version = "0.3.5" 1140 | source = "registry+https://github.com/rust-lang/crates.io-index" 1141 | checksum = "38f6d39893cca0701371e3c27294f09797214b86f1fb951b89ade8ec04e2abab" 1142 | dependencies = [ 1143 | "plotters-backend", 1144 | ] 1145 | 1146 | [[package]] 1147 | name = "portable-atomic" 1148 | version = "1.6.0" 1149 | source = "registry+https://github.com/rust-lang/crates.io-index" 1150 | checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" 1151 | 1152 | [[package]] 1153 | name = "powerfmt" 1154 | version = "0.2.0" 1155 | source = "registry+https://github.com/rust-lang/crates.io-index" 1156 | checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" 1157 | 1158 | [[package]] 1159 | name = "ppv-lite86" 1160 | version = "0.2.17" 1161 | source = "registry+https://github.com/rust-lang/crates.io-index" 1162 | checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" 1163 | 1164 | [[package]] 1165 | name = "proc-macro2" 1166 | version = "1.0.78" 1167 | source = "registry+https://github.com/rust-lang/crates.io-index" 1168 | checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" 1169 | dependencies = [ 1170 | "unicode-ident", 1171 | ] 1172 | 1173 | [[package]] 1174 | name = "prost" 1175 | version = "0.12.3" 1176 | source = "registry+https://github.com/rust-lang/crates.io-index" 1177 | checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" 1178 | dependencies = [ 1179 | "bytes", 1180 | "prost-derive", 1181 | ] 1182 | 1183 | [[package]] 1184 | name = "prost-derive" 1185 | version = "0.12.3" 1186 | source = "registry+https://github.com/rust-lang/crates.io-index" 1187 | checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" 1188 | dependencies = [ 1189 | "anyhow", 1190 | "itertools 0.11.0", 1191 | "proc-macro2", 1192 | "quote", 1193 | "syn", 1194 | ] 1195 | 1196 | [[package]] 1197 | name = "prost-types" 1198 | version = "0.12.3" 1199 | source = "registry+https://github.com/rust-lang/crates.io-index" 1200 | checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" 1201 | dependencies = [ 1202 | "prost", 1203 | ] 1204 | 1205 | [[package]] 1206 | name = "quote" 1207 | version = "1.0.35" 1208 | source = "registry+https://github.com/rust-lang/crates.io-index" 1209 | checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" 1210 | dependencies = [ 1211 | "proc-macro2", 1212 | ] 1213 | 1214 | [[package]] 1215 | name = "rand" 1216 | version = "0.8.5" 1217 | source = "registry+https://github.com/rust-lang/crates.io-index" 1218 | checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" 1219 | dependencies = [ 1220 | "libc", 1221 | "rand_chacha", 1222 | "rand_core", 1223 | ] 1224 | 1225 | [[package]] 1226 | name = "rand_chacha" 1227 | version = "0.3.1" 1228 | source = "registry+https://github.com/rust-lang/crates.io-index" 1229 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 1230 | dependencies = [ 1231 | "ppv-lite86", 1232 | "rand_core", 1233 | ] 1234 | 1235 | [[package]] 1236 | name = "rand_core" 1237 | version = "0.6.4" 1238 | source = "registry+https://github.com/rust-lang/crates.io-index" 1239 | checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" 1240 | dependencies = [ 1241 | "getrandom", 1242 | ] 1243 | 1244 | [[package]] 1245 | name = "rayon" 1246 | version = "1.9.0" 1247 | source = "registry+https://github.com/rust-lang/crates.io-index" 1248 | checksum = "e4963ed1bc86e4f3ee217022bd855b297cef07fb9eac5dfa1f788b220b49b3bd" 1249 | dependencies = [ 1250 | "either", 1251 | "rayon-core", 1252 | ] 1253 | 1254 | [[package]] 1255 | name = "rayon-core" 1256 | version = "1.12.1" 1257 | source = "registry+https://github.com/rust-lang/crates.io-index" 1258 | checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" 1259 | dependencies = [ 1260 | "crossbeam-deque", 1261 | "crossbeam-utils", 1262 | ] 1263 | 1264 | [[package]] 1265 | name = "rcgen" 1266 | version = "0.11.3" 1267 | source = "registry+https://github.com/rust-lang/crates.io-index" 1268 | checksum = "52c4f3084aa3bc7dfbba4eff4fab2a54db4324965d8872ab933565e6fbd83bc6" 1269 | dependencies = [ 1270 | "pem", 1271 | "ring 0.16.20", 1272 | "time", 1273 | "yasna", 1274 | ] 1275 | 1276 | [[package]] 1277 | name = "redox_syscall" 1278 | version = "0.4.1" 1279 | source = "registry+https://github.com/rust-lang/crates.io-index" 1280 | checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" 1281 | dependencies = [ 1282 | "bitflags 1.3.2", 1283 | ] 1284 | 1285 | [[package]] 1286 | name = "regex" 1287 | version = "1.10.3" 1288 | source = "registry+https://github.com/rust-lang/crates.io-index" 1289 | checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" 1290 | dependencies = [ 1291 | "aho-corasick", 1292 | "memchr", 1293 | "regex-automata 0.4.6", 1294 | "regex-syntax 0.8.2", 1295 | ] 1296 | 1297 | [[package]] 1298 | name = "regex-automata" 1299 | version = "0.1.10" 1300 | source = "registry+https://github.com/rust-lang/crates.io-index" 1301 | checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" 1302 | dependencies = [ 1303 | "regex-syntax 0.6.29", 1304 | ] 1305 | 1306 | [[package]] 1307 | name = "regex-automata" 1308 | version = "0.4.6" 1309 | source = "registry+https://github.com/rust-lang/crates.io-index" 1310 | checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" 1311 | dependencies = [ 1312 | "aho-corasick", 1313 | "memchr", 1314 | "regex-syntax 0.8.2", 1315 | ] 1316 | 1317 | [[package]] 1318 | name = "regex-syntax" 1319 | version = "0.6.29" 1320 | source = "registry+https://github.com/rust-lang/crates.io-index" 1321 | checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" 1322 | 1323 | [[package]] 1324 | name = "regex-syntax" 1325 | version = "0.8.2" 1326 | source = "registry+https://github.com/rust-lang/crates.io-index" 1327 | checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" 1328 | 1329 | [[package]] 1330 | name = "ring" 1331 | version = "0.16.20" 1332 | source = "registry+https://github.com/rust-lang/crates.io-index" 1333 | checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" 1334 | dependencies = [ 1335 | "cc", 1336 | "libc", 1337 | "once_cell", 1338 | "spin 0.5.2", 1339 | "untrusted 0.7.1", 1340 | "web-sys", 1341 | "winapi", 1342 | ] 1343 | 1344 | [[package]] 1345 | name = "ring" 1346 | version = "0.17.8" 1347 | source = "registry+https://github.com/rust-lang/crates.io-index" 1348 | checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1349 | dependencies = [ 1350 | "cc", 1351 | "cfg-if", 1352 | "getrandom", 1353 | "libc", 1354 | "spin 0.9.8", 1355 | "untrusted 0.9.0", 1356 | "windows-sys 0.52.0", 1357 | ] 1358 | 1359 | [[package]] 1360 | name = "rustc-demangle" 1361 | version = "0.1.23" 1362 | source = "registry+https://github.com/rust-lang/crates.io-index" 1363 | checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" 1364 | 1365 | [[package]] 1366 | name = "rustix" 1367 | version = "0.38.31" 1368 | source = "registry+https://github.com/rust-lang/crates.io-index" 1369 | checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" 1370 | dependencies = [ 1371 | "bitflags 2.4.2", 1372 | "errno", 1373 | "libc", 1374 | "linux-raw-sys", 1375 | "windows-sys 0.52.0", 1376 | ] 1377 | 1378 | [[package]] 1379 | name = "rustls" 1380 | version = "0.20.8" 1381 | dependencies = [ 1382 | "base64 0.13.1", 1383 | "criterion", 1384 | "env_logger", 1385 | "log", 1386 | "ring 0.16.20", 1387 | "rustls-pemfile", 1388 | "rustversion", 1389 | "sct", 1390 | "webpki", 1391 | "webpki-roots", 1392 | ] 1393 | 1394 | [[package]] 1395 | name = "rustls-pemfile" 1396 | version = "1.0.4" 1397 | source = "registry+https://github.com/rust-lang/crates.io-index" 1398 | checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" 1399 | dependencies = [ 1400 | "base64 0.21.7", 1401 | ] 1402 | 1403 | [[package]] 1404 | name = "rustversion" 1405 | version = "1.0.14" 1406 | source = "registry+https://github.com/rust-lang/crates.io-index" 1407 | checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" 1408 | 1409 | [[package]] 1410 | name = "ryu" 1411 | version = "1.0.17" 1412 | source = "registry+https://github.com/rust-lang/crates.io-index" 1413 | checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" 1414 | 1415 | [[package]] 1416 | name = "same-file" 1417 | version = "1.0.6" 1418 | source = "registry+https://github.com/rust-lang/crates.io-index" 1419 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 1420 | dependencies = [ 1421 | "winapi-util", 1422 | ] 1423 | 1424 | [[package]] 1425 | name = "scopeguard" 1426 | version = "1.2.0" 1427 | source = "registry+https://github.com/rust-lang/crates.io-index" 1428 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1429 | 1430 | [[package]] 1431 | name = "sct" 1432 | version = "0.7.1" 1433 | source = "registry+https://github.com/rust-lang/crates.io-index" 1434 | checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" 1435 | dependencies = [ 1436 | "ring 0.17.8", 1437 | "untrusted 0.9.0", 1438 | ] 1439 | 1440 | [[package]] 1441 | name = "serde" 1442 | version = "1.0.197" 1443 | source = "registry+https://github.com/rust-lang/crates.io-index" 1444 | checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" 1445 | dependencies = [ 1446 | "serde_derive", 1447 | ] 1448 | 1449 | [[package]] 1450 | name = "serde_cbor" 1451 | version = "0.11.2" 1452 | source = "registry+https://github.com/rust-lang/crates.io-index" 1453 | checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" 1454 | dependencies = [ 1455 | "half", 1456 | "serde", 1457 | ] 1458 | 1459 | [[package]] 1460 | name = "serde_derive" 1461 | version = "1.0.197" 1462 | source = "registry+https://github.com/rust-lang/crates.io-index" 1463 | checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" 1464 | dependencies = [ 1465 | "proc-macro2", 1466 | "quote", 1467 | "syn", 1468 | ] 1469 | 1470 | [[package]] 1471 | name = "serde_json" 1472 | version = "1.0.114" 1473 | source = "registry+https://github.com/rust-lang/crates.io-index" 1474 | checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" 1475 | dependencies = [ 1476 | "itoa", 1477 | "ryu", 1478 | "serde", 1479 | ] 1480 | 1481 | [[package]] 1482 | name = "serde_path_to_error" 1483 | version = "0.1.15" 1484 | source = "registry+https://github.com/rust-lang/crates.io-index" 1485 | checksum = "ebd154a240de39fdebcf5775d2675c204d7c13cf39a4c697be6493c8e734337c" 1486 | dependencies = [ 1487 | "itoa", 1488 | "serde", 1489 | ] 1490 | 1491 | [[package]] 1492 | name = "serde_urlencoded" 1493 | version = "0.7.1" 1494 | source = "registry+https://github.com/rust-lang/crates.io-index" 1495 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1496 | dependencies = [ 1497 | "form_urlencoded", 1498 | "itoa", 1499 | "ryu", 1500 | "serde", 1501 | ] 1502 | 1503 | [[package]] 1504 | name = "sharded-slab" 1505 | version = "0.1.7" 1506 | source = "registry+https://github.com/rust-lang/crates.io-index" 1507 | checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" 1508 | dependencies = [ 1509 | "lazy_static", 1510 | ] 1511 | 1512 | [[package]] 1513 | name = "shell-words" 1514 | version = "1.1.0" 1515 | source = "registry+https://github.com/rust-lang/crates.io-index" 1516 | checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" 1517 | 1518 | [[package]] 1519 | name = "signal-hook-registry" 1520 | version = "1.4.1" 1521 | source = "registry+https://github.com/rust-lang/crates.io-index" 1522 | checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" 1523 | dependencies = [ 1524 | "libc", 1525 | ] 1526 | 1527 | [[package]] 1528 | name = "slab" 1529 | version = "0.4.9" 1530 | source = "registry+https://github.com/rust-lang/crates.io-index" 1531 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1532 | dependencies = [ 1533 | "autocfg", 1534 | ] 1535 | 1536 | [[package]] 1537 | name = "smallvec" 1538 | version = "1.13.1" 1539 | source = "registry+https://github.com/rust-lang/crates.io-index" 1540 | checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" 1541 | 1542 | [[package]] 1543 | name = "socket2" 1544 | version = "0.5.6" 1545 | source = "registry+https://github.com/rust-lang/crates.io-index" 1546 | checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" 1547 | dependencies = [ 1548 | "libc", 1549 | "windows-sys 0.52.0", 1550 | ] 1551 | 1552 | [[package]] 1553 | name = "spin" 1554 | version = "0.5.2" 1555 | source = "registry+https://github.com/rust-lang/crates.io-index" 1556 | checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" 1557 | 1558 | [[package]] 1559 | name = "spin" 1560 | version = "0.9.8" 1561 | source = "registry+https://github.com/rust-lang/crates.io-index" 1562 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1563 | 1564 | [[package]] 1565 | name = "syn" 1566 | version = "2.0.52" 1567 | source = "registry+https://github.com/rust-lang/crates.io-index" 1568 | checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07" 1569 | dependencies = [ 1570 | "proc-macro2", 1571 | "quote", 1572 | "unicode-ident", 1573 | ] 1574 | 1575 | [[package]] 1576 | name = "sync_wrapper" 1577 | version = "0.1.2" 1578 | source = "registry+https://github.com/rust-lang/crates.io-index" 1579 | checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" 1580 | 1581 | [[package]] 1582 | name = "tempfile" 1583 | version = "3.10.1" 1584 | source = "registry+https://github.com/rust-lang/crates.io-index" 1585 | checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" 1586 | dependencies = [ 1587 | "cfg-if", 1588 | "fastrand", 1589 | "rustix", 1590 | "windows-sys 0.52.0", 1591 | ] 1592 | 1593 | [[package]] 1594 | name = "termcolor" 1595 | version = "1.4.1" 1596 | source = "registry+https://github.com/rust-lang/crates.io-index" 1597 | checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" 1598 | dependencies = [ 1599 | "winapi-util", 1600 | ] 1601 | 1602 | [[package]] 1603 | name = "textwrap" 1604 | version = "0.11.0" 1605 | source = "registry+https://github.com/rust-lang/crates.io-index" 1606 | checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 1607 | dependencies = [ 1608 | "unicode-width", 1609 | ] 1610 | 1611 | [[package]] 1612 | name = "thiserror" 1613 | version = "1.0.57" 1614 | source = "registry+https://github.com/rust-lang/crates.io-index" 1615 | checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" 1616 | dependencies = [ 1617 | "thiserror-impl", 1618 | ] 1619 | 1620 | [[package]] 1621 | name = "thiserror-impl" 1622 | version = "1.0.57" 1623 | source = "registry+https://github.com/rust-lang/crates.io-index" 1624 | checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" 1625 | dependencies = [ 1626 | "proc-macro2", 1627 | "quote", 1628 | "syn", 1629 | ] 1630 | 1631 | [[package]] 1632 | name = "thread_local" 1633 | version = "1.1.8" 1634 | source = "registry+https://github.com/rust-lang/crates.io-index" 1635 | checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" 1636 | dependencies = [ 1637 | "cfg-if", 1638 | "once_cell", 1639 | ] 1640 | 1641 | [[package]] 1642 | name = "time" 1643 | version = "0.3.34" 1644 | source = "registry+https://github.com/rust-lang/crates.io-index" 1645 | checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" 1646 | dependencies = [ 1647 | "deranged", 1648 | "num-conv", 1649 | "powerfmt", 1650 | "serde", 1651 | "time-core", 1652 | ] 1653 | 1654 | [[package]] 1655 | name = "time-core" 1656 | version = "0.1.2" 1657 | source = "registry+https://github.com/rust-lang/crates.io-index" 1658 | checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" 1659 | 1660 | [[package]] 1661 | name = "tinytemplate" 1662 | version = "1.2.1" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" 1665 | dependencies = [ 1666 | "serde", 1667 | "serde_json", 1668 | ] 1669 | 1670 | [[package]] 1671 | name = "tokio" 1672 | version = "1.36.0" 1673 | source = "registry+https://github.com/rust-lang/crates.io-index" 1674 | checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" 1675 | dependencies = [ 1676 | "backtrace", 1677 | "bytes", 1678 | "libc", 1679 | "mio", 1680 | "num_cpus", 1681 | "parking_lot", 1682 | "pin-project-lite", 1683 | "signal-hook-registry", 1684 | "socket2", 1685 | "tokio-macros", 1686 | "tracing", 1687 | "windows-sys 0.48.0", 1688 | ] 1689 | 1690 | [[package]] 1691 | name = "tokio-io-timeout" 1692 | version = "1.2.0" 1693 | source = "registry+https://github.com/rust-lang/crates.io-index" 1694 | checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" 1695 | dependencies = [ 1696 | "pin-project-lite", 1697 | "tokio", 1698 | ] 1699 | 1700 | [[package]] 1701 | name = "tokio-macros" 1702 | version = "2.2.0" 1703 | source = "registry+https://github.com/rust-lang/crates.io-index" 1704 | checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" 1705 | dependencies = [ 1706 | "proc-macro2", 1707 | "quote", 1708 | "syn", 1709 | ] 1710 | 1711 | [[package]] 1712 | name = "tokio-rustls" 1713 | version = "0.23.4" 1714 | dependencies = [ 1715 | "futures-util", 1716 | "lazy_static", 1717 | "rustls", 1718 | "rustls-pemfile", 1719 | "tokio", 1720 | "webpki", 1721 | "webpki-roots", 1722 | ] 1723 | 1724 | [[package]] 1725 | name = "tokio-stream" 1726 | version = "0.1.14" 1727 | source = "registry+https://github.com/rust-lang/crates.io-index" 1728 | checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" 1729 | dependencies = [ 1730 | "futures-core", 1731 | "pin-project-lite", 1732 | "tokio", 1733 | ] 1734 | 1735 | [[package]] 1736 | name = "tokio-util" 1737 | version = "0.7.10" 1738 | source = "registry+https://github.com/rust-lang/crates.io-index" 1739 | checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" 1740 | dependencies = [ 1741 | "bytes", 1742 | "futures-core", 1743 | "futures-sink", 1744 | "pin-project-lite", 1745 | "tokio", 1746 | "tracing", 1747 | ] 1748 | 1749 | [[package]] 1750 | name = "tonic" 1751 | version = "0.10.2" 1752 | source = "registry+https://github.com/rust-lang/crates.io-index" 1753 | checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e" 1754 | dependencies = [ 1755 | "async-stream", 1756 | "async-trait", 1757 | "axum", 1758 | "base64 0.21.7", 1759 | "bytes", 1760 | "h2", 1761 | "http", 1762 | "http-body", 1763 | "hyper", 1764 | "hyper-timeout", 1765 | "percent-encoding", 1766 | "pin-project", 1767 | "prost", 1768 | "tokio", 1769 | "tokio-stream", 1770 | "tower", 1771 | "tower-layer", 1772 | "tower-service", 1773 | "tracing", 1774 | ] 1775 | 1776 | [[package]] 1777 | name = "tower" 1778 | version = "0.4.13" 1779 | source = "registry+https://github.com/rust-lang/crates.io-index" 1780 | checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" 1781 | dependencies = [ 1782 | "futures-core", 1783 | "futures-util", 1784 | "indexmap 1.9.3", 1785 | "pin-project", 1786 | "pin-project-lite", 1787 | "rand", 1788 | "slab", 1789 | "tokio", 1790 | "tokio-util", 1791 | "tower-layer", 1792 | "tower-service", 1793 | "tracing", 1794 | ] 1795 | 1796 | [[package]] 1797 | name = "tower-http" 1798 | version = "0.3.5" 1799 | source = "registry+https://github.com/rust-lang/crates.io-index" 1800 | checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" 1801 | dependencies = [ 1802 | "bitflags 1.3.2", 1803 | "bytes", 1804 | "futures-core", 1805 | "futures-util", 1806 | "http", 1807 | "http-body", 1808 | "http-range-header", 1809 | "pin-project-lite", 1810 | "tower-layer", 1811 | "tower-service", 1812 | ] 1813 | 1814 | [[package]] 1815 | name = "tower-layer" 1816 | version = "0.3.2" 1817 | source = "registry+https://github.com/rust-lang/crates.io-index" 1818 | checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" 1819 | 1820 | [[package]] 1821 | name = "tower-service" 1822 | version = "0.3.2" 1823 | source = "registry+https://github.com/rust-lang/crates.io-index" 1824 | checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" 1825 | 1826 | [[package]] 1827 | name = "tracing" 1828 | version = "0.1.40" 1829 | source = "registry+https://github.com/rust-lang/crates.io-index" 1830 | checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" 1831 | dependencies = [ 1832 | "log", 1833 | "pin-project-lite", 1834 | "tracing-attributes", 1835 | "tracing-core", 1836 | ] 1837 | 1838 | [[package]] 1839 | name = "tracing-attributes" 1840 | version = "0.1.27" 1841 | source = "registry+https://github.com/rust-lang/crates.io-index" 1842 | checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" 1843 | dependencies = [ 1844 | "proc-macro2", 1845 | "quote", 1846 | "syn", 1847 | ] 1848 | 1849 | [[package]] 1850 | name = "tracing-core" 1851 | version = "0.1.32" 1852 | source = "registry+https://github.com/rust-lang/crates.io-index" 1853 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" 1854 | dependencies = [ 1855 | "once_cell", 1856 | "valuable", 1857 | ] 1858 | 1859 | [[package]] 1860 | name = "tracing-log" 1861 | version = "0.2.0" 1862 | source = "registry+https://github.com/rust-lang/crates.io-index" 1863 | checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" 1864 | dependencies = [ 1865 | "log", 1866 | "once_cell", 1867 | "tracing-core", 1868 | ] 1869 | 1870 | [[package]] 1871 | name = "tracing-subscriber" 1872 | version = "0.3.18" 1873 | source = "registry+https://github.com/rust-lang/crates.io-index" 1874 | checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" 1875 | dependencies = [ 1876 | "matchers", 1877 | "nu-ansi-term", 1878 | "once_cell", 1879 | "regex", 1880 | "sharded-slab", 1881 | "smallvec", 1882 | "thread_local", 1883 | "tracing", 1884 | "tracing-core", 1885 | "tracing-log", 1886 | ] 1887 | 1888 | [[package]] 1889 | name = "try-lock" 1890 | version = "0.2.5" 1891 | source = "registry+https://github.com/rust-lang/crates.io-index" 1892 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 1893 | 1894 | [[package]] 1895 | name = "unicode-ident" 1896 | version = "1.0.12" 1897 | source = "registry+https://github.com/rust-lang/crates.io-index" 1898 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 1899 | 1900 | [[package]] 1901 | name = "unicode-width" 1902 | version = "0.1.11" 1903 | source = "registry+https://github.com/rust-lang/crates.io-index" 1904 | checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" 1905 | 1906 | [[package]] 1907 | name = "untrusted" 1908 | version = "0.7.1" 1909 | source = "registry+https://github.com/rust-lang/crates.io-index" 1910 | checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" 1911 | 1912 | [[package]] 1913 | name = "untrusted" 1914 | version = "0.9.0" 1915 | source = "registry+https://github.com/rust-lang/crates.io-index" 1916 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 1917 | 1918 | [[package]] 1919 | name = "uuid" 1920 | version = "1.7.0" 1921 | source = "registry+https://github.com/rust-lang/crates.io-index" 1922 | checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" 1923 | dependencies = [ 1924 | "getrandom", 1925 | ] 1926 | 1927 | [[package]] 1928 | name = "valuable" 1929 | version = "0.1.0" 1930 | source = "registry+https://github.com/rust-lang/crates.io-index" 1931 | checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" 1932 | 1933 | [[package]] 1934 | name = "walkdir" 1935 | version = "2.5.0" 1936 | source = "registry+https://github.com/rust-lang/crates.io-index" 1937 | checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 1938 | dependencies = [ 1939 | "same-file", 1940 | "winapi-util", 1941 | ] 1942 | 1943 | [[package]] 1944 | name = "want" 1945 | version = "0.3.1" 1946 | source = "registry+https://github.com/rust-lang/crates.io-index" 1947 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 1948 | dependencies = [ 1949 | "try-lock", 1950 | ] 1951 | 1952 | [[package]] 1953 | name = "wasi" 1954 | version = "0.11.0+wasi-snapshot-preview1" 1955 | source = "registry+https://github.com/rust-lang/crates.io-index" 1956 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 1957 | 1958 | [[package]] 1959 | name = "wasm-bindgen" 1960 | version = "0.2.92" 1961 | source = "registry+https://github.com/rust-lang/crates.io-index" 1962 | checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" 1963 | dependencies = [ 1964 | "cfg-if", 1965 | "wasm-bindgen-macro", 1966 | ] 1967 | 1968 | [[package]] 1969 | name = "wasm-bindgen-backend" 1970 | version = "0.2.92" 1971 | source = "registry+https://github.com/rust-lang/crates.io-index" 1972 | checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" 1973 | dependencies = [ 1974 | "bumpalo", 1975 | "log", 1976 | "once_cell", 1977 | "proc-macro2", 1978 | "quote", 1979 | "syn", 1980 | "wasm-bindgen-shared", 1981 | ] 1982 | 1983 | [[package]] 1984 | name = "wasm-bindgen-macro" 1985 | version = "0.2.92" 1986 | source = "registry+https://github.com/rust-lang/crates.io-index" 1987 | checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" 1988 | dependencies = [ 1989 | "quote", 1990 | "wasm-bindgen-macro-support", 1991 | ] 1992 | 1993 | [[package]] 1994 | name = "wasm-bindgen-macro-support" 1995 | version = "0.2.92" 1996 | source = "registry+https://github.com/rust-lang/crates.io-index" 1997 | checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" 1998 | dependencies = [ 1999 | "proc-macro2", 2000 | "quote", 2001 | "syn", 2002 | "wasm-bindgen-backend", 2003 | "wasm-bindgen-shared", 2004 | ] 2005 | 2006 | [[package]] 2007 | name = "wasm-bindgen-shared" 2008 | version = "0.2.92" 2009 | source = "registry+https://github.com/rust-lang/crates.io-index" 2010 | checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" 2011 | 2012 | [[package]] 2013 | name = "web-sys" 2014 | version = "0.3.69" 2015 | source = "registry+https://github.com/rust-lang/crates.io-index" 2016 | checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" 2017 | dependencies = [ 2018 | "js-sys", 2019 | "wasm-bindgen", 2020 | ] 2021 | 2022 | [[package]] 2023 | name = "webpki" 2024 | version = "0.22.4" 2025 | source = "registry+https://github.com/rust-lang/crates.io-index" 2026 | checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" 2027 | dependencies = [ 2028 | "ring 0.17.8", 2029 | "untrusted 0.9.0", 2030 | ] 2031 | 2032 | [[package]] 2033 | name = "webpki-roots" 2034 | version = "0.22.6" 2035 | source = "registry+https://github.com/rust-lang/crates.io-index" 2036 | checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" 2037 | dependencies = [ 2038 | "webpki", 2039 | ] 2040 | 2041 | [[package]] 2042 | name = "winapi" 2043 | version = "0.3.9" 2044 | source = "registry+https://github.com/rust-lang/crates.io-index" 2045 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 2046 | dependencies = [ 2047 | "winapi-i686-pc-windows-gnu", 2048 | "winapi-x86_64-pc-windows-gnu", 2049 | ] 2050 | 2051 | [[package]] 2052 | name = "winapi-i686-pc-windows-gnu" 2053 | version = "0.4.0" 2054 | source = "registry+https://github.com/rust-lang/crates.io-index" 2055 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 2056 | 2057 | [[package]] 2058 | name = "winapi-util" 2059 | version = "0.1.6" 2060 | source = "registry+https://github.com/rust-lang/crates.io-index" 2061 | checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" 2062 | dependencies = [ 2063 | "winapi", 2064 | ] 2065 | 2066 | [[package]] 2067 | name = "winapi-x86_64-pc-windows-gnu" 2068 | version = "0.4.0" 2069 | source = "registry+https://github.com/rust-lang/crates.io-index" 2070 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 2071 | 2072 | [[package]] 2073 | name = "windows-sys" 2074 | version = "0.48.0" 2075 | source = "registry+https://github.com/rust-lang/crates.io-index" 2076 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 2077 | dependencies = [ 2078 | "windows-targets 0.48.5", 2079 | ] 2080 | 2081 | [[package]] 2082 | name = "windows-sys" 2083 | version = "0.52.0" 2084 | source = "registry+https://github.com/rust-lang/crates.io-index" 2085 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2086 | dependencies = [ 2087 | "windows-targets 0.52.4", 2088 | ] 2089 | 2090 | [[package]] 2091 | name = "windows-targets" 2092 | version = "0.48.5" 2093 | source = "registry+https://github.com/rust-lang/crates.io-index" 2094 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 2095 | dependencies = [ 2096 | "windows_aarch64_gnullvm 0.48.5", 2097 | "windows_aarch64_msvc 0.48.5", 2098 | "windows_i686_gnu 0.48.5", 2099 | "windows_i686_msvc 0.48.5", 2100 | "windows_x86_64_gnu 0.48.5", 2101 | "windows_x86_64_gnullvm 0.48.5", 2102 | "windows_x86_64_msvc 0.48.5", 2103 | ] 2104 | 2105 | [[package]] 2106 | name = "windows-targets" 2107 | version = "0.52.4" 2108 | source = "registry+https://github.com/rust-lang/crates.io-index" 2109 | checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" 2110 | dependencies = [ 2111 | "windows_aarch64_gnullvm 0.52.4", 2112 | "windows_aarch64_msvc 0.52.4", 2113 | "windows_i686_gnu 0.52.4", 2114 | "windows_i686_msvc 0.52.4", 2115 | "windows_x86_64_gnu 0.52.4", 2116 | "windows_x86_64_gnullvm 0.52.4", 2117 | "windows_x86_64_msvc 0.52.4", 2118 | ] 2119 | 2120 | [[package]] 2121 | name = "windows_aarch64_gnullvm" 2122 | version = "0.48.5" 2123 | source = "registry+https://github.com/rust-lang/crates.io-index" 2124 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 2125 | 2126 | [[package]] 2127 | name = "windows_aarch64_gnullvm" 2128 | version = "0.52.4" 2129 | source = "registry+https://github.com/rust-lang/crates.io-index" 2130 | checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" 2131 | 2132 | [[package]] 2133 | name = "windows_aarch64_msvc" 2134 | version = "0.48.5" 2135 | source = "registry+https://github.com/rust-lang/crates.io-index" 2136 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 2137 | 2138 | [[package]] 2139 | name = "windows_aarch64_msvc" 2140 | version = "0.52.4" 2141 | source = "registry+https://github.com/rust-lang/crates.io-index" 2142 | checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" 2143 | 2144 | [[package]] 2145 | name = "windows_i686_gnu" 2146 | version = "0.48.5" 2147 | source = "registry+https://github.com/rust-lang/crates.io-index" 2148 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 2149 | 2150 | [[package]] 2151 | name = "windows_i686_gnu" 2152 | version = "0.52.4" 2153 | source = "registry+https://github.com/rust-lang/crates.io-index" 2154 | checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" 2155 | 2156 | [[package]] 2157 | name = "windows_i686_msvc" 2158 | version = "0.48.5" 2159 | source = "registry+https://github.com/rust-lang/crates.io-index" 2160 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 2161 | 2162 | [[package]] 2163 | name = "windows_i686_msvc" 2164 | version = "0.52.4" 2165 | source = "registry+https://github.com/rust-lang/crates.io-index" 2166 | checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" 2167 | 2168 | [[package]] 2169 | name = "windows_x86_64_gnu" 2170 | version = "0.48.5" 2171 | source = "registry+https://github.com/rust-lang/crates.io-index" 2172 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 2173 | 2174 | [[package]] 2175 | name = "windows_x86_64_gnu" 2176 | version = "0.52.4" 2177 | source = "registry+https://github.com/rust-lang/crates.io-index" 2178 | checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" 2179 | 2180 | [[package]] 2181 | name = "windows_x86_64_gnullvm" 2182 | version = "0.48.5" 2183 | source = "registry+https://github.com/rust-lang/crates.io-index" 2184 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 2185 | 2186 | [[package]] 2187 | name = "windows_x86_64_gnullvm" 2188 | version = "0.52.4" 2189 | source = "registry+https://github.com/rust-lang/crates.io-index" 2190 | checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" 2191 | 2192 | [[package]] 2193 | name = "windows_x86_64_msvc" 2194 | version = "0.48.5" 2195 | source = "registry+https://github.com/rust-lang/crates.io-index" 2196 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 2197 | 2198 | [[package]] 2199 | name = "windows_x86_64_msvc" 2200 | version = "0.52.4" 2201 | source = "registry+https://github.com/rust-lang/crates.io-index" 2202 | checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" 2203 | 2204 | [[package]] 2205 | name = "yasna" 2206 | version = "0.5.2" 2207 | source = "registry+https://github.com/rust-lang/crates.io-index" 2208 | checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" 2209 | dependencies = [ 2210 | "time", 2211 | ] 2212 | 2213 | [[package]] 2214 | name = "zeroize" 2215 | version = "1.7.0" 2216 | source = "registry+https://github.com/rust-lang/crates.io-index" 2217 | checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" 2218 | --------------------------------------------------------------------------------