Start on proxy

This commit is contained in:
KingRainbow44
2022-05-08 22:48:46 -04:00
parent bc3f26eb96
commit 766e01647e
5 changed files with 52 additions and 2 deletions

View File

@@ -3,8 +3,19 @@
windows_subsystem = "windows"
)]
mod proxy;
use tauri::{
command
};
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
#[tauri::command]
fn connect() {
}

21
src-tauri/src/proxy.rs Normal file
View File

@@ -0,0 +1,21 @@
/*
* Built on example code from:
* https://github.com/omjadas/hudsucker/blob/main/examples/log.rs
*/
use hudsucker::{
async_trait::async_trait,
certificate_authority::RcgenAuthority,
hyper::{Body, Request, Response},
*,
};
use std::net::SocketAddr;
use tracing::*;
use tokio_tungstenite::tungstenite::Message;
/**
* Starts an HTTP(S) proxy server.
*/
async fn start_proxy() {
}